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 8478723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:49:25+00:00 2026-06-10T18:49:25+00:00

I am begginer in Android App and using Java as when I add this

  • 0

I am begginer in Android App and using Java as when I add this code :

GCMRegistrar.checkDevice(this);
        GCMRegistrar.checkManifest(this);
        final String regId = GCMRegistrar.getRegistrationId(this);
        if (regId.equals("")) {
          GCMRegistrar.register(this, SENDER_ID);
        } else {
          Log.v(TAG, "Already registered");
        }

I had error on :
SENDER_ID
Log
TAG

the error “cannot be resolved to available “

  • 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-10T18:49:28+00:00Added an answer on June 10, 2026 at 6:49 pm

    As I commented if you’re a beginner you shouldn’t start with GCM, but seems that you’re a beginner not only on Android but also in Java (this is not bad, everybody was a beginner, and I’m not that advanced).

    I suggest you to start following some basic tutorials on Java, then start with some basic tutorial for Android and so on.

    GCM requires also a server side, so this is going to be quite advanced.

    Anyway, the error is simple. SENDER_ID is a field that you haven’t defined anywhere.

    You have to declare it somewhere, like:

    String SENDER_ID = "mySenderId";
    

    or at the top of your class:

    public class MyClass {
        private static final SENDER_ID = "mySenderID";
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Begginer android programer, I want add and remove item from String list when user
I am begginer to android development. I am using SAX parser for xml parser.
I'm begginer in Java. Can you help me to find error? I run this
i am begginer in android. In my app i am having textview which has
I'am begginer in android programming and I'am trying to create app that is logging
I'm a RoR begginer and am developing my app using MySQL but Heroku uses
Begginer's question. I'm trying to write small piece of code in Visual Studio (VB.net)
I am a begginer in android,here I have activity that use web service: SoapObject
I'm begginer in asp.net mvc and i have some doubts. P.S: I'm using DDD
I'm making a Grade log application and I have this piece of code here

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.