Author Topic: Android - 0.8.0  (Read 27278 times)

0 Members and 1 Guest are viewing this topic.

Offline Tirea Aean

  • The Blue One
  • Olo'eyktan Anawm
  • Palulukan Makto
  • *****
  • *
  • *
  • *
  • Posts: 9847
  • nv Eywa'eveng
  • Karma: 243
  • Oeri ran lu srung
    • Tirea Aean
Re: Learn Na'vi 0.7.0 (Android)
« Reply #60 on: July 02, 2011, 06:56:31 pm »
Just curious, anyone know what is still missing from this App before it can be released as v1.0.0?

Auto-updating of the dict?

kelku ikranä a hawnventi yom podcast (na'vi-only): https://tirearadio.com/podcast
Learn Na'vi Discord Chat: https://discord.gg/WF6qcmv

Offline okrìsti

  • Tute
  • ***
  • *
  • Posts: 383
  • Karma: 16
  • You are all awesome!
Re: Learn Na'vi 0.7.0 (Android)
« Reply #61 on: July 03, 2011, 01:54:01 am »
Auto-updating of the dict?

I think it is always checking for the newest database version.
dA | nga tsun oehu pivlltxe fa skype: c4duser
awngeyä wìki sìltsan lu
txopu lu fya’o ne vawma pa’o – nawma karyu Yotxa

Offline Puvomun

  • Palulukan Makto
  • *****
  • *
  • Posts: 3903
  • nl Netherlands
  • Karma: 55
  • Ayoeyä sa'nok anawm ngahu
    • PaganPaul's
Re: Learn Na'vi 0.7.0 (Android)
« Reply #62 on: July 03, 2011, 01:58:52 am »
Auto-updating of the dict?

I think it is always checking for the newest database version.

Yup, it does. The version for 0.7 is not updated anymore, iirc, as the format for 0.8 has changed to that of the iphone app.
Krr a lì'fya lam sraw, may' frivìp utralit.

Ngopyu ayvurä.

Offline omängum fra'uti

  • Moderator Emeritus
  • Palulukan Makto
  • *****
  • *
  • Posts: 3804
  • Karma: 127
  • Na'vi's first grammar nazi
    • Pronounced Na'vi words
Re: Learn Na'vi 0.7.0 (Android)
« Reply #63 on: July 03, 2011, 12:19:50 pm »
Just curious, anyone know what is still missing from this App before it can be released as v1.0.0?
The main thing is a crash bug I've not been able to fix yet, and I have not really had time to work on it, pretty much at all, as all my spare time has been taken up elsewhere.
Ftxey lu nga tokx ftxey lu nga tirea? Lu oe tìkeftxo.
Listen to my Na'vi Lessons podcast!

Offline okrìsti

  • Tute
  • ***
  • *
  • Posts: 383
  • Karma: 16
  • You are all awesome!
Re: Learn Na'vi 0.7.0 (Android)
« Reply #64 on: July 04, 2011, 03:24:15 am »
The main thing is a crash bug I've not been able to fix yet, and I have not really had time to work on it, pretty much at all, as all my spare time has been taken up elsewhere.
Is there an easy way to reproduce it?

edit:
It appears I am getting these quite often:

Code: [Select]
07-04 10:01:14.645: ERROR/Database(785): Leak found
07-04 10:01:14.645: ERROR/Database(785): java.lang.IllegalStateException: /data/data/org.learnnavi.app/databases/database.sqlite SQLiteDatabase created and never closed
07-04 10:01:14.645: ERROR/Database(785):     at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1580)
07-04 10:01:14.645: ERROR/Database(785):     at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:638)
07-04 10:01:14.645: ERROR/Database(785):     at org.learnnavi.app.EntryDBAdapter.checkDataBase(EntryDBAdapter.java:196)
07-04 10:01:14.645: ERROR/Database(785):     at org.learnnavi.app.EntryDBAdapter.createDataBase(EntryDBAdapter.java:165)
07-04 10:01:14.645: ERROR/Database(785):     at org.learnnavi.app.EntryDBAdapter.reloadDB(EntryDBAdapter.java:148)
07-04 10:01:14.645: ERROR/Database(785):     at org.learnnavi.app.EntryDBAdapter.getInstance(EntryDBAdapter.java:134)
07-04 10:01:14.645: ERROR/Database(785):     at org.learnnavi.app.Kelutral.recheckDb(Kelutral.java:577)
07-04 10:01:14.645: ERROR/Database(785):     at org.learnnavi.app.Kelutral.onCreate(Kelutral.java:106)
07-04 10:01:14.645: ERROR/Database(785):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
07-04 10:01:14.645: ERROR/Database(785):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
07-04 10:01:14.645: ERROR/Database(785):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
07-04 10:01:14.645: ERROR/Database(785):     at android.app.ActivityThread.access$1800(ActivityThread.java:112)
07-04 10:01:14.645: ERROR/Database(785):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
07-04 10:01:14.645: ERROR/Database(785):     at android.os.Handler.dispatchMessage(Handler.java:99)
07-04 10:01:14.645: ERROR/Database(785):     at android.os.Looper.loop(Looper.java:123)
07-04 10:01:14.645: ERROR/Database(785):     at android.app.ActivityThread.main(ActivityThread.java:3948)
07-04 10:01:14.645: ERROR/Database(785):     at java.lang.reflect.Method.invokeNative(Native Method)
07-04 10:01:14.645: ERROR/Database(785):     at java.lang.reflect.Method.invoke(Method.java:521)
07-04 10:01:14.645: ERROR/Database(785):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
07-04 10:01:14.645: ERROR/Database(785):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
07-04 10:01:14.645: ERROR/Database(785):     at dalvik.system.NativeStart.main(Native Method)

