• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how do i pass text from one android activity to the other

 
johnson dubula
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
good day guys

I know its stupid, but i am having trouble with some easy thing, i have an app that sends co ordinate to someone at a click of a button, now when you use the app you enter a phone number and your name,everything works fine i am using the java mail library to send an email without having to open the email client. The problem is the name doesn't send go through, it says null, how do i pass the name to the text and email, the is the code bellow

 
Tim Moores
Bartender
Posts: 3137
50
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I removed a bunch of stuff from the code that doesn't seem relevant. In the future, please post only the relevant parts of the code.

So you're asking why in line 57 you get null for the "name2" parameter? That depends on how you're setting up the intent, which isn't part of the code you posted.

By the way, lines 72 through 79 accomplish nothing; just mentioning it in case you thought they did.
 
johnson dubula
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic