I have an activity class like below
public class PInfo extends Activity {
public ArrayList<String> getInstalledApps() {
ArrayList<String> Apps = new ArrayList<String>();
and non-activity class like below
public class TestSettings extends UiAutomatorTestCase {
public void testSearch() throws UiObjectNotFoundException, IOException {
try {
PInfo pi = new PInfo();
ArrayList<String> marr = pi.getInstalledApps();
When calling getInstalledApps()
method, It's not working normally.
Is there any solution.