Block some selected Menu-Points in Android for Parental Control - java

Is it possible to build a Android-App,
where a User can control or block some selected menu-points in the default Android Settings menu? For example Connections or Display.
Sorry, I am completley new in Android Development. I want to develop an app for Parental Control.
Thank you :-)
Iam learning Kotlin

No there's no way to do this. And remember- there isn't one settings app. Multiple OEMs write their own, or customize the base one. So even if you could do it in the AOSP version, there's no way to be sure that the others would work with it. If you need this for personal use, consider a custom ROM or replacing the settings app yourself. If this is for a store app, its just not going to work, look into device ownership and device profiles as the only real way to prevent (some) settings changes.

Related

Single application custom Android ROM

I find this question a couple places on the web, but never with a good answer. Let me be specific in the questions asked.
I want to build a custom Android ROM which only features one app. This app is not to interact with any hardware (per now). This app will be launched on the start up of the device. No locked-screen. The device will have to restart if the app malfunctions.
A resource told me that you can change the launcher app of the ROM.
-> Does this mean that the home screen, the one which displays all apps on our phones, is merely another app? If so, can you simply change the launcher app as it is stated here? What were to happen if this app fails?
If this is the case, it would solve the entire issue.
If not, how do you go about making this sort of project? It includes
Making an app on AOSP
Refuse users to leave the app or interact with anything else
Making this app part of the boot-up process
Remove locked screen
Make the app a dependency of the OS (to force shutdown if malfunction)
Thanks in advance for any replies
I just found Android have a topic about dedicated devices (formerly called corporate-owned single-use, or COSU) are a subset of company-owned devices that serve a specific purpose. maybe that can meet your requirement.
BTW, After into the sub-topic lock task mode that mentions about set DPC whitelist APPs and the device policy controller (DPC) needs setup by other steps.... FYR~

how to create a background process , it will disable the physical volume buttons when running

My boss ask me to develop an app which have to be always on the user screen. I have to disable the three Android native buttons (back, home and history buttons).
How can I do that ? Create a custom launcher ?
Thanks.
In general you can't really do the things you mentioned above, at least there are no official supported APIs.
However, there can be legitimate use cases where one would benefit from this kind of applications, and Android provides something for this.
Have a look into Lock Task Mode and ScreenPinning.

How do i make my android app accessible from the lockscreen?

I'm creating an app to be used during emergencies and it's important that the app can be started from the lockscreen. Is this possible(it seems to be posssible, since i see apps like this on the Google Playstore) and how would i achieve this?
You might be better off replacing the lock screen. You'll have more control and be able to provide a better user experience. Downside is you have a lot of code to write.
See this:
Creating an Android Lock Screen App.
Making a lock screen widget was possible in between android 4.4.2 until android lollipop. All other version do not have this ability. As such the best alternative would be for your app to replace the built in launcher and create its own lockscreen which you would be able to customize yourself.

Making an Android application that cannot be uninstalled/deleted

I want to make a security app for Android phones. Basically, I don't want anyone to be able to un-install it without having to enter a specific password first.
Also, is there a way to prevent the app from being stopped manually (like being closed via. Taskmanager) etc?
This sounds more akin to Malware-like behaviour than that of a regular Android application, anyway:
For a regular Android application, I'd imagine that making it 'uninstallable' is near enough impossible to achieve - try to contemplate what the state of the Android app market would be like right now if this were possible!
On the other hand, if privileged control (root access) was available then this might be a possibility - an example of that could be like how wireless carriers implement bundled software. However, like I mentioned, there is no regular avenue available for applications released via. the Android market to achieve what you've asked, it should be pretty clear to you why...

Where to put the Settings in Android?

On the iPhone/iPod touch, settings could be kept in the Settings.app. Can you do this in Android? Or must your settings be in the actual application?
Can you do this in Android?
Only if you are making your own firmware. Ordinary SDK applications do not have the ability to add to the roster of device-wide settings.
Or must you settings have to be in the
actual appilcation?
Yes. You can have the same look and feel as the main Settings application, by use of PreferenceActivity and preference XML files.
Android UI guidelines state that it is preferable and recommended to use a PreferenceActivity to handle all of your apps settings.
The beauty of using a PreferenceActivity is that it will automatically save the values to your apps SharedPreferences.
Another point to consider is if all the other apps are using PAs then they come to yours and have to handle the settings differently then it makes their experience more difficult and could cause them to look elsewhere for another app.
Hope that helps, good luck with it

Categories