[Resolved] Problems saving/loading photos from album on android

Hi,

im trying to compile my working application from IOS to android, but it doesnot work propertly, when im trying to save or load my photos from my phone the appication seems to “reboot” and start again, dunno why.

Im trying to run the media->camera application from demos directory at the simulator but it doesnot work too, its do the same, seems like the android “reboot” the application, ¿what im doing wrong?¿why that demo didnt work on my android?

android version: 4.0.4
mobile: samsung galaxy s2
java: se6
SO: Win7 [import]uid: 185275 topic_id: 32632 reply_id: 332632[/import]

I have that same phone, and i confirm it. Media ->camera application seems to launch the camera, it takes the photo but it crashs the app when the app came back…
The background stay landscape and it doesnt show any photo. Strange… [import]uid: 113117 topic_id: 32632 reply_id: 130620[/import]

yes, i already try with latest build but didnt work.

why your media->camera demo didnt work?

Android: 4.0.4
SO: w7 x64
Java: jre6
corona: CoronaSDK-2012.964.msi 11/11/2012 [import]uid: 185275 topic_id: 32632 reply_id: 130623[/import]

Dont know, it doesn’t show the image and the app looks likes to reboot. Can anyone of the team check it out? [import]uid: 113117 topic_id: 32632 reply_id: 130624[/import]

I have that same phone, and i confirm it. Media ->camera application seems to launch the camera, it takes the photo but it crashs the app when the app came back…
The background stay landscape and it doesnt show any photo. Strange… [import]uid: 113117 topic_id: 32632 reply_id: 130620[/import]

yes, i already try with latest build but didnt work.

why your media->camera demo didnt work?

Android: 4.0.4
SO: w7 x64
Java: jre6
corona: CoronaSDK-2012.964.msi 11/11/2012 [import]uid: 185275 topic_id: 32632 reply_id: 130623[/import]

Dont know, it doesn’t show the image and the app looks likes to reboot. Can anyone of the team check it out? [import]uid: 113117 topic_id: 32632 reply_id: 130624[/import]

please, could someone from team check it ? [import]uid: 185275 topic_id: 32632 reply_id: 131044[/import]

please, could someone from team check it ? [import]uid: 185275 topic_id: 32632 reply_id: 131044[/import]

I think it is better you report a bug…on top bar. [import]uid: 113117 topic_id: 32632 reply_id: 131103[/import]

I think it is better you report a bug…on top bar. [import]uid: 113117 topic_id: 32632 reply_id: 131103[/import]

