I have a android-maven "test" project which has a .aar file as a dependency.
From the test project i am able to call an activity in the aar file.
Now after my processing i want to cal an activity in my test project using intents.
The following does not work...
Intent intent = new Intent(getApplicationContext(),cropTestACtivity.class);
startActivity(intent);
Should we use Class.forName method. Something like this
Intent intent = new Intent(getApplicationContext(),
Class.forName("com.project.crop.croptest.CropTestActivity"));
startActivity(intent);
My test project is in "com.project.crop.cropTesActivity" package.
My activity in aar has the following path ... (com.sumeru.croptest/com.sumeru.crop.activity.DisplayCroppedImageActivity)
from here i need to call com.project.crop.croptest.CropTestActivity"
0 comments:
Post a Comment