07-04 10:11:52.865: ERROR/Database(785): Leak found
07-04 10:11:52.865: ERROR/Database(785): java.lang.IllegalStateException: /data/data/org.learnnavi.app/databases/database.sqlite SQLiteDatabase created and never closed
07-04 10:11:52.865: ERROR/Database(785):     at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1580)
07-04 10:11:52.865: ERROR/Database(785):     at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:638)
07-04 10:11:52.865: ERROR/Database(785):     at org.learnnavi.app.EntryDBAdapter.checkDataBase(EntryDBAdapter.java:196)
07-04 10:11:52.865: ERROR/Database(785):     at org.learnnavi.app.EntryDBAdapter.createDataBase(EntryDBAdapter.java:165)
07-04 10:11:52.865: ERROR/Database(785):     at org.learnnavi.app.EntryDBAdapter.reloadDB(EntryDBAdapter.java:148)
07-04 10:11:52.865: ERROR/Database(785):     at org.learnnavi.app.EntryDBAdapter.getInstance(EntryDBAdapter.java:134)
07-04 10:11:52.865: ERROR/Database(785):     at org.learnnavi.app.Kelutral.recheckDb(Kelutral.java:577)
07-04 10:11:52.865: ERROR/Database(785):     at org.learnnavi.app.Kelutral.onResume(Kelutral.java:142)
07-04 10:11:52.865: ERROR/Database(785):     at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1225)
07-04 10:11:52.865: ERROR/Database(785):     at android.app.Activity.performResume(Activity.java:3530)
07-04 10:11:52.865: ERROR/Database(785):     at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2619)
07-04 10:11:52.865: ERROR/Database(785):     at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2647)
07-04 10:11:52.865: ERROR/Database(785):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1717)
07-04 10:11:52.865: ERROR/Database(785):     at android.os.Handler.dispatchMessage(Handler.java:99)
07-04 10:11:52.865: ERROR/Database(785):     at android.os.Looper.loop(Looper.java:123)
07-04 10:11:52.865: ERROR/Database(785):     at android.app.ActivityThread.main(ActivityThread.java:3948)
07-04 10:11:52.865: ERROR/Database(785):     at java.lang.reflect.Method.invokeNative(Native Method)
07-04 10:11:52.865: ERROR/Database(785):     at java.lang.reflect.Method.invoke(Method.java:521)
07-04 10:11:52.865: ERROR/Database(785):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
07-04 10:11:52.865: ERROR/Database(785):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
07-04 10:11:52.865: ERROR/Database(785):     at dalvik.system.NativeStart.main(Native Method)

