jgatica / mobile-web-development-with-phonegap

Automatically exported from code.google.com/p/mobile-web-development-with-phonegap
0 stars 0 forks source link

Im having some problems with the initial phonegap 'deviceready' event-handler not being triggered properly, in the ripple chrome extension phonegap emulator. #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.create an new project PhoneGap for android project
2. write the code function onLoad() {
        //console.log(document);
        document.addEventListener('deviceready',function() {
                console.log('PHONEGAP_READY');
            },false);
        console.log('ON_LOAD');
        x$(document).on('deviceready', function() {
                console.log('PHONEGAP_READY');
            }, false);
    }
3. write <body onload="onLoad();"> and after run the application then 
deviceready app is not running and debug has no error showing. (one error is vm 
aborting)

What is the expected output? What do you see instead?
PHONEGAP_READY, but i am seeing white scereen

What version of the product are you using? On what operating system?
Phonegap.9.4

Please provide any additional information below.
I enabled jsltin4java files also

Original issue reported on code.google.com by sureshon...@gmail.com on 21 Apr 2011 at 7:57

GoogleCodeExporter commented 8 years ago
This bug database is only for the Eclipse Plugin. General PhoneGap issues 
should be filed at https://github.com/phonegap/phonegap-android/issues. Also, 
you can get getting started help on the mailing list - 
http://groups.google.com/group/phonegap - or http://www.stackoverflow.com

However, I took a look at your problem and I do see PHONEGAP_READY in the 
browser's console log. See the attached screen shot.

If you're just getting started it might be good to first reproduce some of the 
examples.  One place to start is 
http://www.mobiledevelopersolutions.com/home/start/twominutetutorials/tmt0

Original comment by paul.beu...@gmail.com on 22 Apr 2011 at 1:29

Attachments:

GoogleCodeExporter commented 8 years ago
Hi Thank you for updating my query.

But i did not receive any message in console. and i need to develop contact 
store application in Phone Gap. this sample application is not working in 
simulator and android mobile also.
And send the scree shots my program code and also attache the run the code. see 
it once and help me 

Thank you

Original comment by sureshon...@gmail.com on 22 Apr 2011 at 6:29

Attachments:

GoogleCodeExporter commented 8 years ago
And also try to 
http://www.mobiledevelopersolutions.com/home/start/twominutetutorials/tmt0 
(TMT0 Use AppLaud to Create a Web App Project, Run it on a Device or Simulator) 
this application. but i did not get any information for android like version, 
platform, uid, name... ect

plz find the attachment

thank you

Original comment by sureshon...@gmail.com on 22 Apr 2011 at 6:47

Attachments:

GoogleCodeExporter commented 8 years ago
In your first note, you said you were using the Ripple Emulator. If you use 
Ripple, phonegap.js needs to be commented out of index.html. If you don't use 
Ripple, as in the screen shots in Comment 2, phonegap.js should not be 
commented out.

Original comment by paul.beu...@gmail.com on 22 Apr 2011 at 3:54