try below:-

ret = execl("/system/bin/sh", "sh", "-c", "am start -a 
android.intent.action.MAIN -n   com.android.browser/.BrowserActivity", (char 
*)NULL);



On Saturday, July 7, 2012 3:51:58 AM UTC+9, HV wrote:
>
>  Wanted to know what is the best practice to launch apps from native code? 
> Is using 'am' forbidden? It has to be via the system call though, like 
> system("am start ..."); Will 'am' support be discontinued going forward?
>
>  Is there any alternative method?
>
> Thanks much
> HV
>

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to