Questions tagged as 'android'

1
answer

Android: I launch my app with Android Studio on the device and the icon is shown 2 times

The moment in which I launch my app with Android Studio on my device, two icons of the same app are created. I already tried to export the apk and install it but it did not work, keep creating two icons of the same application. Why does...
asked by 24.11.2016 / 21:43
3
answers

I try to retrieve a record from a bd sqlite and show it on an android studio spinner

This is my code but I have errors, someone can kindly help me. This is my code: btnBuscarUpdate.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { SQLiteDatabase db = dbHelper...
asked by 10.01.2017 / 20:46
1
answer

if and else if, java in android studio [duplicated]

I wanted to know how I can do so that if response is equal to id of Facebook, go to activity , and that otherwise go to another activity . When I try with: if (profil.getId().toString() == response) and I run...
asked by 05.01.2017 / 22:31
1
answer

Create a key value list in Java

How to create a list in Java Android of the type dictionary that is to say that content can be stored clave:valor , the key and its value are String . Update 1 I have done the following: Map<String, String> l...
asked by 25.04.2016 / 19:21
2
answers

Add Layouts programmatically on Android

Good, I need to know how to create Layouts programmatically in ANDROID, such as TextViews, RadioButtons, etc. That is, with Java code.     
asked by 24.05.2016 / 02:32
3
answers

How to implement AsyncTask when reviewing connectivity?

I'm using a method to check the internet connection, the problem is that the activity is momentarily suspended at the time this check is done, that's the verification method I found on the internet: Try to implement it, but it ended with an o...
asked by 12.03.2016 / 15:42
1
answer

Simple Recycleview on Android

I'm trying to create a list with simple content, that is, each element is shown in a single line ArrayList<String> list = new ArrayList<String>(); list.add("Simple Item1"); list.add("Simple Item2"); list.add("Simpl...
asked by 30.03.2016 / 20:09
2
answers

Error android.content.res.Resources $ NotFoundException: String resource ID # 0xbb8 on Android

I get the following error:    android.content.res.Resources $ NotFoundException: String resource ID # 0xbb8 Error log: 09-29 19:23:27.975 E/AndroidRuntime: FATAL EXCEPTION: main Process: app.descubrirosona.lite, PID: 27051 android.c...
asked by 29.09.2016 / 19:34
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

Error in getApplicationContext () Android

I am trying to load a Toast Messagge. Inside a class that "paints" a ViewPager . The problem is that I am having an error when it comes to picking up the context. What could I be doing wrong? public class ScreenSlidePageFragment e...
asked by 24.05.2017 / 14:34