Questions tagged as 'android'

3
answers

Differences in how to get the context in Android

What are the essential differences between the methods getContext() , getApplicationContext() , getBaseContext() , and this to get the context in Android ? I know it can be a very trivial or very broad question,...
asked by 05.12.2016 / 13:24
2
answers

close Android APP from a class

I created a class public class MyCountDownTimer extends CountDownTimer { Activity activity; public MyCountDownTimer(long startTime, long interval,Activity m_activity) { super(startTime, interval); activity = m_activity;...
asked by 03.05.2016 / 18:38
2
answers

Close and go to an activity after the user's idle time [closed]

I want to make a method (service, alarm, etc) that I can calculate after x user idle time with the app , close the current activity and send you to the initial activity (login) Thank you very much     
asked by 27.04.2016 / 18:19
3
answers

How to run an asynctask every so often?

I'm making an application on android. Inside it I have a Google maps object from which I get the latitude and longitude respectively. The problem is that I need to send this data every 3 seconds to a server through the Web Service. However, I ca...
asked by 31.07.2016 / 08:52
1
answer

Open settings from android app

I would like to add the option to configure the wifi network to an app before starting to operate with it, so I would need to open the settings from the application. However, after several searches in google I have not found inf...
asked by 28.06.2017 / 08:37
2
answers

Trying to use firebase: "can not resolve FirebaseMessagingService"

I'm trying to use firebase for background notifications. but it does not detect FirebaseMessagingService attempt extends of this and it tells me:    can not resolve in the gradle I have dependencies { cla...
asked by 12.12.2018 / 17:36
2
answers

How to get the UUID of bluetooth on an Android device?

To establish a socket connection to my device via bluetooth I need to obtain the UUID identifier of the "server". On the part of the client I can obtain the UUID's by means of the method getUuids () from BlueToothDevice    getUuids ()...
asked by 22.03.2018 / 17:17
1
answer

Android Studio rain effect for games

I'm using this library to create a rain effect. Now I wanted to identify when the image reaches the limit of the screen to add the shock effect to the ground. How could I identify when the image reaches the end of the screen? Thanks. My...
asked by 02.12.2017 / 18:44
2
answers

Simulate ViewPager transition with fragments but in activities

Assuming we have two activities, A and B. I want that when you press an element (for example a button) of the activity A change to the activity B simulating the effect that has been implemented in the ViewPager when changing from one fragment...
asked by 24.10.2016 / 16:41
3
answers

If you sign an APK if you do a build afterwards, it stays recorded?

I have a question, once I have clicked on Generate Sign APK and I create the APK, when I want to go after adding code to the application and I want to generate the APK again I have to click on Generate Sign APK again so that I can I have to assi...
asked by 25.10.2016 / 19:38