Create Shortcut of our own application - android

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.

Related

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.

how to create shortcut in folder in android menu. (not on home screen)

I am totally newbie and I am not an English native speaker, so please don't yell at me if I do something wrong.
I made an android app in eclipse (nothing special), but I have one problem. I want to add a shortcut in folder so the user can call it from folder. in that folder i will later add more shortcuts. i want to separate my apps from others. this folder and the shortcuts need to be in main manu.
I tried some codes what I found here in stackoverflow, but I stacked and I don't know how to proceed.
Thanks in forward for anwsers
Though I am not an Android developer, I don't think you have to update anything. Users should just be able to drag your application icon to the home screen. If you want action-specific shortcuts (I.E., go to Wi-Fi settings in the settings app), then please update your question.
you open start menu and you have your own folder with your shortcuts
In Android, the "start menu" equivalent is called the home screen. There are many, many implementations of a home screen -- dozens that come pre-installed on different devices, and hundreds more than can be downloaded from the Play Store and elsewhere.
Some home screens may have the concept of a "folder", but they may or may not expose an API to developers to control it. Other home screens will not have "folders" at all.
You are welcome to contact each home screen author to find out whether they support the notion of "folders" and whether there is a specific way for your app to create a "folder" and appear inside of it.
Or, you are welcome to build your own home screen, complete with as many folders as you like.

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.

Block access to playstore in 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.

Delete android launcher and replace it with my own

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

Categories

Resources