Questions tagged as 'android-studio'

1
answer

How to control the number of items you see in a RecyclerView

As the question says, I have my RecyclerView filled with 50 elements approximately which by default are shown but what I'm looking for is to be able to give a specific number of elements that I want to see, I know that the getItemCount...
asked by 23.04.2018 / 21:06
2
answers

get the name of the file downloaded by a url, I clarify the name of the file is different from the url

I need to download a pdf from my Android app but without stepping on the name, that is, when I enter the url " link "to generate the request to the server, this will verify if there is a pdf that refers to that time, if so, I will respond with...
asked by 30.08.2017 / 20:33
2
answers

Remove Switch case by a for?

I do not know how to face the following: I have the following code part: for(int i = 0; i < 2; i++){ ArrayList<String> dade = new ArrayList<String>(); switch (i) { case 0:...
asked by 16.10.2018 / 15:33
0
answers

AdMob ads really do not appear

the ads do not appear to me, if I put a test id, yes. Is it true that for the real ads to appear first the app must be uploaded to the PlayStore ?? Test ads work, but not really. The ids I put them with XXX to not show them but they are th...
asked by 26.12.2018 / 19:58
2
answers

RadioButton Selection Screen

I want to implement a selection menu that shows me a list in the following way:         I do not know with what kind of activity something like this can be implemented in Android Studio, thank you very much     
asked by 01.09.2018 / 03:08
1
answer

have you declared this activity in your AndroidManifest.xml? (Android Studio)

I have a problem with only one list, what happens is that I want 10 items to come out, but only one appears. I think it's because of my activity and fragment, but what code would I have to put it? Besides, I get an error in the "logcat" that say...
asked by 29.08.2018 / 23:15
4
answers

Go to main screen from any screen in android studio

I have a project in Android studio with several activities, in which I want the moment when I press the back button of the navigation bar to return to the main screen of my project. Thank you in advance     
asked by 05.07.2018 / 04:12
1
answer

How can I get the updated value of the dollar in android studio? [closed]

I'm new to android studio and I can not figure out how to do it. On my PC I wrote a Bash script that does what I need: #!/bin/sh wget www.bna.com.ar -O bna 2> /dev/null cat bna | grep td | grep [0-9][0-9]\.[0-9][0-9][0-9][0-9]| head -2 | ta...
asked by 04.05.2018 / 00:07
2
answers

I get the following error in android studio

Error message in Logcat E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.admin.tallerandroid.fede.tallerandroid, PID: 1833 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.admin.tallera...
asked by 03.08.2018 / 17:05
2
answers

Horizontal ScrollView. Distribute the content in several lines. Hangman game

I'm trying to solve the hangman game on android and my problem is that I have a HorizontalScrollView, which contains a Grid Layout. I fill it with buttons, one for each letter of the alphabet. My problem is that the buttons I put them all...
asked by 18.12.2018 / 20:16