Drewk02 / anymemo

Automatically exported from code.google.com/p/anymemo
GNU General Public License v2.0
0 stars 0 forks source link

Failed Converson of CSV #277

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Version 10.3 on Android 4.2 with 1.5GB RAM with around 800mb on system in use.

What steps will reproduce the problem?
1. Use a large CSV (created a 10,000 items)
2. Attempt to import into Anymemo using.
3. Conversion should take a while depending on hardware, wait for screen to 
blank out BEFORE finishing conversion
4. Wake-up device, enter in passcode, passscreen, pattern.
5. On my phone the Anymemo program is forced into the background and I must 
manually navigate to it and re-open or simple hold the HOME key and select it 
from Recent List.
6. View the "created" database. It should be empty and contain no data.

The program creates a messagebox while importing, however when I destroy the 
messagebox by clicking somewhere else the import process still goes on in the 
background and so long as I stay within the program it does it's task and 
alerts me when the conversion is finished.

The program may need a Wakelock or message to the user warning not to let the 
screen power off for certain phones.

Original issue reported on code.google.com by Neofireb...@gmail.com on 10 Nov 2013 at 6:41

GoogleCodeExporter commented 8 years ago
Thank you for reporting this.
Conversion should not be interrupted. I can use a wakelock to prevent the phone 
from sleeping when converting. Thank you for the suggestion.

Original comment by mrlhwlib...@gmail.com on 12 Nov 2013 at 5:42

GoogleCodeExporter commented 8 years ago
No problem. Im not sure if enabling a wakelock will require more permissions 
however.

Original comment by Neofireb...@gmail.com on 12 Nov 2013 at 8:24

GoogleCodeExporter commented 8 years ago
You are absolutely right. A new permission is needed.
<uses-permission android:name="android.permission.WAKE_LOCK" />

Some users don't like this new permission, it might be display in "May affect 
battery life".
I will see if the conversion can be done in even after the phone is locked. I 
think Android didn't kill the worker thread. It might be caused by an exception 
thrown by AnyMemo when the activity is paused.
Anyway, less permissions could be better. I will see what I can do for it. I 
will keep this issue updated for my new findings.

Original comment by mrlhwlib...@gmail.com on 12 Nov 2013 at 11:48

GoogleCodeExporter commented 8 years ago
How about a pop-up notification when starting to convert, telling the users 
that anymemo will automatically keep the device awake during conversion and 
automatically turn the wake-up state back to original after conversion is done?

Original comment by zongb...@gmail.com on 10 Dec 2013 at 6:05

GoogleCodeExporter commented 8 years ago
Well, the best solution would be using an IntentService and pop up at 
notification area and notify you when done. You can also do something else 
while waiting.

Original comment by mrlhwlib...@gmail.com on 10 Dec 2013 at 6:53

GoogleCodeExporter commented 8 years ago
Made the change so it works like Google Play's download. It will show up the 
conversion in the notification area and you can do whatever you want when the 
conversion is in progress. Once done, you can click the item there to 
Preview/edit mode if the result file is a .db file. 

Original comment by mrlhwlib...@gmail.com on 16 Dec 2013 at 10:31

GoogleCodeExporter commented 8 years ago
I also tested it working even if the device goes to sleep without using 
WakeLock.
I will mark this issue as fixed. Today's nightly build should have the change. 
Tomorrow's nightly build should have more bug fixes for Android 2.3 
compatibility and etc.

Original comment by mrlhwlib...@gmail.com on 17 Dec 2013 at 2:09