Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

File dialog to select an image?
Started by benlebt Nov 14 2010 02:08 AM

2 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

benlebt

[GLOBAL: userInfoPane.html]
benlebt
  • Enthusiast

  • 48 posts
  • Guests

Hi,

is there any method in Corona SDK for opening a file selector so that the user can choose a file from his iphone memory / android sd-card? Or would I have to write kind of a small file explorer for that with list-views and stuff?

The purpose is that the user should be able to select a photo to use in the app.
uid: 11219 topic_id: 3631 reply_id: 303631


[TOPIC: post.html]
#2

JayantV

[GLOBAL: userInfoPane.html]
JayantV
  • Corona Geek

  • 1,740 posts
  • Corona SDK

On the iOS, you have the imagePicker, now I need to check if Corona has access to that functionality. Generally if you do not have a camera, like on the earlier iPods, it would open up the Photo Album.

I am unsure of how it works on the Android (as of now)

cheers,

Jayant C Varma
uid: 3826 topic_id: 3631 reply_id: 11061


[TOPIC: post.html]
#3

benlebt

[GLOBAL: userInfoPane.html]
benlebt
  • Enthusiast

  • 48 posts
  • Guests

Thanks Jayantv,

today I found the method media.show() which seems to be what I'm looking for but obviously doesn't work on Android.
In the simulator I can select an image with params media.PhotoLibrary or media.savedPhotosAlbum, but on my Android device and the AVD simulator the screen stays black and nothing happens.
uid: 11219 topic_id: 3631 reply_id: 11081



[topic_controls]
[/topic_controls]