Thanks for your help. I also find I could use the other method provided by Intent to achieve my goal. Here is the method. intent.setClassName(String packageName,String className);
We could replace the orginal one with the following. i.setClassName ("com.android.phone","com.android.phone.Settings"); On Jun 2, 8:31 pm, Mark Murphy <mmur...@commonsware.com> wrote: > Augustin.CL wrote: > > Dear all, > > > I want to start the activity owned by other application. I > > know we could construct the Intent(setAction,setClass), and then call > > context.startActivity(intent) to start a new activity owned by the > > same application. When we start the activity not owned by the same > > application,doest this also work? For example, I have a activity > > (com.test.StartTest) and there is a button that used to start some > > activity Settings owned by the Phone: > > Try startActivity(Settings.ACTION_WIRELESS_SETTINGS) (substituting in > the proper value for whatever setting screen you want). > > http://developer.android.com/reference/android/provider/Settings.html > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---