incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <>
Subject [jira] [Updated] (CB-1128) crash while running the Accelerometer documentation example on a 2.3.5 device
Date Wed, 25 Jul 2012 19:44:33 GMT


Joe Bowser updated CB-1128:

    Priority: Minor  (was: Major)
    Assignee: Simon MacDonald  (was: Joe Bowser)

I can't reproduce it on 2.3.3 (LG Optimus One) or on the Nexus S (2.3.6).  Our Samsung device
has already been upgraded to ICS with TouchWiz.  Assigning to Simon who has a Galaxy S
> crash while running the Accelerometer documentation example on a 2.3.5 device
> -----------------------------------------------------------------------------
>                 Key: CB-1128
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>         Environment: eclipse sdk 4.2 on win32, android sdk r20.0.1 win, adt 20.0.2, cordova-2.0.0,
the device is a samsung galaxy s gt-i9000 running android 2.3.5 gingerbread xxjvt
>            Reporter: Alexandru Nicau
>            Assignee: Simon MacDonald
>            Priority: Minor
>              Labels: android, crash
>         Attachments: index.html, logcat.txt
> Have implemented the Accelerometer full example (from the documentation) and after a
few seconds of correct execution it crashes. The situation can be duplicated easily and happens
every time. 
> The Java code is: 
> public class MainActivity extends DroidGap {
>     @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         super.setStringProperty("loadingDialog", "Title,Message");
>         super.setStringProperty("errorUrl", "file:///android_asset/www/error.html");
>         super.init();
>         super.appView.clearCache(true);
>         super.setBooleanProperty("keepRunning", false);
>         super.loadUrl("file:///android_asset/www/index.html");
>     }
> }
> The HTML code is a copy-paste from the example at
, accelerometer.watchAcceleration section, the full code sample. That's where a watch is added
on the accelerometer, executing the onSuccess() every 3 seconds, which updates some div. 
> Running the application updates the div but only for a variable number of times (maybe
one to three updates). The errors we're seeing bellow are at a point when a spinner dialog
is about to be shown, but its view cannot be added to the view manager (or the view manager
cannot instantiate a new view, don't know code details). Both, IMHO are side effects of the
real reasons. If I remove the "loadingDialog" property, the application keeps on crashing,
but more quietly than we may see bellow.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message