Create URL shortcut in Android home screen programmatically - android

Does anyone have example code for creating URL shortcut on the android device home screen ?
I want my app to create some shortcuts to URL.

What do you want to do if the home screen is already full?
I think there are several good reasons why the user should be involved.
This link shows how a user can do it manually:
http://androidforums.com/htc-desire/197568-internet-shortcuts.html
And it contains another link to an app that lets you make custom icons etc.
http://www.folderorganizer.net/how-to/change-label-icon/
If you make a widget for your app, you can programmatically change URL shortcuts that appear in your widget ;-)

Related

Create Android Widget inside App

I'd like to link to my app widget configuration activity from inside my app. I know it's possible to launch the Android widget picker but can I bypass that step and let my users create a widget on their home screen from inside my app?
can I bypass that step and let my users create a widget on their home screen from inside my app?
No. For example, the user's home screen may not support app widgets (Android TV, Chrome OS, specialty home screen implementations, etc.).

Android - Adding shortcut to homescreen and specifying which screen and position

Im attempting to develop an AllApps drawer like Aviate, but as a separate Activity (that way I can launch it from Nova Launcher through a gesture).
I've seen answers on how to add a shortcut to the homescreen. i.e.:
Android create shortcuts on the home screen
How to add shortcut to Home screen in android programatically
Is it possible to specify the which homescreen page and location? I'm guessing not since google playstore does not seem to put it in the best place on a new app install, but wanted to confirm.
On the default launchers, there is no documented way to do this.

Adding URL shortcut to mobile screen through a link on the website

Do you know if it's possible to add URL shortcut to mobile screen through a link on the website?
So the workflow will goes like :
user clicks on a link on the website
pop up box appears, ask user to name the short cut link
user click on create and a shortcut been added to the mobile device's home screen with default icon.
I am interested in knowing whether this is possible for iphone and android devices. I've been searching for a while, but wasn't able to find any info on this...
This is currently not possible. You are only able to specify you icon to be added to the home screen, but not adding the shortcut directly by javascript.
in iphone you can do this in this way
in android you may do like in this way

Remove all home screen shortcuts programatically in Android

I want to delete all home screen shortcuts in Android programmatically. I have already written an app to create my own shortcuts for opening up a browser instance & directing to specific URI & delete only those programmatically. When deleting shortcuts this way, I have to provide the exact name & URI for each shortcut.
How can I achieve the same thing for existing shortcuts which were not created by me (like browser, calendar or any other app default created a shortcut on home screen)?
This seems like something that shouldn't be and probably isn't possible for security reasons.

how to customization of android Home Screen by changing in source code of android 2.3

here i want to launch Android Home Screen
Can anybody tell me where to find information about how to write a custom home-screen application? and i want to remove android default home screen. and add my custom home screen code to source of android.
So very first i have to make application which launch as a home screen so any body can give me some tips or guidelines?
Thanks
create a home application , which is nothing but an application with home intent . Samples (../android-sdk-linux/samples/android-8) have a good example named "Home" .
once app install when user will click on homeScreen he will be prompted for select home among existing home apps (including your app too) , once user set it as default this will not be asked again .

Categories

Resources