07-04 10:13:35.755: ERROR/Database(785): Leak found
07-04 10:13:35.755: ERROR/Database(785): java.lang.IllegalStateException: /data/data/org.learnnavi.app/databases/database.sqlite SQLiteDatabase created and never closed
07-04 10:13:35.755: ERROR/Database(785):     at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1580)
07-04 10:13:35.755: ERROR/Database(785):     at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:638)
07-04 10:13:35.755: ERROR/Database(785):     at org.learnnavi.app.EntryDBAdapter.checkDataBase(EntryDBAdapter.java:196)
07-04 10:13:35.755: ERROR/Database(785):     at org.learnnavi.app.EntryDBAdapter.createDataBase(EntryDBAdapter.java:165)
07-04 10:13:35.755: ERROR/Database(785):     at org.learnnavi.app.EntryDBAdapter.reloadDB(EntryDBAdapter.java:148)
07-04 10:13:35.755: ERROR/Database(785):     at org.learnnavi.app.EntryDBAdapter.getInstance(EntryDBAdapter.java:134)
07-04 10:13:35.755: ERROR/Database(785):     at org.learnnavi.app.Dictionary.onCreate(Dictionary.java:69)
07-04 10:13:35.755: ERROR/Database(785):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
07-04 10:13:35.755: ERROR/Database(785):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
07-04 10:13:35.755: ERROR/Database(785):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
07-04 10:13:35.755: ERROR/Database(785):     at android.app.ActivityThread.access$1800(ActivityThread.java:112)
07-04 10:13:35.755: ERROR/Database(785):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
07-04 10:13:35.755: ERROR/Database(785):     at android.os.Handler.dispatchMessage(Handler.java:99)
07-04 10:13:35.755: ERROR/Database(785):     at android.os.Looper.loop(Looper.java:123)
07-04 10:13:35.755: ERROR/Database(785):     at android.app.ActivityThread.main(ActivityThread.java:3948)
07-04 10:13:35.755: ERROR/Database(785):     at java.lang.reflect.Method.invokeNative(Native Method)
07-04 10:13:35.755: ERROR/Database(785):     at java.lang.reflect.Method.invoke(Method.java:521)
07-04 10:13:35.755: ERROR/Database(785):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
07-04 10:13:35.755: ERROR/Database(785):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
07-04 10:13:35.755: ERROR/Database(785):     at dalvik.system.NativeStart.main(Native Method)

But it is not force closing the app.
« Last Edit: July 04, 2011, 05:17:11 am by okrìsti »
dA | nga tsun oehu pivlltxe fa skype: c4duser
awngeyä wìki sìltsan lu
txopu lu fya’o ne vawma pa’o – nawma karyu Yotxa

Offline omängum fra'uti

  • Moderator Emeritus
  • Palulukan Makto
  • *****
  • *
  • Posts: 3804
  • Karma: 127
  • Na'vi's first grammar nazi
    • Pronounced Na'vi words
Re: Learn Na'vi 0.7.0 (Android)
« Reply #65 on: July 04, 2011, 06:13:18 pm »
That's another problem I would like to fix but it's more clean up.  It MAY be related.

The crash I'm trying to track down (It may have been introduced after the last beta build I did) happens when you fling the word list (So it starts scrolling after you let go) and rotate the display while it's still moving.  It will force close.
Ftxey lu nga tokx ftxey lu nga tirea? Lu oe tìkeftxo.
Listen to my Na'vi Lessons podcast!

