Questions tagged as 'android-studio'

0
answers

EditText keyboard modifies Layout

Good morning everyone! I'm working on a game for Android, which has a EditText numeric type. By touching it, the keyboard is displayed, and in doing so, it modifies the size of my layout parent, which is a RelativeLayout . The pr...
asked by 14.07.2017 / 03:36
0
answers

how to create switches with array and / or for in android studio

What happens is that I need to do this view in android studio in the java part, pragmatically but until now I have not found the way obviously focused on the screen since more buttons will be added later and I understand that it can be done with...
asked by 17.07.2017 / 19:37
0
answers

Web view for Android less than 6.0

Although the WebView in general works well, in which I have enabled javascript, when entering pages that require more resources, they do not load (or load poorly) on mobile phones with android versions of 5 or less. I would like to know if there...
asked by 01.07.2017 / 12:38
0
answers

Load data to a spinner of a fragment in a dialog

I have not been able to load the data I have in an array (string) to a spinner that is in a fragment which is shown when I touch a certain button. Button code in the activity AlertDialog.Builder builder = new AlertDialog.Builder(this);...
asked by 01.07.2017 / 01:12
0
answers

Compare a numbers of an arraylist with a button

I have 4 buttons and an arraylist with numbers between 1-4, what I need to do is to compare the numbers in the array with the button I press (button 1, button 2, button 3, button 4) if it is correct to continue to the next number but call the ne...
asked by 01.07.2017 / 06:45
2
answers

Sudden error layout

In an android project, I had the following line in main_activity.xml without giving any error: tools:context="com.example.alumno.prueba_2.Launch" (activity main.xml, carpeta layout dentro de res) but now it does (unresolve launch cla...
asked by 29.06.2017 / 15:21
0
answers

Android Question OnClick

hello a query the issue is like this I have an onclick that generates a number depending on the button that presses (from 1 to 4) and I have a handler that at a certain moment has to pause and wait for those buttons to be pressed and compare it...
asked by 03.07.2017 / 04:27
1
answer

Problem calling element with findViewById

Dear, I have a function called Reproductor() , the purpose of this is to use the class MediaPlayer , both to play and to give pause. import android.app.Activity; import android.media.AudioManager; import android.media.MediaPlayer;...
asked by 04.07.2017 / 20:02
0
answers

infinite loop, blocking android studio interface

I have a problem with an infinite loop that I generate in a handler, the idea of the infinite loop is to wait for a button to be pressed that modifies the value of p, but the theme is this when it enters the infinite loop it blocks the interface...
asked by 03.07.2017 / 23:59
0
answers

Android Studio screen limits

I have a Bitmap on the canvas that I move around the screen with an On Touch event. The question is, how can I make the image I move not to leave the screen? Type set some limits where you can move it and hit the edge of the screen and do not le...
asked by 17.06.2017 / 18:18