Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8674719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:46:28+00:00 2026-06-12T19:46:28+00:00

Building an Android application using Google’s GCM service. I have implemented the onRegistered method

  • 0

Building an Android application using Google’s GCM service.

I have implemented the onRegistered method in the GCMIntentService class.

The problem is I want to send the email from EditText in my main activity to my server along with the regId. I’m not sure how to get the email from my main activity and use it in the onRegistered method.

I know how to properly get the string from the EditText box within the main activity that’s not a problem. It’s throwing me off because it’s in a separate class.

My end result is I want to send the email they have typed into the EditText and when they click register the email the email they’ve typed and their regId will be stored in database on my server.

I currently have working code that just stores their regId with a hard coded name in the onRegistered method. Just looking how to get that additional information so I can send it with the regId.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T19:46:30+00:00Added an answer on June 12, 2026 at 7:46 pm

    When the user presses the button, you can put the text from the EditText in a:

    • file
    • database
    • SharedPreferences
    • static data member

    and then retrieve the text from that location in onRegistered().

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Helo. I am building an application for kids using Phonegap. On Android I have
I have building an application using Phone-Gap & jQuery Mobile for iPhone and Android
i am building a server application using eclipse , and the client is android
I am building an android application that uses several third party libraries. I have
i'm building an android application which have a chat. in this chat i each
I'm building the Android scanning app using zxing library. I have built the zxing
HI, I'm building an Android application requiring internet connection, and I'm using ConnectivityManager to
I am building an application using google maps. And i need to use google
i am building an android application but i have some questions about the memory
Many times when I run android application using Eclipse. Eclipse stuck on building the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.