Rahul Vashisth
Rahul Vashisth

Reputation: 81

Android App is not responding on click in android studio?

I am beginner in android studio and When i click on button to transfer my activity from one to another then i am getting error:App is not responding? What's wrong with my code?

Here is first activity which is initial destination

Here is my Second Activity which is final destination

Upvotes: 0

Views: 2117

Answers (1)

AlexTa
AlexTa

Reputation: 5251

Your button b variable it is bad instantiated, you should declared as follows:

b = (Button) findViewById(R.id.simpleProgramDisplayDate);

Upvotes: 3

Related Questions