Save Geolocalization [closed] - android

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I have a problem in my Android app. I have a service for geolocalization and I need to save the position on my DB.
When the app is running in the foreground I can to save the position, but when the app is running in the background the information isn't saved.
I used Firebase with Android.
Thanks.

With Android 10 for accessing location in background you need special permisson, or you can do it with a foreground service.

Related

How to get list of running app in Android [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I'm making an app like the image below and want to get all running app in the system, currently I use ActivityManager with API>21 and get runningAppProcesses but it just returns only my app in the result list. I try many other ways like: getRunningTasks,... but get the same result. Anyone have a better solution? Thanks so much for helping me!
(Described image here: https://www.howtogeek.com/wp-content/uploads/2016/06/Screenshot_2016-06-07-21-06-00.png)
The methods you mention were deprecated because of privacy concerns.
The only substitute I know of is the UsageStatsManager, which you can query to get events like ACTIVITY_RESUMED (An activity moved to foreground) or ACTIVITY_STOPPED (Activity became invisible).
It requires the PACKAGE_USAGE_STATS
special permission. You can not ask for it, you have to direct the user to the settings using Settings.ACTION_USAGE_ACCESS_SETTINGS.

Azure Mobile Engagement [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have followed the steps here and tried to implement mobile engagement of Azure. Now I want to send notification the device. I can't find how to do it.
I have tried a lot. And also I tried to create Announcements in the REACH tab but still I did not go any notification. Now I am in the middle of the situation, that neither I know, if my could has some fault or I have not yet sent the notification correctly from the portal.
Please help me.
thanks in anticipation.
You should resume the getting started tutorial from this point: https://learn.microsoft.com/en-us/azure/mobile-engagement/mobile-engagement-android-get-started#enable-push-notifications-and-in-app-messaging and make sure you follow the GCM steps as well.
If you are still stuck after that, please edit your question to be more specific.

How does Android to check applications permissions? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I know some permissions(like sdcard_rw,network,etc)is checked by Linux kernel.But other permissions?Like location,receive boot_boardcast, camera,etc. If they're checked by Android framework. Could we write code instead of the framework to use this without permissions?
Can we write code to instead the default Android API.
Should I read the source code of Android?
Sorry,I am a beginner of Android , and my English is poor.
Thank you.
Have a look at the LocationManager Sourcecode. The code is scattered with throws SecurityException statements, every function call that might fail because of permission reasons should check the permission.
VoicemailContentProvider does this too, have a look at it's source to get an idea how it's implemented.
EDIT: my previous statement about checking on bind time is only partially true, this might be the case for older Android versions, current implementations seem to check permission on every access to the secured resources to allow for revoking through the settings application and runtime permission granting (a background process will fail to insert contacts when the permission is revoked, even if it never created a new binding to the ContactsProvider.)

Is there any way to add activity to app(apk) which is already delivered to customer [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have an Android application,already live on playstore, but due to certain changes in the requirement, I have to add one more activity to the app without updating the app again on playstore.
Also for future projects, how can I make the application update some part of its code, or patch a broken code without updating the app on the store.
In advance thank you!!
You cannot do that, unless your app is explicitly designed and written to support i.e. dynamic UI based on your external resoiurces/files etc. This is not the case so answer is "no".
or patch a broken code without updating the app on the store
You can download APK from external source and init its installation.

Android battery consuption [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
3rd party is running battery test on my android app.
They say that "Exceeds idle mode current when there is no services running with no data connectivity" for the test
test : Idle screen power after quiting the application
Current consumed (mA) :108.93
Battery Life time (hrs) : 11.11
Can anyone help me what I am doing wrong?
I was doing lot of database inserts into sqlite. But it was one time thing at the time of first run.

Categories

Resources