Timo Sehrbruch
Posts: 0
Joined: Thu May 09, 2013 7:41 pm

Opening Image from local storage force closes

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Opening Image from local storage force closes

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

Timo Sehrbruch
Posts: 0
Joined: Thu May 09, 2013 7:41 pm

Opening Image from local storage force closes

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!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Opening Image from local storage force closes

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)?

Timo Sehrbruch
Posts: 0
Joined: Thu May 09, 2013 7:41 pm

Opening Image from local storage force closes

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Opening Image from local storage force closes

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

Timo Sehrbruch
Posts: 0
Joined: Thu May 09, 2013 7:41 pm

Opening Image from local storage force closes

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"

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Opening Image from local storage force closes

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

Return to “Issues”