Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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
Saloon Keeper
Posts: 3564
77
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!