I have 2 projects. One is my Main Project(A) , and another is a Library Project(B). I want to start an activity which is present in A from an activity which is located in B. How do I do that ?
I Tried startActivity(getApplicationContext(),B.class);
,but
B.class
is not resolved.
How Can I let my library project start an activity of my main project ?
You can add custom Action in intent-filter of you activity and start that activity by specifying action
start activity with this code:
You shouldn't need to use an intent filter. The code in Activity A can use
to specify the activity B should be started.