Hi All,
I am trying to bring up the APN settings activity through a Non-activity
class..
Intent mIn = new Intent(Intent.ACTION_VIEW);
*mIn.setClassName("com.android.settings","com.android.settings.APN_SETTINGS");
//APN_SETTINGS*
mIn.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
Notification notification = new
Notification(com.android.internal.R.drawable.stat_sys_tether_usb, "USB Mass
Storage Connected", System.currentTimeMillis());
notification.flags = Notification.FLAG_ONGOING_EVENT;
notification.when = 0;
if (nManager == null) {
nManager =
(NotificationManager)mContext.getSystemService(Context.NOTIFICATION_SERVICE);
}
PendingIntent contentIntent =
PendingIntent.getActivity(mContext, 0, mIn, 0);
notification.setLatestEventInfo(mContext, "USB Mass Storage",
"Click to browse files", contentIntent);
nManager.notify(1,notification);
I am unable to launch the APN Settings activity using this..
but if i use
*mIn.setClassName("com.android.settings","com.android.settings.
LanguageSettings");*
I am able to launch the Language activty...
What is the correct class name for the APN settings activity?
--------------
Regards
Vikas KM
http://arowboat.org
--
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en