Questions tagged as 'android'

2
answers

The database does not run

I am running a database already created in another class, but I do not know why it is not running: In this code: DB baseHelper = new DB(this, "DEMODB", null, 1); SQLiteDatabase db = baseHelper.getWritableDatabase(); if(db != null){...
asked by 08.03.2017 / 05:17
1
answer

Doubt with animations on Android

The first doubt is how to stop the animation once it's done, right now it's a loop and I want it to only do the animation and stop once: ImageView img_check_guia3; @Override protected void onCreate(Bundle savedInstanceState) {...
asked by 08.03.2017 / 00:59
1
answer

Style of editText on Android with shadow similar to Google search

How can I achieve a style for editText on Android like the one in the next image? The part of the magnifying glass is a button, also the editText has a shadow very similar to the one that is using the editText of the Google searc...
asked by 12.01.2017 / 08:03
1
answer

Load different layouts

Good! Depending on a given data I would like to load one layout or another in the setContentView. I have put the following: //obtengo el dato enviado desde la otra activity dato = getIntent().getExtras().getInt("id"); Log.i("seguimiento",...
asked by 27.02.2017 / 12:57
1
answer

How to get data from the cloud or localhost on Android [closed]

I am working on an Android application, for which I must manipulate a Vector. The insertion of objects into this Vector is done manually, each time the application is executed and I keep the data in the internal memory state. What I would lik...
asked by 30.12.2016 / 18:58
1
answer

Save animation frame by frame

I have a frame by frame animation in xml. My question is whether it is possible to save it in shared preferences and how to do it. Thank you. <?xml version="1.0" encoding="utf-8"?> <animation-list xmlns:android="http://schemas.andr...
asked by 06.12.2016 / 17:49
1
answer

How to assign background transparency to my toolbar?

Good day. In my application I have a toolbar in which there is a button that calls the side menu. How could I do to put transparency in the background so that something like that remains This is the toolbar xml <andr...
asked by 19.01.2017 / 21:36
1
answer

Extended App Bar

How can I implement an extended app bar, like the one shown in the image?     
asked by 18.01.2017 / 23:39
5
answers

Firebase cloud messaging sound when receiving notification with closed app

Good morning, I'm having this little problem that I can not find a solution for. I set up my app to receive push notifications with FCM, the issue is that when I have the app closed the notification but does not play sound and that is what I wou...
asked by 20.01.2017 / 14:45
1
answer

Android: Accommodate CoordinatorLayout

I put a CoordinatorLayout but according to me it already fits as it should be seen but what happens is that the TextView and the GridView that I have are placed on top of each other, the coordinatorLayout I require it...
asked by 09.12.2016 / 17:17