I'm noob, so pls be patient. 
Trying to launch Opera MiniBrowser from my code. Reffered to these resources 
on launching other programs: 
http://markmail.org/message/hztjnsuhv7wnrdkb#query:+page:1+mid:ct7yftkr2twaee3z+state:results
; 
http://www.tutorialforandroid.com/2011/01/opening-activity-with-string-in-android.html

<http://www.tutorialforandroid.com/2011/01/opening-activity-with-string-in-android.html>With
 
this peace of code:
List<ResolveInfo> launchablePrograms = getPackageManager()
.queryIntentActivities(new Intent(Intent.ACTION_MAIN), 0);

for (int i = 0; i < launchablePrograms.size(); i++) {
Log.d(myTag, "Program: " + i + " " + launchablePrograms.get(i));
}
I've looked for all launchable programs and found "
com.opera.mini.android.Browser".

With this peace of code:
try {
Intent i = new Intent(this,
Class.forName("com.opera.mini.android.Browser"));
startActivity(i);
} catch (ClassNotFoundException e) {
Log.d(myTag, "Shoudnt get here");
}
I'm trying to launch Opera MiniBrowser, but I get exception message "Shoudnt 
get here".

What am I doing wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"Android Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/android-discuss?hl=en.

Reply via email to