I just tried our sample app “Media/Camera” that is included with the Corona SDK (build #970) and it worked.

I tested it on the following devices:

  • Galaxy Nexus running Android 4.0.4
  • Kindle Fire HD running Android 4.0.3
  • Samsung Galaxy SII running Android 2.3.4
  • HTC Evo 4G running Android 2.2

If the device rebooted on you, then it sounds like the operating system crashed. That’s definitely not a Corona issue. Did you root your phone? Perhaps that is the cause of the OS crash.

Or perhaps the built-in camera app itself is crashing because you are out of space on external storage? You might want to double check that. In fact, I recommend that you try your device’s built-in camera app to see if it can take picture correctly as well.

okae, if you haven’t tried our Camera sample app, then I suggest you give it a try “as-is”. Note the build.settings file too, because it contains Android permissions that are very important to make camera functionality work.

Also, have a look at the Android log when running your app. You can do so by running the Android SDK tool “adb logcat” or “ddms”. This log may provide clues as to what exactly is going wrong. [import]uid: 32256 topic_id: 32632 reply_id: 131185[/import]

I just tried our sample app “Media/Camera” that is included with the Corona SDK (build #970) and it worked.

I tested it on the following devices:

  • Galaxy Nexus running Android 4.0.4
  • Kindle Fire HD running Android 4.0.3
  • Samsung Galaxy SII running Android 2.3.4
  • HTC Evo 4G running Android 2.2

If the device rebooted on you, then it sounds like the operating system crashed. That’s definitely not a Corona issue. Did you root your phone? Perhaps that is the cause of the OS crash.

Or perhaps the built-in camera app itself is crashing because you are out of space on external storage? You might want to double check that. In fact, I recommend that you try your device’s built-in camera app to see if it can take picture correctly as well.

okae, if you haven’t tried our Camera sample app, then I suggest you give it a try “as-is”. Note the build.settings file too, because it contains Android permissions that are very important to make camera functionality work.

Also, have a look at the Android log when running your app. You can do so by running the Android SDK tool “adb logcat” or “ddms”. This log may provide clues as to what exactly is going wrong. [import]uid: 32256 topic_id: 32632 reply_id: 131185[/import]

I have tested your camera sample app inSamsung Galaxy s2 with android 4.0.4 firmware bulp8
Not rooted and the app is not working at all.
to save a photo i have to deprecate the first shot , take a second one…and the image saved is the first shot.really strange.
i repeat samsumng galaxy s2 with 4.0.4…please check it out.

It looks like the fuction sessionComplete doesnt recieve the image.
When i launch the camera there are only two buttons in android, save or dismiss, save saves the image to the gallery and dismiss obviously dismiss the image…but the image from the camera is not shown into the app… It reboots the app.

[import]uid: 185275 topic_id: 32632 reply_id: 131395[/import]

I have tested your camera sample app inSamsung Galaxy s2 with android 4.0.4 firmware bulp8
Not rooted and the app is not working at all.
to save a photo i have to deprecate the first shot , take a second one…and the image saved is the first shot.really strange.
i repeat samsumng galaxy s2 with 4.0.4…please check it out.

It looks like the fuction sessionComplete doesnt recieve the image.
When i launch the camera there are only two buttons in android, save or dismiss, save saves the image to the gallery and dismiss obviously dismiss the image…but the image from the camera is not shown into the app… It reboots the app.

[import]uid: 185275 topic_id: 32632 reply_id: 131395[/import]

okae,

I just tried it again today. It’s working for me. I can’t reproduce this issue.

At this point, you are the only person who can isolate this issue. You need to look at the Android log on your device to see what’s going wrong. You can do so by running the Android SDK’s “adb logcat” or “ddms” tool. Look for any errors that might be coming up.

Also, I don’t know what you mean by the camera is “rebooting” the app. Can you explain please? Is it crashing? Or is your app receiving an “applicationStart” system event when returning from the camera? [import]uid: 32256 topic_id: 32632 reply_id: 131631[/import]

Can you tell me if you tried it under Samsung galaxy S2 under 4.0.4 android version?
Because i cant beleive that im the only one under this issue.

I repeat, media->camera application from your demo pack under this system didnt work:
-Samsung galaxy S2 4.0.4, firmware BULP8
-Windows 7 x64
-jdk-6u37-windows-i586.exe installed
-CoronaSDK 2012.971

check out my explanation about whats happend with your applications two post above under that system… [import]uid: 185275 topic_id: 32632 reply_id: 131636[/import]

Yes, so far, this issue is only happening to you and “noeguer” up above.
We know for a fact that we have customers using our camera API without issue on Android.

You need to look at the Android log on your device and post the results here.
Until then, we can’t help you further. Especially since none of our device can reproduce this issue. As they say, “help us help you”. [import]uid: 32256 topic_id: 32632 reply_id: 131647[/import]

okae,

I just tried it again today. It’s working for me. I can’t reproduce this issue.

At this point, you are the only person who can isolate this issue. You need to look at the Android log on your device to see what’s going wrong. You can do so by running the Android SDK’s “adb logcat” or “ddms” tool. Look for any errors that might be coming up.

Also, I don’t know what you mean by the camera is “rebooting” the app. Can you explain please? Is it crashing? Or is your app receiving an “applicationStart” system event when returning from the camera? [import]uid: 32256 topic_id: 32632 reply_id: 131631[/import]

Can you tell me if you tried it under Samsung galaxy S2 under 4.0.4 android version?
Because i cant beleive that im the only one under this issue.

I repeat, media->camera application from your demo pack under this system didnt work:
-Samsung galaxy S2 4.0.4, firmware BULP8
-Windows 7 x64
-jdk-6u37-windows-i586.exe installed
-CoronaSDK 2012.971

check out my explanation about whats happend with your applications two post above under that system… [import]uid: 185275 topic_id: 32632 reply_id: 131636[/import]