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.
Related
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.
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.
I have just downloaded an application from the android market. When I have installed the application, at the same a time shortcut of that application has been created on the default desktop.
So, my question is: how can we create a shortcut of our application at the time of installation?
You're question is very similar to this one.
Give that one a try, it also creates an icon on the home screen, but not during installation. Of course you could make it so it creates this icon during the first run of the app if you want.
The icon being created during the installation is something the user can set in their options, it's not something you have influence on, so you'll have to use an option like above.
That's an option in the Android System settings for the end user. User can choose to have shortcuts created automatically. That's not something you can do as a developer.
I have an app which I want to use instead of the standard android launcher. When I start my device I want it to show up instead of the launcher. I noticed this was possible and it works except if I press the "Home" button both my launcher app and the standard android app are shown. I want to delete the launcher from my tablet either programatically or manually so the only app I can use the tablet for is my launcher app. Any help is appreciated.
You can't. Otherwise this would be a huge security risk. If the user checks the checkbox "Always use" (I think), that dialog won't appear again.
You have to be rooted.
Open fx (make sure you have the root add-on)
Go to system/custpack/unremovable/withoutlibs
Delete the launcher apk
I want to group multiple apps under the same icon in the application launcher.
For example, 5 apps each displaying 1 different image. But those 5 apps should appear as separate apps on the Android market, therefore they need to have different package name.
But different package name, means that on the Android device they will appear as 5 separate apps in the application launcher, which I am trying to avoid.
The closest solution that I found is to listen for PACKAGE_ADDED broadcast event, and every time another app from those 5 are installed on the device, all the already installed apps would call setApplicationEnabledSetting from PackageManager to hide their icons and let the app that was just installed to handle things.
But the icons are hidden only after rebooting the device.
Is there a way to force the application launcher to refresh at runtime?
Or is there any other way to solve my goal?
I am running out of options. Thanks!
Miha,
What about having one main application, with the other 4 being add-ons (i.e., not shown in the launcher)? You would then have only one launcher icon, and the other applications would be started from the main app. By checking whether the other apps were installed, you could adjust your buttons/views accordingly.
As far as I know, there is no way to force the launcher to refresh. However, you could implement your applications as you described -- having each app hide it's icon when I new one is installed. The user would get an application not installed error though, which is probably not something you want.
Personally, I used the first method: have a main keyboard and then install add-ons which can then be loaded from the main app.
Hope this helps.