This is a migrated thread and some comments may be shown as answers.

deviceready / any event not firing on Android device

5 Answers 165 Views
AppBuilder companion app
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Simon
Top achievements
Rank 1
Simon asked on 05 Feb 2014, 08:57 PM
I have added the event code found on the following page https://github.com/Icenium/sample-events/blob/master/sample-events/scripts/main.js to my Kendo UI mobile app.  The aim being to show the events that are fired on iOS and Android devices.

When i run the app through the Appbuilder companion app on iOS the events are fired as expected, however when i run the app on Android no events get fired at all.

Can anyone shed any light on why this might be happening?

5 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 06 Feb 2014, 10:27 AM
Hi Simon,

The events sample works correctly on Android devices if deployed as is. If it is not working on your end, maybe there is something else wrong in your project. Please share what is the name of your project and we would have a quick look.

In general Cordova Events API, has its own help and code snippets, which you can try or just go through in case you have missed something.

Regards,
Steve
Telerik
Icenium is now Telerik AppBuilder, and is part of the Telerik Platform. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)
0
Simon
Top achievements
Rank 1
answered on 06 Feb 2014, 11:24 AM
Hi Steve

Thanks for the reply and for passing on the link to the Cordova Events API.  The name of the project is TestApp.

regards
Simon
0
Steve
Telerik team
answered on 11 Feb 2014, 11:52 AM
Hi Simon,

I used your TestApp to test locally on a couple of Android devices and the deviceready event was fired as expected (in fact it is fired twice for Android in Debug due to a bug we would fix for next version). So please test on several devices and if the problem persists on more than one device, please share its model and OS version.

Regards,
Steve
Telerik
Icenium is now Telerik AppBuilder, and is part of the Telerik Platform. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)
0
Simon
Top achievements
Rank 1
answered on 11 Feb 2014, 01:58 PM
Hi Steve

Yes, deviceready works ok, but the following don't:

pause, resume ,online, offline etc

i'm on a Nexus 7 running Android 4.4.2

thanks
Simon






0
Steve
Telerik team
answered on 14 Feb 2014, 10:15 AM
Hi Simon,

There are no event handlers to attach to these events in your TestApp project, have you removed those by mistake?

Regards,
Steve
Telerik
Icenium is now Telerik AppBuilder, and is part of the Telerik Platform. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)
Tags
AppBuilder companion app
Asked by
Simon
Top achievements
Rank 1
Answers by
Steve
Telerik team
Simon
Top achievements
Rank 1
Share this question
or