Questions tagged as 'android'

1
answer

No Save SparceBooleanArray Listview Android

I am wanting to save the positions of the items marked in listView by means of a chekbox in each item. Each time I check the items, I only save the last checked data. To check I made it show with each check a Log of sparseBooleanArray.size () in...
asked by 22.12.2017 / 02:10
2
answers

Put default data in Android Database

I have a kind of registration form and I would like to know if, for example, if you do not put anything as a password, you will enter a default password. So I have the registration method private void register(){ String user = etuse...
asked by 07.12.2017 / 01:45
1
answer

Fill the contents of an array between classes

I'm doing an application on android, and I need an activity from an array created in another class since from a second activity I'll get the created data, however I can not add data to the array from the first activity. //CLASE QUE MANDA INSER...
asked by 06.12.2017 / 20:57
2
answers

Show Layout when clicking on RecyclerView item

I am using a RecyclerView to show a lista of usuarios . And I would like that when doing click in the items of the lista a layout is launched showing me the information that I have saved in my b...
asked by 07.12.2017 / 00:13
1
answer

How to play audio files in Exoplayer

Good morning. I used the Media Player class that has android but it throws some errors when playing some types of files so try Exoplayer, but the little documentation that I have seen have not helped me much I have seen videos and I have even...
asked by 09.12.2017 / 23:12
1
answer

Put subitem in a listview

Hi, I'd like to put a subitem in my listview but I can not get it. This is my activity_list <?xml version="1.0" encoding="utf-8"?> <ListView android:id="@+id/lista" android:layout_width="match_parent" android:layout_h...
asked by 06.12.2017 / 00:41
1
answer

Go from a fragment of the Drawer Navegation to another activity [closed]

Goodbye everyone, I have a huge problem, I created a Drawer Navigation Activity with their respective fragment and what I want to do is move from a fragment to an activity through a button. Thanks     
asked by 24.11.2017 / 06:46
1
answer

How to receive a .txt file from the Firebase Storage and read it in android studio

Good afternoon, I had the question of how it is possible to get a text document from the firebase storage and read it in my android studio application. What happens that I have been looking for all day and I can not find any place where I explai...
asked by 12.12.2017 / 19:05
1
answer

How do I decrease the alpha ONLY of the parent component of the layout.xml?

Hi, I have something like the following The View containing the EditText is a CardView, to which I try to lower the opacity without affecting the other elements, but I only see the alpha property and it affects all the internal componen...
asked by 20.11.2017 / 18:27
1
answer

AndroidStudio applications are not running

I'm new to this in Android Studio, the first applications did install me well, but lately they have not been installed. When creating the App, when it only has the text "Hello World" it is installed well, but as soon as I make a couple of method...
asked by 18.11.2017 / 16:03