Turn off tablet when user log out from my application - android

I am developing a tablet application for school and my requirement is to turn off my tablet, when user clicks on log out button provided in my application. This because I don't want to give any other access to users.
Can anybody tell me, is it possible? If yes, then how can I do this?
Thanks in advance..

Actually.. the answer for this question is no if you are developing an ordinary sdk
application.
Answer from Commonsware:
Only applications signed with the system firmware signing key can do this.
EDIT:
Check this answer from Michalis

Related

A way of preventing location disable in android device?

I developed a app in my company to fetch the location of the device of my employees. They are field technicians so I need to know their location to assign different tasks. They are aware of the app installed in their cellphones, and I managed to forbid the uninstallation, but I cant prevent them to turn off the location services. There is a way to do that?
I was thinking in developing a Custom ROM and removing this option, so it always be on but i'am not a Android developer so I don't know if it is possible to do that.
Do you know any project about this? I searched in GitHub but i couldn't find any related really.
If you can help me I would be very grateful.
Thanks.
PS: I also have a Google G suite work profile in the cellphones,
but I didn't find any option to control device settings remotely.
Why can't you just ask them to not turn off their location? Then in your code simply check to see if the user has disabled the GPS and if so report that user to the server, after that you can deal with whoever did this in person.
Also, make sure your users don't cheat by using a FakeGPS app.

Delete unpublished app from devices who have it installed (Android)

We unpublished an Android-app from the Google play-store. We still see that it is installed on 500+ devices. Is there a way to remove it from these devices? If not, is there a way to show people who open the app a message?
If for both questions the answer is no, what would be the way to go?
Br.
Sorry, the answer would be no for the first aspect of the question and a maybe no for the second aspect of the question. The thing is that if you have some kind of connectivity in your app, i.e. some type of way to communicate with your users built by you, then you could use that channel to communicate whatever you desire. If not, well then you can't force them to uninstall the app. They got the app when it was available, and you've got no control over what apps a person has on their phone, even if you made that app.
Best of luck.

Is it possible to ask confirmation before uninstall android app?

I'm relatively new to Android. I'm making an app that need to ask a password before uninstall without rooting the phone, but after a lot of research i understood that this is not possible (correct me if i'm wrong). Now i'm trying to understand if it is possible to show a tab or anything else which asks confirmation before uninstalling my app. I'm almost sure it is not possible, but I'm asking here because maybe some more experienced user can help me.
I'm using API level 21+.
If my question is not clear or more information is required tell me and I will update this question.
Thanks for the help.
It's impossible. The uninstall operation is being performed by the Android system and there's no way to influence the way it performs this task. If this would be possible, everyone would do it and it would cause nothing, but annoyed users.
Its not possible however I did look at this question. I believe this is a possible solution to the problem?
If you can just make a popup window and let the user accept/decline the install/uninstall operation?
install / uninstall APKs programmatically (PackageManager vs Intents)

In app rating-Android

Firstly, I am not a coding guy. So please explain to me like a 5 year old! :)
The problem that I am facing is that is it possible for an Android app to automatically recognize whether the user has rated that particular app on the play store or not? There are pop-ups etc which can guide the user to the play store page and rating can be done there, but does the app realize that it has been rated? If so, then is there a particular code that needs to be included wile developing the app?
Thanks
A simple 5-year-old answer: No, there is no way to do this.

How to check if somebody wrote a review to my Android App

In my Android App i want a popup do show up with a button that links to my app in the market.
The popup is showing currectly, but if somebody has already wrote a review for my app, i dont want it to show up.
Is it possible to check if the person has already wrote a review or gave stars?
Sorry for my bad english. I hope you did understand my problem.^^
not really. You can have your app remember that the specific user has pressed your pop-up button before to be taken to the market. But you have no way to know whether they rated or reviewed your application. The Market provides no public API to get this information for 3rd party applications.

Categories

Resources