Questions tagged as 'android'

1
answer

"New" message in my RecyclerView

I have a RecyclerView that I fill in with the data that I store in Firebase , what I try to do is that when a new item is added, a text like for example new Something like this: How can I do this? NombresAdapter...
asked by 30.05.2017 / 21:43
2
answers

How to change the underline color of a TextView in Android?

I'm adding the underline to TextView like this: TextView register = (TextView)findViewById(R.id.txt_register); SpannableString content = new SpannableString(getString(R.string.text)); content.setSpan(new UnderlineSpan(), 0, content.leng...
asked by 06.06.2018 / 01:23
1
answer

Change the expandable list view android icon

I want to change the icon of the first image with that of the second image. How can I do it? android:id="@+id/expandableListView" android:layout_height="match_parent" android:layout_width="match_parent"...
asked by 04.06.2018 / 16:39
1
answer

Download xml from FTP

I am trying with the following code to download several xml from an ftp. The first xml downloads it correctly but from the second it returns null . What would be the right way to do this? private Vector<InputStream> descargarConten...
asked by 19.07.2017 / 19:33
2
answers

Limit height of a Spinner from Layout

How can I limit the height of a Spinner from the layout where I have it? The problem is that on devices with smaller screens it has too much height , so I need to change it from layout layout <Sp...
asked by 13.03.2017 / 23:09
1
answer

Show the selector in the indicated tab when I pulse onBackPressed in a TabLayout?

I have a TabLayout with 2 tabs , when I press above each tab the selector is shown above the indicated tab, but when I press the physical button on the back the selector remains in the previous tab. TabLayout mTabLayout = (TabLayo...
asked by 15.03.2017 / 20:21
1
answer

execution failed for task 'transformclasseswithdexfordebug'

   Error 1   : This happens to me when I execute my project. Error:Execution failed for task ':app:processDebugManifest'. > com.android.manifmerger.ManifestMerger2$MergeFailureException: org.xml.sax.SAXParseException; lineNumber: 1;...
asked by 13.03.2017 / 18:00
1
answer

Android 6.0 Permissions Why when I try to create a folder in the SDcard I create it in the internal storage of the device?

First of all I clarify that I am a novice in programming. What I'm trying to do is create a simple folder in the sdcard, but I create it in the internal storage of the device. To do these tests I am using my own Smartphone which is an LG G4 H815...
asked by 12.04.2017 / 20:14
1
answer

How to find the path of a folder on android?

I am using the AWS SDW (Amazon Web Services) to send data to the AWS IOT with my application. In this application I first have to connect with AWS IOT. The method to connect me needs a keyStore. I have this keyStore and I have it saved in a fold...
asked by 17.04.2017 / 16:24
1
answer

Problems with the differences of an Activity and DialogFragment

I have a problem and I can not solve it in any way. I used to have a Activity called MasInformacion and did the following: public class MasInformacion extends Activity { private TextView editTextNombre ,editTextFecha, edi...
asked by 03.03.2017 / 00:39