Maybe it depends on the Launcher. I just tried Launcher Pro,
and it creates the same "wrong" shortcut intent as created
from my app. I wish I knew what Launcher is the default launcher
in my device ...


On ápr. 5, 21:38, b_t <bartata...@gmail.com> wrote:
> Hi,
>
> In my app there is a possibility to add a shortcut to my widget.
> It works well for almost every shortcut type.
>
> But doesn't work well for shortcuts of a specific application. When I
> add this
> shortcut to my home screen by the launcher and click on it the
> following intent will be
> executed:
>
> 04-05 20:59:39.384: INFO/ActivityManager(184): Starting: Intent
> { act=android.intent.action.VIEW flg=0x10000000
> cmp=vStudio.Android.GPhotoPaid/.GPhotoMain bnds=[125,553][235,671]
> (has extras) } from pid 12552
>
> It works as expected. But when I create this shortcut from my app and
> I click on its icon, then
>
> 04-05 20:59:05.844: INFO/ActivityManager(184): Starting: Intent
> { flg=0x10000000 cmp=vStudio.Android.GPhotoPaid/.GPhotoMain
> bnds=[133,408][201,456] (has extras) } from pid -1
>
> The difference is the VIEW action. When I add the VIEW action manually
> to this intent,
> then this shortcut works well too, but I cannot do that of course
> because it makes
> other type of shortcuts wrong.
>
> I have looked throught the Launcher source code how it handles
> shortcut intents but
> it doesn't do anything with it, just adds a FLAG_ACTIVITY_NEW_TASK to
> it.
>
> Can anybody help me what cause this difference?
>
> Thanks,
> Tamás

-- 
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