Questions tagged as 'android'

2
answers

OutOfMemoryError error while downloading object list

I'm having this error while downloading a webservice object that has images that are converted to base64. The question is that if this object is already saved in the local android database the app works, I get load many objects at once and show...
asked by 09.01.2015 / 18:47
1
answer

Upload remote images with base64 or URL?

What is the best way to upload remote images on Android? How do these great applications optimize these images? In a country where mobile Internet is one of the worst in the world, there is a need to keep the user from waiting too long until...
asked by 06.01.2015 / 11:53
2
answers

Call a function when a fragment is closed

I have a activity that calls a fragment which is displayed as a DialogAlert . However, when this fragment is closed, I need a method of Activity to be called. What is the best way to do this? The Activity cod...
asked by 24.06.2014 / 02:10
1
answer

Access playlist music Android

I'm developing an APP for Android , which I need to access the playlist of songs, in this case it would load a home screen with the playlists it owns and a category with all songs, and clicking in the desired playlist displays the songs from th...
asked by 04.06.2014 / 14:40
2
answers

How to store different ids for EditTexts with the same name?

I have an interaction and inside it I create several EditText dynamically, but how do I keep the id for each EditText ? My code : for (int j = 0; j < vet.length; j++) { EditText nome = new EditText(this); nome.setId...
asked by 07.08.2015 / 16:50
1
answer

How to download PDF with url on sdcard? Android

I would like to be able to make a button that when clicked, I downloaded a pdf with the url of this one to the sdcard, but I am not getting at all ...     
asked by 30.07.2015 / 08:55
1
answer

Doubt about selecting items in the ListView

How do I do when I "click" the "Back" icon on Android and unselect all items in the ListView instead of quitting Activity?     
asked by 14.09.2015 / 14:02
1
answer

Android HtppGet URL connection

I'm trying to make an android httpget connection to php, I've done all php code connecting to mysql but start giving error starting after the "urlConnection = ..." protected String doInBackground(String... String username = (String) arg0[0]; S...
asked by 19.12.2018 / 00:15
1
answer

Doubt about the onCreateOptionsMenu method

Could anyone explain the purpose of this method? onCreateOptionsMenu I've already looked at a number of sites (in the Android documentation as well), but it's still unclear what the purpose of this method is.     
asked by 14.12.2018 / 13:58
1
answer

fetch all records from an sqlite column

I need to save the names of the users table in a list and save them in an ArrayList. I did this: public List<String> buscarUsuarios() { List<String> nomes = new ArrayList<String>(); String selectQuery = "select nome...
asked by 05.07.2017 / 20:40