How i can automaticcly turn on location? [closed] - java

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
want to automatically turn on geolocation?
thanks all

I want to automatically turn on geolocation.
Sorry, but you can't.
The device belongs to the user, and you can only turn geolocation with the user's permission, as granted (or denied) by that prompt.
The best you can do is to display a message to the user telling them that your app cannot run unless they enable geolocation. However, it is their choice to enable it, or not.

You can do something like the user can't use the app until you get their location.

Related

How can I control other application in my phone [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 11 months ago.
Improve this question
I am a beginner in programming Android applications in Java. I want to know how to control or change something, for example, cut off the Internet on another application. Is there a way or suggestion. Thank you
I don't think it's possible unless you are the developer of both and remove the permission for both apps, see: Can an app give its permission to another application in android?

Simulate key press? [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 3 years ago.
Improve this question
I am looking for a method that allows me to press freely on the Android screen. Simply put, it would emulate what a person can do to move on the Android device
I want him to press the buttons of this game. I want to make a bot.
To get the control of the keystrokes from a background app you need to be root. Instead of that, you can use monkeyrunner to make scripts using Python. Another option is to use direct commands in ADB, as stated in this answer. Every option needs to be connected to a computer via USB cable.

Get notification when user saves new photo in gallery [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 3 years ago.
Improve this question
Idea of app: it is something like Google Photos.
App which listens when user take a photo with his camera app, and send this photo to server.
How can we know when user take a photo? I think that it is something like Listener "onUserTookPhotoListener", isn't it?
Infinity cycle checking gallery on background?
You can use FileObserver. It works for files and directories. You will need to implement service though.
Please take a look at questions and answers that can be helpful:
First
Second

How can I extract data from one app to use in another app on Ubuntu? [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 7 years ago.
Improve this question
For example,there is an app called System Analyst that shows me how much data has been downloaded in the current session.I'd like to use this data in another app,which I want to write in C or Java.
Is this a bad idea?If so why?
Usually it's better to go to the source of the information instead of trusting some other application. In the case of data received and sent, you can get them directly from the kernel by reading /proc/net/dev.

Access app by face recognition [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 7 years ago.
Improve this question
I'm trying to make an app which will check the face of the user by using the front camera the first time it is launched and then save how that face looks.
After that, every time someone starts the app it will check if his or her face is similar to the one that the app saved on its first launch, and if it's similar, proceed, if not, quit.
I know that there is face recognition unlock for Android, so I hope it's possible.

Categories