First instance is not working. That's why created second instance as AndoridDrvier(will delete AppiumDriver).
Question 1 : ----- not able to use Home package
capabilities.setCapability("appPackage", "com.android.systemui");
capabilities.setCapability("appActivity", "com.android.systemui.recents.RecentsActivity");
@BeforeClass Setup
org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Permission to start activity denied.) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 4.57 seconds
Qaestion 2 -------- if i use launcer activity gettting 'null' exception..plz refer below code
capabilities.setCapability("appPackage", "com.android.launcher");
capabilities.setCapability("appActivity", "com.android.launcher2.Launcher");
Thread.sleep(5000);
drAndroid.findElement(By.id("com.android.systemui:id/task_view_bar")).click();
recent app list is displaying for a while n getting Exception is - ' null '