package in.co.nebulax.magpie;

public class Constants {

	// url to get data JSON
	public static String url = "";
	
	//JSON Node Names
	public static String TAG_DATA = "data";
	public static String TAG_DEVICE = "device";
	public static String TAG_STATUS = "status";
	public static String TAG_NAME = "name";
}

package in.co.nebulax.magpie;

public class Constants {

	// url to get data JSON
	public static String url = "http://10.0.2.2:1111/all";
	
	//JSON Node Names
	public static String TAG_DATA = "data";
	public static String TAG_DEVICE = "device";
	public static String TAG_STATUS = "status";
	public static String TAG_NAME = "name";
}

Change url of localhost to 10.0.2.2
Change url of localhost to 10.0.2.2
