Page 1 of 2

ERROR TO ACCESS LOCALSTORAGE IN ANDROID APP

Posted: Mon Mar 19, 2012 2:08 pm
by Michael Klauss

Hi Max!

I ́m having a problem to access my LocalStorage when i ́m exporting my projetc to android app. I ́m have trying exporting to eclipse project and direct generating apk by tiggzi site. Both of tests can ́t access the LocalStorage.

Runnig my project through tiggzi web, it ́s ok.

Can you help me?

Thank ́s Max!

See the error in the LogCat.

--------------------------------------------------------------------------------

03-19 10:54:37.910: D/dalvikvm(2604): GC_FOR_ALLOC freed 74K, 4% free 6415K/6659K, paused 35ms
03-19 10:54:37.910: I/dalvikvm-heap(2604): Grow heap (frag case) to 6.862MB for 513744-byte allocation
03-19 10:54:38.000: D/dalvikvm(2604): GC_CONCURRENT freed 0K, 4% free 6917K/7175K, paused 3ms+3ms
03-19 10:54:38.040: I/System.out(2604): DISPLAYW = 1280, mInitialOpenGLScale = 1.3061224
03-19 10:54:38.110: V/ORIG_APP_W(2604): = 320.0
03-19 10:54:38.110: V/ORIG_APP_H(2604): = 480.0
03-19 10:54:38.110: V/width(2604): = 1280
03-19 10:54:38.110: V/this.appView.getMeasuredHeight()(2604): = 800
03-19 10:54:38.110: V/globalScale(2604): = 400.0
03-19 10:54:38.110: V/this.appView.getScale()(2604): index=1.0
03-19 10:54:38.110: I/System.out(2604): DISPLAYW = 1280, mInitialOpenGLScale = 1.3061224
03-19 10:54:38.120: W/webcore(2604): skip viewSizeChanged as w is 0
03-19 10:54:38.220: D/szipinf(2604): Initializing inflate state
03-19 10:54:38.220: D/szipinf(2604): Initializing zlib to inflate
03-19 10:54:38.220: D/szipinf(2604): Initializing inflate state
03-19 10:54:38.220: D/szipinf(2604): Initializing zlib to inflate
03-19 10:54:38.230: D/szipinf(2604): Initializing inflate state
03-19 10:54:38.260: D/szipinf(2604): Initializing zlib to inflate
03-19 10:54:38.270: D/szipinf(2604): Initializing inflate state
03-19 10:54:38.330: D/dalvikvm(2604): GC_CONCURRENT freed 102K, 4% free 7327K/7559K, paused 3ms+4ms
03-19 10:54:38.340: D/szipinf(2604): Initializing zlib to inflate
03-19 10:54:39.400: D/dalvikvm(2604): GC_CONCURRENT freed 13K, 4% free 7767K/8007K, paused 1ms+1ms

03-19 10:54:40.070: I/SqliteDatabaseCpp(2604): sqlite returned: error code = 14, msg = cannot open file at line 27704 of [8609a15dfa], db=/data/data/com.gotiggr.project29994/databases/webview.db
03-19 10:54:40.070: I/SqliteDatabaseCpp(2604): sqlite returned: error code = 14, msg = os_unix.c: open() at line 27704 - "" errno=2 path=/CachedGeoposition.db, db=/data/data/com.gotiggr.project29994/databases/webview.db

