Questions tagged as 'android'

1
answer

Stop TabView

I have two TabView and the problem is that if for example I have a Toast in Tab2 when opening Tab1 is executed, how can I make it so that it does not "exchange data", that is, if I am in Tab1 or Tab2 th...
asked by 23.06.2017 / 22:56
1
answer

Show image from the folder of a protected server with .htpasswd

I have a app in android showing images with this plugin . The problem is that I have added a .htpasswd to protect the images and now it does not show them to me, I have added to the url the parameters user:passwor...
asked by 23.06.2017 / 09:16
1
answer

Change the color of the status bar of android

I want to change the color of the status bar of my app on android. I have this code but it does not work: Log.e("Resultado", Build.VERSION.SDK_INT +">="+ Build.VERSION_CODES.LOLLIPOP); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOL...
asked by 22.06.2017 / 12:48
1
answer

How to extract the numeric IMEI as shown on the phone when doing * # 06 # from my application [duplicated]

I have the method well implemented to extract the imei in my application. The issue is that it shows me the imei: 52b3f8b114ff321f and what I need is the numeric format like 35232143423546.     
asked by 31.08.2017 / 19:54
1
answer

FATAL EXCEPTION: main java.lang.NullPointerException Android Studio

Can someone help me solve this execution error please, I'm trying to show a map, in a fragment, I'm working from the template of a navigationDrawer. I have generated a fragment that contains the following code: import android.net.Uri; import a...
asked by 31.08.2017 / 16:51
2
answers

Fill Spinner with my Sqlite list

I have a Spinner with three positions 0, 1, 2 and what I want to do is create more positions with a list that I have in my Sqlite : final List lista = mDatabase.ReadCategorias(); Activity int flags[] = {R.draw...
asked by 26.06.2017 / 18:22
2
answers

Make a backup copy of a database to the sd card

I have this simple database and I want to backup the sd card, how can I do it? public class Usuario extends SQLiteOpenHelper { String sql ="CREATE TABLE Cliente (id INTEGER, nombre TEXT, apellido TEXT)"; public Usuario(Context contex...
asked by 28.06.2017 / 02:17
1
answer

Problem receiving a socket on android

I have a Raspberry sending some data to my Android APP and the only way it works for me is the following APP: public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) {...
asked by 12.06.2017 / 18:16
1
answer

How to get the id (int) of several layouts with variables listed in Android?

Good, I would like to know how to get the id of a series of layouts that have names of similar variables, in this case their suffix is a number. I want to store your IDs in an array. But obviously I can not change the number by a concatenatio...
asked by 20.06.2017 / 00:54
2
answers

Refresh Activity or List (Whichever is better) Android

Hi, I have the following activity that creates a list with data brought by php and mysql . How can I make this list update every so often or refresh the activity without having to use the button something like a meta refresh?...
asked by 18.06.2017 / 01:32