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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:29:39+00:00 2026-06-01T05:29:39+00:00

Hello everyone i am trying to implement push notifications with urbanairship i followed the

  • 0

Hello everyone i am trying to implement push notifications with urbanairship

i followed the steps from http://blog.jamesbaca.net/?p=235

but got this error:

   03-30 16:10:34.022: E/AndroidRuntime(13171): FATAL EXCEPTION: main
03-30 16:10:34.022: E/AndroidRuntime(13171): java.lang.ExceptionInInitializerError
03-30 16:10:34.022: E/AndroidRuntime(13171):    at com.nano.push.PushPreferencesActivity.<init>(PushPreferencesActivity.java:58)
03-30 16:10:34.022: E/AndroidRuntime(13171):    at java.lang.Class.newInstanceImpl(Native Method)
03-30 16:10:34.022: E/AndroidRuntime(13171):    at java.lang.Class.newInstance(Class.java:1429)
03-30 16:10:34.022: E/AndroidRuntime(13171):    at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
03-30 16:10:34.022: E/AndroidRuntime(13171):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
03-30 16:10:34.022: E/AndroidRuntime(13171):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
03-30 16:10:34.022: E/AndroidRuntime(13171):    at android.app.ActivityThread.access$2300(ActivityThread.java:125)
03-30 16:10:34.022: E/AndroidRuntime(13171):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
03-30 16:10:34.022: E/AndroidRuntime(13171):    at android.os.Handler.dispatchMessage(Handler.java:99)
03-30 16:10:34.022: E/AndroidRuntime(13171):    at android.os.Looper.loop(Looper.java:123)
03-30 16:10:34.022: E/AndroidRuntime(13171):    at android.app.ActivityThread.main(ActivityThread.java:4627)
03-30 16:10:34.022: E/AndroidRuntime(13171):    at java.lang.reflect.Method.invokeNative(Native Method)
03-30 16:10:34.022: E/AndroidRuntime(13171):    at java.lang.reflect.Method.invoke(Method.java:521)
03-30 16:10:34.022: E/AndroidRuntime(13171):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:871)
03-30 16:10:34.022: E/AndroidRuntime(13171):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
03-30 16:10:34.022: E/AndroidRuntime(13171):    at dalvik.system.NativeStart.main(Native Method)
03-30 16:10:34.022: E/AndroidRuntime(13171): Caused by: java.lang.NullPointerException
03-30 16:10:34.022: E/AndroidRuntime(13171):    at com.urbanairship.push.PushManager.<init>(Unknown Source)
03-30 16:10:34.022: E/AndroidRuntime(13171):    at com.urbanairship.push.PushManager.<clinit>(Unknown Source)
03-30 16:10:34.022: E/AndroidRuntime(13171):    ... 16 more
  • 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-01T05:29:41+00:00Added an answer on June 1, 2026 at 5:29 am

    Android Cloud to Device Messaging (C2DM) is a service that helps developers send data from servers to their applications on Android devices. The service provides a simple, lightweight mechanism that servers can use to tell mobile applications to contact the server directly, to fetch updated application or user data. The C2DM service handles all aspects of queueing of messages and delivery to the target application running on the target device.

    So how do you go about setting up C2DM push notifications in your Android app from your web application? Here are the steps to follow for both the Android app and Web server.
    Signing up for C2DM

    The first step is to signup at http://code.google.com/android/c2dm/signup.html. Fill in the relevant information, the most important being the package name of your app and Role account email. This is the email id you will use to setup and run C2DM notifications. It has to be a valid gmail account. Make sure you don’t use this email id on any device. Once you finish signing up, you have to wait to receive a confirmation email from Google that your registration has been accepted.
    Things needed to do on the Android front
    After you’ve registered, you have to make your android app C2DM enabled. Your app on a device needs to register with Google’s C2DM server for receiving messages. This requires quite a bit of plumbing code. The classes from Google’s C2DM sample project ChromeToPhone can be used as a base and expanded on if required.

    the following link that i have used will be helpful for you.

    http://www.vogella.de/articles/AndroidCloudToDeviceMessaging/article.html

    this is a very good link for push how to use push notification.

    http://www.vogella.de/articles/AndroidCloudToDeviceMessaging/article.html

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

Sidebar

Related Questions

Hello everyone I'm trying to improve my Java skills by solving some problems from
Hello everyone I've been trying to put some objects in an ASP.NET list box
hello everyone im trying to create this tweak that copies a file from one
Hello Everyone Iam trying to bulk insert data from .dat file(unloaded from sybase) in
Hello everyone. I am trying to develop a Jquery plugin following the steps I
Hello everyone I am trying to resize an image of 700kb with imagecreatefromjpeg. This
Hello everyone I'm trying to work with jboss messaging, does anyone knows the default
Hello everyone I am trying to write a string on image during runtime and
Hello everyone. I am trying to play a bit with RSA public and private
Hello everyone I was just going trough http://static.springsource.org/docs/Spring-MVC-step-by-step/part1.html spring tutorial, and I thought its

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.