I am using Eclipse ADT to learn developing android application.
This simple piece of code given below is used to accept username and password from user, and display it on the next page after hitting Go button.
The code has no errors as far as i know.
However, when i run this code , i get the error
The application login(process academic.login) has stopped unexpectedly.
Please try again.
One more thing which i found out, is that when i comment out from the code from line 1 to line 2. The UI boots up perfectly.
The same problem happened when i was building a calculator, which too is incomplete as a resukt of this problem.
Others sample applications run perfectly, so i am not able to pin point the errors.
Please Post your complete Code, this code however looks fine with the exception that you have not specified a intent to navigate to next screen also check your Manifest if you have mentioned your second activity there
I made the changes as per your guidance. But no luck.
The application stops unexpectedly.
i will send you the project.
Tell me how to.
Please let me know what error is causing this problem.
As a result of this error, my entire practical work is halted.
I made a calculator, but the same problem persists in it too.
Error is at Line number 27,28 of Test Activity where you are trying to set the values of the text View, Trying to use a Static text String would work for java Classes for an Activity however it wont.However you can pass the values from one activity to another via Bundle and retrieve it in another activity using Key Value Pairs
However the exact reason why static String wont work here is something i am not aware of.Lets hope someone answers this in the forum