incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "anton kukushkin (JIRA)" <>
Subject [jira] [Comment Edited] (CB-1128) crash while running the Accelerometer documentation example on a 2.3.5 device
Date Tue, 25 Sep 2012 11:24:07 GMT


anton kukushkin edited comment on CB-1128 at 9/25/12 10:23 PM:

I'm still getting this (or something _very_similar) on GS1 running android 2.2 whenever i
change device orientation.

I'm not using accelerometer api though.

Available to test any further improvements.
      was (Author: kilozord):
    I'm still getting this on GS1 running android 2.2.

Available to test any further improvements.
> 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: Joe Bowser
>            Priority: Minor
>              Labels: android, crash
>             Fix For: 2.1.0
>         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
For more information on JIRA, see:

View raw message