incubator-callback-dev mailing list archives

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


Joe Bowser commented on CB-1128:

We still have to keep this open until someone can test my changes and see if they resolve
the dialog issues.  Once again, I don't have a Samsung Galaxy S here, so I can't close this
> 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