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:
---------------
public class StartTest extends Activity(){
public void onCreate(Bundle savedState){
super.onCreate(savedState);
.
.
.
Button btn = (Button)this.findViewById
(R.id.trigger);
btn.setOnClickListener(new
View.OnClickListener(){
public void onClick(View target){
Intent i = new Intent();
i.setAction
(Intent.ACTION_MAIN);
i.setClassName
(StartTest.this,"com.android.phone.Settings");
StartTest.this.startActivity
(i);
}
});
.
.
}
}
-----------------
I have given it a try, but it fails. The system seems to find that
target class within my application scope.
Does anyone know how to start a activity owned by other application?
Best regards,
Augustin.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---