Offline okrìsti

  • Tute
  • ***
  • *
  • Posts: 383
  • Karma: 16
  • You are all awesome!
Re: Learn Na'vi 0.7.0 (Android)
« Reply #66 on: July 05, 2011, 05:02:43 pm »
Oh, it never occured to me, but I have my orientation locked to vertical.
Stacktrace would be
Code: [Select]
07-05 20:33:54.008: ERROR/AndroidRuntime(13051): FATAL EXCEPTION: main
07-05 20:33:54.008: ERROR/AndroidRuntime(13051): java.lang.IllegalStateException: this should only be called when the cursor is valid
07-05 20:33:54.008: ERROR/AndroidRuntime(13051):     at android.widget.CursorAdapter.getView(CursorAdapter.java:175)
07-05 20:33:54.008: ERROR/AndroidRuntime(13051):     at org.learnnavi.app.CategoryNameCursorAdapter.getView(CategoryNameCursorAdapter.java:182)
07-05 20:33:54.008: ERROR/AndroidRuntime(13051):     at android.widget.AbsListView.obtainView(AbsListView.java:1340)
07-05 20:33:54.008: ERROR/AndroidRuntime(13051):     at android.widget.ListView.makeAndAddView(ListView.java:1743)
07-05 20:33:54.008: ERROR/AndroidRuntime(13051):     at android.widget.ListView.fillDown(ListView.java:668)
07-05 20:33:54.008: ERROR/AndroidRuntime(13051):     at android.widget.ListView.fillGap(ListView.java:639)
yadayada
dA | nga tsun oehu pivlltxe fa skype: c4duser
awngeyä wìki sìltsan lu
txopu lu fya’o ne vawma pa’o – nawma karyu Yotxa

Offline Palulukanä Tarontu

  • Taronyu
  • ****
  • *
  • Posts: 539
  • Karma: 10
Re: Learn Na'vi 0.7.0 (Android)
« Reply #67 on: July 05, 2011, 05:37:04 pm »
That's an old problem isn't it? I could reproduce this in the old 0.7, too. I don't know something about programming for Android, but I think there could be a special action like stop scrolling before changing screen orientation to catch these errors. Or working with 'if'? Could that help?
« Last Edit: July 05, 2011, 06:15:00 pm by Palulukanä Tarontu »
old gallery link?id=1817[/img]

"When people are sitting on s*** you want, you make them your enemy. Then you’re justified in taking it."
- Jake Sully
[email protected]

Offline omängum fra'uti

  • Moderator Emeritus
  • Palulukan Makto
  • *****
  • *
  • Posts: 3804
  • Karma: 127
  • Na'vi's first grammar nazi
    • Pronounced Na'vi words
Re: Learn Na'vi 0.7.0 (Android)
« Reply #68 on: July 06, 2011, 01:51:42 am »
Detecting the condition and figuring out some way to work around it would potentially work, but it is still a work-around and the problem hints at some underlying problem with how the app uses the APIs.

At this point I have a huge book on Android programming I'm going through and I'll probably refactor a lot of the code in question so it will be done right.
Ftxey lu nga tokx ftxey lu nga tirea? Lu oe tìkeftxo.
Listen to my Na'vi Lessons podcast!

Offline Maria TunVrrtep

  • Taronyu
  • ****
  • *
  • Posts: 742
  • Karma: 9
  • Maria TunVrrtep - The Red Demon
Re: Learn Na'vi 0.7.0 (Android)
« Reply #69 on: August 14, 2011, 07:11:14 pm »
Any word on when we'll have a finished product? 
"Ke'u ke lu law a krr frakem tsunslu." -
    Margaret Drabble
("When nothing is sure, everything is possible.")



Offline Tsmuktengan

  • Palulukan Makto
  • *****
  • *
  • Posts: 1482
  • Karma: 13
Re: Learn Na'vi 0.7.0 (Android)
« Reply #70 on: September 13, 2011, 08:07:48 pm »
Well, on my side, it appears quite finished as it is running fine on my HTC Desire with Leedroid's Desire HD port.

