Questions tagged as 'android'

2
answers

Click-through button for location? [closed]

How to configure a button so that when clicked open the maps and send the user to an address?     
asked by 07.06.2017 / 18:10
1
answer

How to send JSon to another activity?

How to send JSon to another activity? public class SolicitaDados extends AsyncTask<String, Void, String> { @Override protected String doInBackground(String... urls){ return Conexao.postDados(urls[0], parametros);...
asked by 28.01.2017 / 21:08
2
answers

How to update the recyclerView after updating data via dialog

My application works something like this. Within a fragment I have a RecyclerView composed of cardviews, fed by a database. On each card, there is an edit button (imageView) that opens a dialog (alertDialog) with a form. editing. Everythin...
asked by 24.01.2017 / 03:24
2
answers

Compare Background with Drawable

I have a problem comparing Background of a ImageButton with a drawable IB6 is my ImageButton and wanted to see if it has drawable def , when it arrives at this if the application for and gives e...
asked by 30.01.2017 / 15:11
1
answer

Compare geopoints with user geolocation

I'm using Google Maps API v2 in Android Studio and picked up the base code as available and only implemented a few points on the map, using latitude and longitude of points (% w / w). I also added the function to locate the user on the map....
asked by 06.10.2016 / 04:12
1
answer

How to draw a route using Google Maps? [closed]

I have a screen where Google Maps is located and I want it to take the user's current position and automatically route to the geolocation point that I'm going to set "Fixed" in the code. How to do?     
asked by 14.10.2016 / 23:38
2
answers

Synchronizing data on android

So, I'm in a project that needs to save a large mass of data coming from an api json in android's SQLite, something like 20,000 records, so you can work offline with no problems. Only the synchronization of this mass of data is taking a long...
asked by 11.10.2016 / 17:07
1
answer

How to get the value of a Spinner and continue the form

Good afternoon, I have a simple form in my android app, where the user writes name and signs an alert, but in the frequency field of the alert I inserted a spinner (android selectbox) with options of numbers that are strings. / p> txtFrequencia...
asked by 11.04.2016 / 21:49
1
answer

Return String from onPostExecute ()

I have this code: MainActivity: @Override protected void onCreate(Bundle savedInstanceState) { ... btn_login.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { final Stri...
asked by 18.03.2016 / 17:58
2
answers

Android application restarts if out of focus for a while [duplicate]

My app is an intermediary of a service request, eg: (UBER). What happens is that the main screen of the business, which is the one that the professional is moving to go find the client, disappears after a time if the user is using other applic...
asked by 30.03.2016 / 15:40