Public class Main {
public static String s;
String a="hello";
String b="World";
s=a+b;
class Demo{
String m;
m=Main.this.s;
System.out.println(m);
}
}
Output should be : Hello World
I just here try to understand main thing. My Main class is a Android Activity class which extends ListActivity and Demo class extends AsyncTask. I need to read value Static String s from doInBackground method.