Questions tagged as 'android-studio'

1
answer

Is it possible to deactivate the gps to reduce the battery consumption in an app?

I am using the GPS in my application to define the exact location of Smartphone , ( latitud and longitud ), coupled with this I receive the coordinates in a Geocoder to get the name of the street according to the...
asked by 10.07.2018 / 22:22
1
answer

Does not play an animation on Android

I'm trying to make an animation for an image, but the problem is that the animation is not running, does not show any errors, put my image I want to animate in a class that extends Fragment . This is my class that extends from Fragment: pu...
asked by 01.06.2018 / 22:28
1
answer

download an element from the listView as footer

I want to download the close session below everything like the image but I can not do it, I'm left below the last item in the menu add this line to add a footer to the listview but leave it below the next element but not below as I wa...
asked by 23.05.2018 / 18:35
1
answer

How to solve blank space (Android)?

I have an Android XML that implements an AutoCompleteTextView. The thing is that I would like to put it underneath and if I move it, a blank space is generated between the top bar and the AutoCompleteTextView. Any solution? <?xml version="1...
asked by 25.04.2018 / 16:30
2
answers

Error getting user's location - Android GPS

I am new to the development of applications for Android and I am creating an application which makes use of the user's location. The problem is that sometimes I get a Lat and Long of (0,0). I mean, he can not read it. But this only happens with...
asked by 21.03.2018 / 07:19
1
answer

Verify Internet App Android Studio

I need my application to check if there is internet and if there is not show a set.text saying that there is not. I think it has something to do with this class: public class HTTPDataHandler { static String stream = null; public HTTPDataHa...
asked by 24.10.2017 / 18:04
1
answer

How to close an external application from my application

I will simplify the question: I want to launch an external application at a time that I developed. Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.mariana"); startActivity(launchIntent); and with this code I ope...
asked by 26.12.2017 / 19:08
1
answer

Android stops when you press a button several times

I am developing an app to listen to streaming radios but if I press the button 3 times, it stops. Another problem is that I would like you to be a second in buferring before I start playing to prevent it from starting, stop and continue. Log Cat...
asked by 02.10.2017 / 21:00
2
answers

Listview a Textview on android

Developing a mobile app in android-studio I have a ListView and I want to get the event in which when I select an Item from the list I show a certain String in a TextView . For example: Selection in Item A presents...
asked by 26.06.2016 / 16:54
1
answer

problems with Action_send: ActivityNotFoundException

Hi, I'm executing action_send but I'm stopped by the application I'm using android 7 and with other versions it works but with this it stops. String email = "[email protected]"; Intent intentMail = new Intent(Intent.A...
asked by 12.09.2017 / 04:07