Hi
I write this code in Mian.java class but the program not run. Why? the program has error of Intent i=new Intent(this,Location.class); what is the problem??
The problem is : The constructor Intent(new View.OnClickListener(){}, Class<Location>) is undefined
An OnClickListener is not a Context - which is what the Intent constructor expects as the first parameter. You probably meant to pass in the Main instance instead.