Questions tagged as 'android'

1
answer

How do I make an action at a specific time when the phone is blocked?

I have this method. The problem is that it does not work when I lock the phone. Only shows me the notification if the phone has the screen on, if I block it and I put it to activate only 5 minutes later (it's 9:00 p.m. and I set it to 9:05 p.m.)...
asked by 26.03.2018 / 11:24
1
answer

How to convert the date and time into a text? Android Studio

for example: 03/28/2018 10:57:24 and when registering or updating it is appreciated: "A moment ago", "An hour ago" in the xml     
asked by 28.03.2018 / 15:59
1
answer

Close AlertDialog

I open the dialog and you can see that I send a call to take a photo or to select it from the gallery. The problem is that once the photo is uploaded the AlertDialog is still open, of course you can add a button like cancel with a simple dism...
asked by 12.01.2018 / 07:31
1
answer

Intermediate photo in a TextView without cutting the text in two

How can I place text around elements in Android Studio to look like this: Or with the intermediate text without having to chop the text in two like this:     
asked by 11.12.2017 / 17:28
1
answer

Show notifications counter in BottomNavigation

I currently have it as the second image, but I found it a bit more attractive with the navigation bottom , but I want to know how I can make the red balloon appear with the number of notifications (counter) . The red balloon is a "Draw...
asked by 16.11.2017 / 02:34
1
answer

TABLE LAYOUT ANDROID

I have the following table with images <?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"...
asked by 28.12.2017 / 20:56
1
answer

how to put a JSON in a Spinner?

I bring my json from a php and I pass it as string to my activity class via onPostExecute from AsyncTask : public String doInBackground(String... params) { String type = params[0]; String registro_url = "http://...
asked by 17.12.2017 / 21:48
1
answer

Android Multi-thread Attempt in TextWatcher

I have an editText in my application which has a TextWatcher implemented in the creation of the class    txtBeneficiary = (EditText) findViewById (R.id.txtBeneficiary)   txtBeneficiary.addTextChangedListener (filterTextWatcher); private Te...
asked by 31.10.2017 / 14:37
1
answer

Infinite Loop addTextChangedListener Android

In the Create of my Activity, I have the following entidadFinanciera.addTextChangedListener(filterTextWatcher); which does private TextWatcher filterTextWatcher = new TextWatcher() { @Override public void beforeTextChanged(CharSe...
asked by 09.01.2018 / 23:44
1
answer

ANDROID - java.lang.UnsatisfiedLinkError: No implementation found for long com.android.tools.profiler.support.network.HttpTracker $ Connection.nextId ()

Good community, I just found this error just start the app on the physical device, without changing any part of the main code where the app started has missed this error, does not indicate any line of code where the error is , still I pass the d...
asked by 30.10.2017 / 19:12