Questions tagged as 'android'

1
answer

Fail to request permission api 26 android 8

I'm quite new and I do not know how to assign permissions in api 26, the app works and I get the box to approve the permissions but also on top of the message that the app has failed, the function in which it falls is: requestPermissions(new...
asked by 01.05.2018 / 09:57
2
answers

How to use the variable of one method in another method?

I want to use the previously assigned latitude and longitude variables in the onLocationChanged (Location location) method and use them in the method Method () Method where I want to get latitude and longitude @Override public void onLocati...
asked by 02.05.2018 / 17:51
0
answers

Xamarin Android how to reset ScreenOffTimeout screen idle time

in an application I change the screen idle time like this: Settings.System.PutString(this.ContentResolver, Settings.System.ScreenOffTimeout, TIEMPO); Everything works fine, but if in a layout I want the rest to be 15 seconds (time = 150...
asked by 15.04.2018 / 19:53
1
answer

DOUBT Android-Do boolean functions

I'm doing a function and I want you to return true or false. I want my program to return true when the matrix [pos] has a number greater than 27 and false when it does not. You could help me, and explain to me how I can get true or false. publ...
asked by 15.04.2018 / 20:48
0
answers

FATAL EXCEPTION: main java.lang.IndexOutOfBoundsException: 6, 1 in TextView (?)

I'm getting an error that I do not know where to take. The program is for fun, a simulator of pokemon battles, and I want to show in a textview the turn-based battle (turn by turn, not the whole battle at the end). The error is: E/AndroidRu...
asked by 28.03.2018 / 01:00
1
answer

Display a DialogFragment from an Adapter RecyclerView

I have a problem trying to show a Dialogfragment from an Adapter. Normally I have done this by calling parent.Context of inflater , as follows: public class MiAdapter extends RecyclerView.Adapter<MiAdapter.adapterHolder>{...
asked by 07.04.2018 / 01:45
1
answer

Problems with json on android

I have a problem when registering a user in my android app In the registry.java I have the following code public class Registrarse extends AppCompatActivity { EditText etnombre, etusuario, etpassword, etedad; Button btn_registrar;...
asked by 09.04.2018 / 16:38
1
answer

Error with vector images

I have arrangements of vector images but when I run the app, it is truncated, what the phone displays is "Unfortunately, app has stopped" and what the logcat shows is:    03-29 01: 28: 37.177 3176-3176 / matgic.com.matgic E / VdcInflateDelega...
asked by 29.03.2018 / 07:51
1
answer

ScrollView does not scroll up

I am trying to generate a message sale that scrolls down as I insert text in a% multiline% code, but the% co_of% does not work when I try to move it up to see the previous messages. <ScrollView android:id="@+id/idChat" android:layou...
asked by 01.04.2018 / 14:24
2
answers

What does it fail to send my string String to my Post service?

Hi, I'm new working with Android Studio, I work in POST WEB SERVICE, I want to send a String string of base64, at the moment of sending my data to my string string you will generate "\" line breaks as you could solve my error: HTTP REQUEST:...
asked by 10.04.2018 / 00:22