Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

my first activity runing happen error:Uncaught handler: thread main exiting due to uncaught exceptio

 
laker jin
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hrloo.java



main.xml


strings.xml


i think maybe folowing code have error:


thank you!



 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Laker the problem is in syntax here

It should be like this

And next time please provide logcat error messages while posting.
 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to JavaRanch
 
laker jin
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pramod P Deore wrote:And welcome to JavaRanch


so thank you,deore!

the site is so likely! ilike it!

about my problem,it still have erroe, i have change it as you said.

the log is:


and i found eclips ,its "Error log" table recommd "argement cant be null"

again thank you !
 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just after changes in main.xml application run fines on my computer. Try one more time Copy the whole code as you had given in you first post and make changes only in EditText and Button as I told earlier application will definitely run.
 
laker jin
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
great deore!

after weeken,this programe have normal work!

so thank you,i don‘t know by my poor english to how to discrible my thanks, luck to you!
 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic