Questions tagged as 'android'

1
answer

Share html android file

I want to share a HTML as a file, not just text. First, would I need to generate a file to send later? Intent sharingIntent = new Intent(Intent.ACTION_SEND); sharingIntent.setType("text/html"); sharin...
asked by 15.03.2018 / 20:57
1
answer

How to recover the IMEI from the cell phone programmatically?

So, I need to recover the IMEI from the mobile that is using the app, I tried to use some old methods, but I always get the warning that the method has been deprecated ... could they help me? Thank you in advance! code used: final Telephony...
asked by 12.06.2018 / 19:36
1
answer

How do I restart the app when it is brought from the background?

I need my app to restart whenever it is brought in from the OS background, so the user is required to log in again. I tried to use finishAffinity() in my onPause() of activity, the problem is that this method is also called when...
asked by 08.03.2018 / 18:46
1
answer

How to fix a Bug loading a Fragment inside another Fragment?

I have a MainActivity with Navigation Drawer, and all items in this browser open in Fragments. When I start the application I load the homepage as follows: android.support.v4.app.FragmentTransaction ft = getSupportFragmentManager().beg...
asked by 02.03.2018 / 02:31
1
answer

Remove accent on search using android searchview

I would like when searched in my listview João to display João, Joao, joão, joao . I'm using a searchview, I read something about Normalizer but I did not quite understand it. @Override public boolean onCreateOptionsMenu(M...
asked by 03.03.2018 / 19:24
1
answer

Error putting ImageButtons with sounds within fragment

I'm trying to put ImageButtons playing sounds inside a fragment called Tab1, however I'm encountering two errors:   Non-static method 'findViewById (int)' can not be referenced from a   static context on the line final ImageButton v...
asked by 07.03.2018 / 15:15
1
answer

How to check for POST error

I need to check if there was an error in the response from onPostExecute or it gave time out on the server, because sometimes it gives some error in the process and this method does not even start, how could I do such verification? I call it t...
asked by 04.02.2018 / 15:18
1
answer

The search for my DB placed in a listView (Arrayadapter) returns the address of the object and not the content

I made an APP that saves the date and a string of numbers (8 numbers) in the Android database. I created an object (with date and numbers), but when I go to search all objects inside the Database and put a list it returns the addresses saved....
asked by 02.02.2018 / 13:15
1
answer

Pull AsyncTask class return

I have a Main class that runs a receberSolicitantes() method with a task in background . While it runs, it updates a progressBar . Everything is working perfectly with the method as follows: public void receberSolicitan...
asked by 22.02.2018 / 20:41
1
answer

Browse JsonObject Android

How to move an object array so that I can get the data? {"number1":"value1", "number2":"value2", "number3":"value3"} for (int c = 0; c < jsonObject.length(); c++) { }     
asked by 16.02.2018 / 19:07