Block access to playstore in android? - android

I am trying to build a simple Parental Control App. I would like to know if it is possible to set the user to enter a password before he can install an app , either from the play store or
from running apk files.
Just pointing me in the right direction would be really helpful. Right now i am quiet clueless
on where to start.

Have you consider creating your own home screen launcher. Following post have some suggestion for creating your own launcher:
How can I create a custom home-screen replacement application for Android?
And following is one of the app that implement the parental contorl using the home launcher option:
https://play.google.com/store/apps/details?id=com.kiddoware.kidsplace&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5raWRkb3dhcmUua2lkc3BsYWNlIl0.

Related

Creating an APK using Cordova\phonegap - display it on lockscreen

i am new at building apps using phonegap and my last one is an app that shows information VIA WS ( basiclly it's a web app ) and been built on phonegap to APK file - and it works good.
i would like as an option to set the App ( wich will run on the Background ) on android LOCKScreen and dont know where to start...
thank you
The only way to put an app on the lock screen, that I know of, is to design it as widget. For example you can have a look at google documentation.
As far as I know at the moment there is no way to put an Android webview inside a widget and that is what you would essentially need to do. You should also see this SO question.
Hope this is a start for you ;-)

Is there any way to run others apps in my Android app's layout?

I know it may sound weird but i was wondering for few days that can i launch any android app in my android app's layout? I searched in the google but couldn't find any answer.I know that app's have ability to send the user to another app based on an "action" it would like to perform.But i would like to know can i run the app in my app's layout??Suppose i have an app that has a layout called activity_main and now i want to replace the activity_main's layout with the app i want to call so that the called app is running inside my app.Thanks in advance to anyone who can clear my doubt??
can i launch any android app in my android app's layout?
No.
You cannot run any Android App inside your App.
But, you can run a WebApp [thats adaptive designed] inside your Android App.

How to block an app from launching in android at system level?

I want to know the exact method which invokes/starts all the apps. I basically want to block a certain set of apps using xposed module. Its ok if the app icon is visible but the app should not be launched after clicking on it. To be precise nothing should happen when the user clicks on the app icon.
So I want to know where the source code which invokes the apps.
PS : I would also like to know if there is any way to hide the icon of the app as well.
Make your own launcher app and replace it with the ones running on mobile phones.
You can check the sources of Laucher and Laucher2 currently running on Android system.

Only displaying pre-installed applications on android device

So I am using the Home sample to build an application that creates a second home screen for the user. The idea is to be able to have only one user account yet restrict certain access to chosen applications. I have managed to ensure that all of the applications are invisible in the XML yet I am struggling with how to change this to make certain apps visible.
Is it possible to write a whitelist of accepted apps for instance the preinstalled apps or child friendly apps for children who game using the android device and then put in a Java method to access this white list? This is the only way I can think to make it work.
If anyone knows the correct way can you please help.
Thanks.
Ok so I discovered how to do this.
In the home sample they provide a for loop in the Home.java file that covers all apps and displays them. It take a simple if statement to restrict the apps that can be viewed -
// for loop is here
if (info.activityInfo.applicationInfo.packageName.contains("com.android"))
//then the rest of the home sample is here.
Still very basic but provides me with a good enough UI so that kids cannot see apps I don't want them to.

Creating an app/widget in Android to clear the default values of a certain app

I need to write a code to create an app/widget that will "Clear Defaults" for an app. Instead of going to "Settings->Applications->[The App]->Clear Defaults", the user will click on the app icon (or widget) to clear these default values.
I am new to Android. I just want some help to create and build my first Android app/widget.
Many thanks...
You cannot affect other apps in this fashion. Only the Settings app, or possibly apps written as part of the device firmware, can change the default apps for particular Intent constructs.

Categories

Resources