Questions tagged as 'android'

2
answers

hasMoreElements () in StringTokenizer returns true only

Good morning. I have the following code in java, I am developing an Android application. The code is: bajaRepostajeSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSel...
asked by 24.05.2017 / 11:05
3
answers

Disable a button

Good afternoon, I was trying and I do not understand how to do it. I want the user to choose an option, by pressing a button, depending on the button you have chosen, a specific action takes place. The problem is that if you press the A button,...
asked by 10.09.2016 / 16:11
4
answers

Uninstall Android Studio

Someone knows or can give me a recommendation on how to uninstall Android Studio , in a way 100% remove the sdk and other components that the same Android generates. I want to uninstall, because I often generated errors with the SDK, th...
asked by 27.08.2016 / 23:15
3
answers

Request individual permission on Android 6+ M

I am implementing the permission check at runtime for Android 6+/ Android M more or less understand the process: checkSelfPermission To check the permission: shouldShowRequestPermissionRationale To know if the user a...
asked by 12.09.2016 / 19:34
2
answers

Shaping a LinearLayout with gradient

I have the following code that generates a gradient: <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item> <shape> <gradient...
asked by 02.10.2018 / 04:20
1
answer

MediaPlayer does not work sometimes

The problem I have not located will therefore try to be as specific as possible because the compiler does not throw any errors and when it passes through the debugger test, either, but in some cell phones a very peculiar error occurs which I hav...
asked by 07.11.2018 / 04:09
2
answers

Get the URI of a Drawable in Res or Assets in Android

How can you obtain the path URI of a resource Drawable internal%, saved in res or assets ?     
asked by 10.10.2016 / 23:14
3
answers

Use "View" to know which button has been pressed

I have a question, I can use view to know which button was used, I'm setting up a calculator and to save code I want to use a single method that can be used by all the numeric buttons, but to do that, I first have to know which button was presse...
asked by 13.10.2016 / 04:14
1
answer

Exo player when changing video orientation starts from the beginning.

I've been trying to solve the problem for days and nothing .. I am trying to implement the ExoPlayer in an application where videos and instructions and cooking recipes come out. The video works normal and everything is fine but when I change th...
asked by 10.08.2018 / 10:13
1
answer

Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api' [duplicated]

I have this message of warning , although I have already made the change, it still appears to me every time I compile or start the project, maybe I will find some additional correction, but I would like it not to continue appearing....
asked by 06.06.2018 / 21:15