I can not find the application package and application activity in MobileCompatibity Type while encoding in eclipse for appium. This is intended to test the native application

import java.net.URL;

import org.openqa.selenium.Capabilities;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.testng.annotations.BeforeClass;

import io.appium.java_client.AppiumDriver;
import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.remote.MobileCapabilityType;

public class LaunchAppium {

    AndroidDriver driver;
      // driver = new AndroidDriver("", test);

    public void setup() throws MalformedURLException
        DesiredCapabilities test=new DesiredCapabilities();
        test.setCapability(MobileCapabilityType.DEVICE_NAME, "Androidemulator");
        test.setCapability(MobileCapabilityType.APP, "Ebutor 15_dec_2016.apk");
        //test.setCapability(MobileCapabilityType., value);
        driver = new AndroidDr`enter code here`iver(new URL(""), test);


In the above pice of code i could not find the APP_PACKAGE and APP_ACTIVITY for the mobilecapabilitytpe instance which is essential for the android settings.


From 4.0, this is moved to specific to android package:

public interface AndroidMobileCapabilityType extends CapabilityType {
 * Activity name for the Android activity you want to launch from your package.
 * This often needs to be preceded by a . (e.g., .MainActivity instead of MainActivity).
  String APP_ACTIVITY = "appActivity";

   * Java package of the Android app you want to run.

String APP_PACKAGE = "appPackage";

    * Activity name for the Android activity you want to wait for.
   String APP_WAIT_ACTIVITY = "appWaitActivity";


So you have to use


Please check the above it should work or you can see the see @ link