Questions tagged as 'android'

3
answers

Kill application without root

Is there any way to kill another application (other than mine) via code without using a root command for this? I'm trying to use the "am force-stop" command, but without success.     
asked by 13.07.2015 / 16:04
2
answers

Add Spinner Item [closed]

I need to use Spinner in my app ... I'm having trouble adding elements to the list. I found it very complicated. Link: link Would there be another way to simplify this? Thank you!     
asked by 10.01.2017 / 16:53
1
answer

The cardview lost its "elevation" after I started using it in fragments, how to solve it?

Using activities the elevation works normally, after I put it in fragments, it got "flat".     
asked by 13.09.2015 / 18:07
1
answer

Problems with permission ACCESS_COARSE_LOCATION android studio

I'm building a project that uses the GsmCellLocation class. I can know this information from the TelephonyManager class. For this, I need permissions where the problem arises. An ACCESS_COARSE_LOCATION permission When arriving at the l...
asked by 03.11.2015 / 00:45
3
answers

Pass parameter to second activity [closed]

I'm trying to pass some parameter to another activity, but the application hangs on the second screen. The name of the application is calculator. The error that says on the second screen is: Calculator has stopped. Here are the codes: xml...
asked by 09.10.2016 / 00:35
1
answer

Run service even though app is not open

I'm creating a wakeup app and in tests I would like it to wake up (in this example it still only vibrates), but I'm not able to make it run in the background and so it does not end up waking up, how can I even make it app has been destroyed it k...
asked by 04.04.2018 / 03:17
1
answer

Generate sequential key with firebase

Good morning! I'm working on an app that saves some user activity and I'm having a problem saving these activities by generating sequential numbers, here's the environment: I have the user A logged in, it will create a new activity and when it s...
asked by 20.09.2017 / 14:55
3
answers

What is the name of that "change of view" effect by sliding?

Several apps (Facebook, Twitter, Instagram) make use of a "touch enabled" effect where the user drags the entire screen and it changes the view. Do not confuse with the slide effect of the menu. I would like to develop an app with this effect...
asked by 17.08.2017 / 05:15
1
answer

How to extract String from a larger string separated by "/"

I have a string and I want to extract a substring see in my code: String link = "lojas/RJ/Macaé/Loja Modelo/pedidos_ativos/03-03-2018-8773"; String uf = link.substring(link.lastIndexOf("/",0),link.lastIndexOf("/",1)); String cidade =l...
asked by 20.03.2018 / 00:12
1
answer

How do I set a list of images in the listview - imageview from the page url?

The problem is that whenever I have a new image on the page specify I have to update the application with the new image URL set on the page.     
asked by 28.09.2017 / 11:54