03-19 10:54:40.200: E/libEGL(2604): call to OpenGL ES API with no current context (logged once per thread)
03-19 10:54:40.200: D/ShaderProgram(2604): couldn't load the vertex shader!
03-19 10:54:40.200: E/libEGL(2604): call to OpenGL ES API with no current context (logged once per thread)
03-19 10:54:40.200: D/ShaderProgram(2604): couldn't load the vertex shader!
03-19 10:54:40.200: E/libEGL(2604): call to OpenGL ES API with no current context (logged once per thread)
03-19 10:54:40.200: D/ShaderProgram(2604): couldn't load the vertex shader!
03-19 10:54:40.200: E/libEGL(2604): call to OpenGL ES API with no current context (logged once per thread)
03-19 10:54:40.200: D/ShaderProgram(2604): couldn't load the vertex shader!
03-19 10:54:40.200: E/libEGL(2604): call to OpenGL ES API with no current context (logged once per thread)
03-19 10:54:40.200: D/ShaderProgram(2604): couldn't load the vertex shader!
03-19 10:54:40.200: E/libEGL(2604): call to OpenGL ES API with no current context (logged once per thread)
03-19 10:54:40.200: D/ShaderProgram(2604): couldn't load the vertex shader!

--------------------------------------------------------------------------------

ERROR TO ACCESS LOCALSTORAGE IN ANDROID APP

Posted: Mon Mar 19, 2012 3:59 pm
by maxkatz

Are you referring to sqlite error..? Local Storage and SQLite are different storage. If you are able to access Local Storage as mobile web app, it should work when running the app as Android (PhoneGap).


ERROR TO ACCESS LOCALSTORAGE IN ANDROID APP

Posted: Mon Mar 19, 2012 4:13 pm
by Michael Klauss

Hi Max!

But my project isn ́t running in android.

The logCat show it.

Can you see my project?

If you want, try export to eclipse.

I have tried install in mobilephone too, and don ́t work!

My project is running (perfect ) when i test in browser.

I ́m waiting for your help!

I need you to help me to continue the development... no have sense if my project won ́t run in android!

Thank ́s again!


ERROR TO ACCESS LOCALSTORAGE IN ANDROID APP

Posted: Mon Mar 19, 2012 4:59 pm
by maxkatz

Let's do this step by step.. are you able to install the app on Android?


ERROR TO ACCESS LOCALSTORAGE IN ANDROID APP

Posted: Mon Mar 19, 2012 5:22 pm
by Michael Klauss

Hi Max,

Yes. I ́m able to install. I ́ve installed in my androimobile. The firt service(get and show token) worked. But when i call the second service, don ́t work.

My second service use a token in localStorage(create in tiggzi).

I have tried exporting to eclipse project and generating the apk.

I have read all topics in help. For example.

http://help.gotiggr.com/documentation...

Can you try access my project, please?!

It ́s a much important to me!

I have more less 1 week to finish it!

Thanks Max!


ERROR TO ACCESS LOCALSTORAGE IN ANDROID APP

Posted: Mon Mar 19, 2012 6:13 pm
by Michael Klauss

Hi Max,

I ́m trying for about 2 hours and don ́t work.

The project is running, but when access a localstore(in mobile app on android) the app stop.

Do i need any additional information to export my projet to mobileapp?

For example. autorization to access sqlite database?

Please, can you help me?


ERROR TO ACCESS LOCALSTORAGE IN ANDROID APP

Posted: Mon Mar 19, 2012 6:55 pm
by Michael Klauss

Hi Max!

I ́m trying install on my samsung galaxy 3.2. And didn ́t worked.

I think it ́s the problem. My app wouldn ́t work in galaxy?

https://play.google.com/store/search?...


ERROR TO ACCESS LOCALSTORAGE IN ANDROID APP

Posted: Mon Mar 19, 2012 7:21 pm
by maxkatz

What error did you get?


ERROR TO ACCESS LOCALSTORAGE IN ANDROID APP

Posted: Mon Mar 19, 2012 7:39 pm
by Michael Klauss

When i have tryed install in Sangung galaxy tab, from market, i get a message.

"This item don ́t have compatibility with your device"(Translated)


ERROR TO ACCESS LOCALSTORAGE IN ANDROID APP

Posted: Mon Mar 19, 2012 7:41 pm
by Michael Klauss

Worked in other device! :-)

But in my samsung galaxy tab, didn ́t worked!