[Solved] My program crashes and I don’t know why

[ad_1]

I assume (It would be better if you post the crash log along with your question, so that we can help you better and stop assuming) you are getting a null pointer exception on the following code:

i.putExtra("temper", temp.getText().toString());

In your code you declared temp, but it is never initialised. You need to initialise temp before using it.

2

[ad_2]

solved My program crashes and I don’t know why