Blank screen is loaded

Hello Appium Friends,

Running the below code and have connected to actual device thorugh USB: When i run

Observed: It ask me to select the connected android device,once i select, it trys to load the app in mobile, but i get to see blankscreen. Can any one help me to resolve ,why the actual app is not launching and blank screen is seen, i tried with other app name and package activity,still the same issue

package com.example.myapp1;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

import java.util.concurrent.TimeUnit;

// Button Test

public class MainActivity extends Activity {

// Step 1: Android Driver : To connect and Test your app you require a Android Driver. So Initialize it before going to capabilities

public static AndroidDriver driver; //adding java-client.jar will resolve any error

public void setUP() throws MalformedURLException {

// Step 2: Capabilities for Android Driver to Connect to the Android Device

    DesiredCapabilities capabilities = new DesiredCapabilities();
    capabilities.setCapability("device", "Android");
    capabilities.setCapability("deviceName", "Lokesh Gangaiah");
    capabilities.setCapability("platformName", "Android");
    capabilities.setCapability("platformVersion", "23");

// Step 3": Package and Activity Information of a APP To be Tested
// Go to AppInformation project and execute the code to get the appPackage and appActivity Information

    capabilities.setCapability("appPackage", "com.facebook.katana");
    capabilities.setCapability("appActivity", "com.facebook.katana.LoginActivity");

// Step 4 : Appium Server Details to connect the Appium Server

    driver = new AndroidDriver(new URL(""), capabilities);
    driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);

public void Cont_Dial_Test() throws InterruptedException {

    System.out.println(" Start to identify a test");

By.xpath(“//android.widget.EditText[@text=‘Email or Phone. Editing.’]”).findElement(driver).click();
By.xpath(“//android.widget.EditText[@text=‘Email or Phone. Editing.’]”).findElement(driver).clear();

   //driver.findElements(By.tagName("Email or Phone. Editing.")).get(0).sendKeys("[email protected]");
    Thread.sleep(1000L);"com.facebook.katana:id/login_username").findElement(driver).sendKeys("[email protected]");
    System.out.println("Test has been completed two");"com.facebook.katana:id/login_password").findElement(driver).click();

    System.out.println("Test has been completed two");

public void tearDown() throws InterruptedException {


Appium log

Checking if an update is available
Update not available
Launching Appium server with command: C:\Program Files (x86)\Appium\node.exe lib\server\main.js --address --port 4723 --platform-name Android --platform-version 23 --automation-name Appium --log-no-color
info: Welcome to Appium v1.4.16 (REV ae6877eff263066b26328d457bd285c0cc62430d)
info: Appium REST http interface listener started on
info: [debug] Non-default server args: {“address”:“”,“logNoColors”:true,“platformName”:“Android”,“platformVersion”:“23”,“automationName”:“Appium”}
info: Console LogLevel: debug