Issue Type: Bug Bug
Affects Versions: 1.1.0
Assignee: Unassigned
Components: android, examples, tools
Created: 10/Oct/13 6:23 AM
Description:

Following the instructions here, I can't get the app to work completely on android emulator using JBDS 7.0.1.

http://aerogear.org/docs/guides/aerogear-push-android/android-app/

If I use Android 4.2.2 as the build target I get the error below in the LogCat output

10-09 11:02:36.581: V/AeroGearGCMPushRegistrar(1236): Registration not found.
10-09 11:02:41.671: E/MainActivity(1236): SERVICE_NOT_AVAILABLE
10-09 11:02:41.671: E/MainActivity(1236): java.io.IOException: SERVICE_NOT_AVAILABLE

After speaking with some aerogear engineers on IRC I was asked to try the Google API as it requires GCM. The screenshots from the above instructions show an emulator running but do not mention to use Google API.

On using Google API the emulator doesn't start and just hangs on the startup. This is the console from JBDS.

[2013-10-10 11:13:05 - PushApplication] ------------------------------
[2013-10-10 11:13:05 - PushApplication] Android Launch!
[2013-10-10 11:13:05 - PushApplication] adb is running normally.
[2013-10-10 11:13:05 - PushApplication] Performing com.jboss.example.pushapplication.MainActivity activity launch
[2013-10-10 11:13:05 - PushApplication] Automatic Target Mode: Preferred AVD 'Mobile-G-API' is not available. Launching new emulator.
[2013-10-10 11:13:05 - PushApplication] Launching a new emulator with Virtual Device 'Mobile-G-API'
[2013-10-10 11:13:19 - PushApplication] New emulator found: emulator-5554
[2013-10-10 11:13:19 - PushApplication] Waiting for HOME ('android.process.acore') to be launched...
[2013-10-10 11:14:37 - PushApplication] emulator-5554 disconnected! Cancelling 'com.jboss.example.pushapplication.MainActivity activity launch'!

Note: I did not cancel the launch. In fact, it's still trying to start up as I type this.

I'm marking this as Affecting Docs/Demo as I believe the instructions on the above link could be improved in case I'm doing something wrong.

Project: AeroGear
Priority: Major Major
Reporter: Mustafa Musaji
Security Level: Public (Everyone can see)
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira