Re: RE : Re: [android-developers] starting an application with Android 1.5

2010-05-12 Thread Thierry Legras
I see now, the method i would like to use in 1.5 is setPackage not setComponent; sorry for the misunderstanding. I don't want to use setComponent because i don't know the classname to use (and i don't want to hardcode it as i guess it might change as it is an external application). And setPackage i

RE : Re: [android-developers] starting an application with Android 1.5

2010-05-11 Thread Thierry Legras
Hi Mark, Yes sorry, my mail was not clear but you got it. I was really sure this was available from 1.6. It seems I need to have a rest! I will try that tomorrow. Thanks you both for the lightning fast help :) Thierry Le 12 mai 2010, 12:32 AM, "Mark Murphy" a écrit : Thierry Legras wrote: > How

Re: [android-developers] starting an application with Android 1.5

2010-05-11 Thread Mark Murphy
Thierry Legras wrote: > How can i start an application just knowing the package name, not the > classname? There is no concept in Android of "start an application". There is "start an activity", even "start an activity that appears in the Launcher". > Ok, there is Intent.setComponent solution wou

[android-developers] starting an application with Android 1.5

2010-05-11 Thread Thierry Legras
Hi, How can i start an application just knowing the package name, not the classname? Ok, there is Intent.setComponent solution would be what i need ... if it was compatible with 1.5 :( I guess i have to play with getPackageManager() but how can i use it? Thanks for any help, -- Thierry. -- Yo