Dan Trombin Dan Trombin - 6 months ago 9
Java Question

I got an other issue why is it returning incorrect in both buttons if i click on them?

I got an other issue why is it returning incorrect in both buttons if i click on them? Can someone test and tell me why it does that..i need help

http://pastebin.com/KZWBpwx5

Answer

Make sure your com.example.android.rareenglishwords.MainActivity class is declared as public in MainActivity.java. as in

public class MainActivity extends Activity //or AppCompat activity... whatever activity you use

You haven't provided a code snippet, so hard to see. But this error is most likely to be a result of Instrumentation not being able to access a class, because class is not declared as public

Comments