However, I still hope this application can still be improved by someone.


Offline Tirea Aean

  • The Blue One
  • Olo'eyktan Anawm
  • Palulukan Makto
  • *****
  • *
  • *
  • *
  • Posts: 9847
  • nv Eywa'eveng
  • Karma: 243
  • Oeri ran lu srung
    • Tirea Aean
Re: Learn Na'vi 0.7.0 (Android)
« Reply #71 on: September 13, 2011, 09:07:18 pm »
It would be sweet if it was open source. I'm studyin Java at uni and Android dev sounds like fun.
* Tirea Aean cannot remember if it is

kelku ikranä a hawnventi yom podcast (na'vi-only): https://tirearadio.com/podcast
Learn Na'vi Discord Chat: https://discord.gg/WF6qcmv

Offline Tsmuktengan

  • Palulukan Makto
  • *****
  • *
  • Posts: 1482
  • Karma: 13
Re: Learn Na'vi 0.7.0 (Android)
« Reply #72 on: September 13, 2011, 09:16:32 pm »
It would be sweet if it was open source. I'm studyin Java at uni and Android dev sounds like fun.
* Tirea Aean cannot remember if it is

It does really seem fun. I do not have time left to study Java for instance (the next languages I have to learn are C++ and OCaml, not counting Na'vi ;) ) so I won't participate before a while, despite a strong want to contribute.

Since this application is a port of the iOS app, it may be better to recode from scratch to make sure it is clean and optimized, for other potential programmers to understand the code as well and submit patches and improvements without fighting with the SDK (if possible).

So, if there is no sign the original developper cannot maintain this project anymore, and the source code is not opened, then this might be a solution.  :)


Online Seze

  • LearnNavi DevOps
  • Toruk Makto
  • Palulukan Makto
  • *****
  • *
  • *
  • Posts: 1563
  • us United States
  • Karma: 53
  • One App to rule them all...
Re: Learn Na'vi 0.7.0 (Android)
« Reply #73 on: September 14, 2011, 02:00:43 am »
Everything is open source, check out some of the stickied topics in this subforum.


Learn Na'vi Mobile App - Now Available

Offline Toruk Makto

  • LearnNavi Admin
  • Toruk Makto
  • Palulukan Makto
  • *****
  • *
  • Posts: 6082
  • us United States
  • Karma: 213
  • . Txepsiyu Markì .
    • Learn Na'vi
Re: Learn Na'vi 0.7.0 (Android)
« Reply #74 on: September 17, 2011, 08:51:33 am »
I still have .0.7.0 with a very old word list. I wish there was a way to at least update to the latest dictionary. Not being a coder, I have no idea how to help with this app...

Lì’fyari leNa’vi ’Rrtamì, vay set ’almong a fra’u zera’u ta ngrrpongu
Na'vi Dictionary: http://eanaeltu.learnnavi.org/dicts/NaviDictionary.pdf

Offline Tsmuktengan

  • Palulukan Makto
  • *****
  • *
  • Posts: 1482
  • Karma: 13
Re: Learn Na'vi 0.7.0 (Android)
« Reply #75 on: September 17, 2011, 09:59:12 am »
I still have .0.7.0 with a very old word list. I wish there was a way to at least update to the latest dictionary. Not being a coder, I have no idea how to help with this app...

Me as well, has not been updated since a long time.

Isn't a generic word list of na'vi somewhere? I guess a generic .xml file could be fine for such purpose and cross-application uses.


Offline Tirea Aean

  • The Blue One
  • Olo'eyktan Anawm
  • Palulukan Makto
  • *****
  • *
  • *
  • *
  • Posts: 9847
  • nv Eywa'eveng
  • Karma: 243
  • Oeri ran lu srung
    • Tirea Aean
Re: Learn Na'vi 0.7.0 (Android)
« Reply #76 on: September 17, 2011, 10:40:16 am »
I wanna check out the source code and see what it reads for a word list and see what I can do...

EDIT: Got the source code. havent had a lot of time to inspect, but I saw code in there for checking dict version and updating...among comments in Na'vi ;D
« Last Edit: September 17, 2011, 01:01:21 pm by Tirea Aean »

kelku ikranä a hawnventi yom podcast (na'vi-only): https://tirearadio.com/podcast
Learn Na'vi Discord Chat: https://discord.gg/WF6qcmv

Online Seze

  • LearnNavi DevOps
  • Toruk Makto
  • Palulukan Makto
  • *****
  • *
  • *
  • Posts: 1563
  • us United States
  • Karma: 53
  • One App to rule them all...
Re: Learn Na'vi 0.7.0 (Android)
« Reply #77 on: September 19, 2011, 06:33:18 pm »
 I thought the android version used the same dictionary database as the iphone version, guess not or something broke.  The database files that the iPhone version uses are http://learnnaviapp.com/database/database.sqlite and http://learnnaviapp.com/database/database.version    The app checks the version file to see if it needs to update.  If the number listed in that file is higher than the local version number, it will download the .sqlite file and replace the local copy with the one it downloaded. 


Learn Na'vi Mobile App - Now Available

Offline Tirea Aean

  • The Blue One
  • Olo'eyktan Anawm
  • Palulukan Makto
  • *****
  • *
  • *
  • *
  • Posts: 9847
  • nv Eywa'eveng
  • Karma: 243
  • Oeri ran lu srung
    • Tirea Aean
Re: Learn Na'vi 0.7.0 (Android)
« Reply #78 on: September 19, 2011, 07:25:49 pm »
I thought the android version used the same dictionary database as the iphone version, guess not or something broke.  The database files that the iPhone version uses are http://learnnaviapp.com/database/database.sqlite and http://learnnaviapp.com/database/database.version    The app checks the version file to see if it needs to update.  If the number listed in that file is higher than the local version number, it will download the .sqlite file and replace the local copy with the one it downloaded. 

that's what I got from browsing the source code for Android... but I didn't look at it in depth enough to figure out where it broke exactly. Of course then again, I'm just now learning Java and Android development as I go... I'm not exactly a tsulfätu in those areas. but by having the source code for this in my eclipse workspace, I hope to soon.

kelku ikranä a hawnventi yom podcast (na'vi-only): https://tirearadio.com/podcast
Learn Na'vi Discord Chat: https://discord.gg/WF6qcmv

Online Seze

  • LearnNavi DevOps
  • Toruk Makto
  • Palulukan Makto
  • *****
  • *
  • *
  • Posts: 1563
  • us United States
  • Karma: 53
  • One App to rule them all...
Re: Learn Na'vi 0.7.0 (Android)
« Reply #79 on: September 19, 2011, 09:01:51 pm »
I just did a quick read through of the code and it looks like its using the right files.  The next question is if the version in SVN matches the version that is currently being used on your device.  What version does your device show you using? Should look something like this -> Version 0.7.0 (158-57)    0.7.0 is the pretty version, 158 is the SVN revision number at build time, and 57 is the database version number. 


Learn Na'vi Mobile App - Now Available

 

Become LearnNavi's friend on Facebook Follow LearnNavi on Twitter! Watch LearnNavi's videos on YouTube

SMF 2.0.15 | SMF © 2017, Simple Machines
Privacy Policy
| XHTML | RSS | WAP2 | Site Rules

LearnNavi is not affiliated with the official Avatar website,
James Cameron, or the Twentieth Century-Fox Film Corporation.
All trademarks and servicemarks are the properties of their respective owners.
Images in the LearnNavi.org Forums and Gallery may not be used without permission.

LearnNavi Affiliates:
ToS

LearnNavi is the community to learn Na'vi, the Avatar Language
"A place where real friendships are made." -Paul Frommer

AvatarMeet | Learn Na'vi Forum | Learn Na'vi Wiki | Na'viteri

LearnNavi