Page 1 of 1

Opening Image from local storage force closes

Posted: Wed Nov 06, 2013 11:13 pm
by Timo Sehrbruch

Hi there,

i encounter a problem within my app right now.

I have two options in my app to load a picture.

a) taken by camera
b) loaded from local storage (sourcetype: saved photo album)

when I test it via Appery tester OR export it as apk and select b) i get a force close.

option a) is working like a charm.

and suggestions?


Opening Image from local storage force closes

Posted: Thu Nov 07, 2013 12:38 am
by maxkatz

Can you show in more detail how you load the picture from local storage?


Opening Image from local storage force closes

Posted: Thu Nov 07, 2013 8:59 am
by Timo Sehrbruch

I load the picture like this:

Image

Image

the service itself is invoked by button press.

the same i do for the camera picture, of course is the sourcetype then camera, but this works!


Opening Image from local storage force closes

Posted: Thu Nov 07, 2013 11:25 am
by Maryna Brodina

Hello! Please try to install app on device. What device you use to test? What Libraries version in App settings -- External resources? What image you open (size, format)?


Opening Image from local storage force closes

Posted: Thu Nov 07, 2013 1:18 pm
by Timo Sehrbruch

I already installed it on multiple devices, and it doesnt matter which format I open actually. from native camera (8MP) down to small icons from internal storage (32x32) in jpg and/or png.

tested on

Galaxy Nexus / Android 4.3
Galaxy Neuxs / Android 4.2
HTC Sensation / Android 4.2
Acer A500 / Android 4.0

no external resources, Lib version will tell when back at work!

edit: min sdk / target sdk is set to android 2.2.x

tried now with min sdk 2.2.x / target sdk 4.2.x

will report soon.


Opening Image from local storage force closes

Posted: Thu Nov 07, 2013 1:22 pm
by Maryna Brodina

Could you give us your publick app link and tell how to reproduce the problem?


Opening Image from local storage force closes

Posted: Thu Nov 07, 2013 1:47 pm
by Timo Sehrbruch

Hey Maryna.

changing target sdk 4.2.x did the trick, at least for all 4.0+ android devices, will test soon on a 2.x device and report, but should work.

public link (active for some hours now:)

www.timosehrbruch.de/downloads/xXx_Pe...

still in dev.

how to reproduce (but now for me is fixed):

choose first menu point, wait till it loaded and then select "foto öffnen"


Opening Image from local storage force closes

Posted: Thu Nov 07, 2013 2:30 pm
by Maryna Brodina

Ok, thank you for update. Glad it's working!