Questions tagged as 'android-studio'

2
answers

Error comparing values in Android (if)

I have the following Activity which starts a service type service on android for it within my class Activity I have the following Intent i_service = new Intent(getApplicationContext(), MyService.class); i_service.putExtra("nombre_clase...
asked by 05.05.2017 / 08:21
1
answer

Error [I18N] Hardcoded string in android studio

It was not until recently that I learned in Java what I needed to program applications on Android and I am practically a novice in this technology, it would help me a lot if you helped me with this warning message:    Message: [I18N] Hardcode...
asked by 30.06.2017 / 10:59
3
answers

Problem with AndroidStudio library

Good morning, I try to add the compile 'com.android.support:design:22.2.0' library to my program: buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.2.2' compile 'com.andr...
asked by 27.11.2016 / 22:02
1
answer

In android studio I get the following error: No debugable applications

I'm getting the following message in Android Studio 1.5.1:    Error: Non-debuggable applications I try to restart it and it still does not work. But before it did work and no plugin or library has been installed or changes have been made...
asked by 15.01.2016 / 18:27
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
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
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
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
2
answers

How to change the height of my layout programmatically?

I have a little doubt .. I am setting up an item_layout for the cells of a list .. There is a way to handle the height of the cells, according to the data that they load ... I'm using PercentRelativeLayout oidit; oidit = (PercentRelativeLayou...
asked by 22.10.2018 / 17:39