Questions tagged as 'android'

1
answer

Put Android on standby by program

I want the application to pass the device to standby as when pressing the on / off key, but I can not find how to do it.     
asked by 03.05.2017 / 20:37
2
answers

Go through an ArrayList and show one by one

I am using a for to go through a list of objects, but it only shows me the last one, in the console if it shows me that it goes through all, but in the Imageview it only shows the last one. Code: if(!L.isEmpty()){ for (B...
asked by 14.04.2017 / 21:10
2
answers

Is it possible to change the background color of a "Floating" Activity?

I need something similar to DialogFragment but with a full class, in other words, create a activity floating%. The procedure is as follows: In my MainActivity pulse on a Item of my ListView and it shows me a contextua...
asked by 28.02.2017 / 15:41
4
answers

Encrypt sensitive data locally

I have to keep a username and password in local. I know it is not recommended and that it can be dangerous but there is another validation data that comes from the user. After the user and password use them to make a call to an API-REST to ge...
asked by 14.07.2017 / 12:25
1
answer

Load fast video rewarded AdMob and Android Studio?

I wish you could help me solve this problem that I have. I have a project in which I have the videos awarded by admob. Everything is fine, but I have a small inconvenience. When I start the application the video loads me, but it takes 20 seconds...
asked by 04.12.2016 / 21:53
2
answers

APK update outside of Google play, error: android.os.FileUriExposedException:

I have problems with updating the apk ; what I tried to do 1st download the information of a txt hosted in dropbox and compare the version data. If there is an update, you should download the file. The problem that the log reports to me is:...
asked by 30.10.2018 / 01:34
1
answer

Unbalanced Snackbar

I have a snackbar that runs when I click on a marker, the problem I have is the position where the snackbar opens: is interrupted with the android action buttons and my idea is to move it a little higher, then the code I'm using map.s...
asked by 08.12.2016 / 21:18
1
answer

Android: Keep the options menu (OptionsMenu)

How can I continue to show the android options menu when I press any of the menu items. In other words I do not want the menu to be hidden when I press any of the elements.     
asked by 28.12.2016 / 16:51
3
answers

pass data onItemClickListener in in ListView loaded with JSON to show them in another activity

I need to control the click on the custom Listview so that it performs an operation depending on which one is pressed. I already have the OnItemClickListener. But, how can I pass the data contained in the Item to another Activity? I leave...
asked by 26.11.2016 / 17:46
1
answer

How to implement the elevation property in api 19 and lower?

I'm doing a project in android studio and I want to use the property elevation for LinearLayout but as the app will also be directed to lower versions of the api 20     
asked by 24.12.2016 / 18:31