I have a heap of doubt.
What i'd like to do is:

1) i'm inside an activity, there are 2 buttons. If i click the first
one a shortcut is created in my home screen. The shortcut open an html
page that has been previously downloaded, so i want it to use the
default browser but i don't want to use internet cause i already have
the page on the sd......

2)The second button create another shortcut that starts an activity
froma another application. And i want to pass to the activity some
extra argumets (As strings for example)...........

I found some link and some similar questions like
http://codinggeek.org/2011/01/02/android-how-to-add-home-screen-shortcuts-to-your-app/
and Android: Is there a programming way to create a web shortcut on
home screen

They seem to be the answer to my question but someone told me that
this code is not gonna work on all devices and that is
deprecated......."This technique is not recommended. This is an
internal implementation, not part of the Android SDK. It will not work
on all home screen implementations. It may not work on all past
versions of Android. It may not work in future versions of Android, as
Google is not obligated to maintain internal undocumented interfaces.
Please do not use this"

i already asked this on stackoverflow and this is teh answer i got
http://stackoverflow.com/questions/6337431/android-create-shortcuts-on-the-home-screen

This user says "The correct way is to listen for a shortcut request
from the home screen-- with an intent filter like so in your
manifest......."
But i' a beginner and i can't actually see the difference from the
code example i provided and the last one.....both use intents and the
cose is pretty the same, the only difference is in the manifest part.
The first example only set up a permission the second one aintent
filter.......but what actually means " to listen for a shortcut
request from the home screen"......i mean it's my application that is
asking the home screen to add a shortcut not the oppsite......tnx

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to