alidiepuit / osmtracker-android

Automatically exported from code.google.com/p/osmtracker-android
GNU General Public License v3.0
0 stars 0 forks source link

FC on HTC Dream, probably rotation issue #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
v0.3.3 on my ADP1 (running CyanogenMod 4.2.15.1) crashes pretty regularly. 
I started having this problem with this release, but I think it is 
coincidental and probably existed before. The addition of the text note 
feature made me want to use my keyboard, which means I opened the screen 
which means the program gets sent a notice to rotate.

Sometimes this works out ok, but sometimes this makes it die hard. In 
particular if the phone sleeps, waking it up while in landscape mode will 
FC osmtracker every time.

Other crashes occur when trying to open the keyboard after the text dbx is 
already on screen and sometimes on adding other amenities.

Of course the program force closing also kills your entire track log up to 
the point of the crash.

Original issue reported on code.google.com by alerque on 29 Mar 2010 at 8:05

GoogleCodeExporter commented 9 years ago
Thanks for your feedback.

Screen orientation is not supported for the moment, and I forced the screen to 
stay
in portrait mode (An standard flag provided by Android SDK) however I don't 
know how
this deals with phone with horizontal keyboards.

Does the screen starts rotating, and crashes, or does it crash just as you open 
your
keyboard, without rotating or showing the keyboard ?

I just fixed a small code flaw in 0.3.4 which may be related (code related to 
save
application state when another app. come on top, or when app. is rotated). 
Could you
update to 0.3.4 and test it again please ?

Original comment by nguillau...@gmail.com on 29 Mar 2010 at 8:38

GoogleCodeExporter commented 9 years ago
I updated to v0.3.4 and the problem seems to be the same.

The program does not try to rotate, the don't-rotate flag clearly works. As 
long as 
the phone doesn't sleep I am able to use the program with the keyboard open. 
While 
this isn't idea since this means your typing sideways, it would at least be 
temporarily bearable to punch in data as long as it would quit crashing. 
Opening the 
on screen keyboard and then switching the layout to a number pad just to punch 
in a 
two digit house number is a lot of overhead for a device that has keys.

Original comment by alerque on 29 Mar 2010 at 9:18

GoogleCodeExporter commented 9 years ago
Ok, the main problem is that it will be difficult to test & reproduce because I
haven't any device with keyboard, nor with CyanogenMod installed. :-(

A thing I don't understand: You said the phone goes to sleep while running 
OSMTracker
? Normally it should not occur, because the main screen has a flag to disable 
screen
saver when it's displayed.

Can you give me an exact & detailed sequence of operation to reproduce the 
problem ?
Thanks.

Original comment by nguillau...@gmail.com on 29 Mar 2010 at 12:09

GoogleCodeExporter commented 9 years ago
Dead simple. Press the red button, then wake the phone back with the keyboard 
open.

I also have a special rule setup in Locale so that when in mapping mode the 
phone 
doesn't sleep and leaves the GPS on, but on long trips leaving the screen on 
will kill 
my battery and I have a habit of punching it off the second I'm done looking at 
the 
screen. This works pefectly as long as the phone is in portrait mode when it 
wakes up.

Original comment by alerque on 29 Mar 2010 at 12:42

GoogleCodeExporter commented 9 years ago
Ok, I managed to reproduce it by removing the no-rotate flag. It seems that on
keyboard devices even if the app. doesn't rotate, the rotation process is 
internally
played, and the app. doesn't manage it well.

I'm having a look at it, it's also the opportunity to support screen 
orientation !

Original comment by nguillau...@gmail.com on 29 Mar 2010 at 10:29

GoogleCodeExporter commented 9 years ago
Fixed it, will be available in next release.

I took the opportunity to support screen rotation as well. It works, but some 
text
are too long for buttons in landscape mode.

Original comment by nguillau...@gmail.com on 29 Mar 2010 at 11:19

GoogleCodeExporter commented 9 years ago
Bravo and thanks. I can't wait to get out of the house and label some streets!

Original comment by alerque on 30 Mar 2010 at 8:52