• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Saloon Keeper
Posts: 7585
176
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic