Questions tagged as 'android'

1
answer

Implementing the Life Cycle of an Activity

Hello. I'm new to Android Development and would like to better understand how to build more robust applications for this platform. I understand how the life cycle of a Activity works but I wanted to understand how to structure my applicat...
asked by 08.10.2018 / 09:49
1
answer

How to get the value of a particular listview item java android

As I get the value of a certain item (TextView) from the listview. I'm trying something like this: public void onItemClick(AdapterView<?> a, View v, int position, long id) { Object obj =a.getItemAtPosition(position); String mensagem...
asked by 12.06.2014 / 03:12
2
answers

Two Layouts.xml for the same Fragment, is it possible?

My question is: Is it possible to use two layouts in the same Fragment? The context of my doubt is as follows: I wanted a form, where the user entered various information, but I can not put everything in the same layout, and I thought of...
asked by 24.02.2017 / 02:46
1
answer

Automatic marker zoom

I use this code to retrieve Lat and lang from a user in firebase, My question is how to automatically zoom in on the bookmark ... mDatabase.child(mPost_key).addValueEventListener(new ValueEventListener() { @Override publ...
asked by 20.02.2017 / 15:36
1
answer

Phonegap / Connection with MySql Remote without PHP

I would like to make a connection to a remote MySQL database through an application compiled for Phonegap without the need to use PHP. The bank would not be inside the device but the network on which the device is connected. Some websites say...
asked by 16.09.2014 / 18:34
3
answers

How to identify in the code the method or command to display a list of data in NavigationView?

I found this code in hithub on an embroidery viewer follows the project link , I tried to search this app where method or command is invoked to display this list of data follows screen prints to exemplify.   I would like to know w...
asked by 22.05.2018 / 19:25
1
answer

Android - Run function with seconds of delay

My question is: how do I make one function run after another? MainActivity.class public void onClick(View p1){ //quero que essa função seja executada primeiro Toast.makeText(getApplicationContext(), "Toast 1", Toast.LENGTH_SHORT)....
asked by 28.05.2018 / 13:46
1
answer

How to use the Strings file inside the code

Example strings.xml <string name="beer">Beer</string> Example strings (en-us) <string name="beer">Cerveja</string> In the code I wanted to reference this: @Override public void onClick(Vie...
asked by 05.05.2018 / 19:48
1
answer

Error using AsyncTask more than once

I'm developing an application for android that connects to a webservice, to do the connection part I used an AsyncTask to avoid crashes, but when I run the application I can register the user only once, after that I try to register again it retu...
asked by 26.04.2018 / 03:40
2
answers

Status bar with three-color gradient in Android Studio

It's like doing a status bar with a 3-color gradient (as in the image).     
asked by 05.05.2018 / 19:10