Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Attempting to load an image from the camera or pictures folder


This question is answered.


Permlink Replies: 2 - Last Post: Aug 3, 2016 8:57 AM Last Post By: canice pierre
canice pierre

Posts: 48
Registered: 9/27/12
Attempting to load an image from the camera or pictures folder  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 28, 2016 8:41 PM
Hi,

I have a database that I would like to load images into, taking the source from the pictures folder of the android device or the camera.
Opendialog isn't supported in android.
Jeff Overcash (...

Posts: 1,529
Registered: 9/23/99
Re: Attempting to load an image from the camera or pictures folder
Correct
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 29, 2016 11:12 AM   in response to: canice pierre in response to: canice pierre
canice pierre wrote:
Hi,

I have a database that I would like to load images into, taking the source from the pictures folder of the android device or the camera.
Opendialog isn't supported in android.

android does not have an open dialog natively so Emb did not roll their own. It
is fairly easy to do. Here is an example

http://stackoverflow.com/questions/30929489/open-file-manage-and-get-selected-file

unfortunately he didn't include the dfm (it is the bottom solution) but fairly
easy to do on your own.

You can also use a java implantation like at http://bluexmas.tistory.com/427
(needs translating I use Google Translate on that page) and the implementation
he used in his example no longer seems to be available but there are many out
there to use (ex http://www.scorchworks.com/MISC/SimpleFileDialog.java), process
would be the same.

--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
Learning is finding out what you already know. Doing is demonstrating that you
know it. Teaching is reminding others that they know it as well as you. We are
all leaners, doers, teachers. (R Bach)

canice pierre

Posts: 48
Registered: 9/27/12
Re: Attempting to load an image from the camera or pictures folder  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 3, 2016 8:57 AM   in response to: Jeff Overcash (... in response to: Jeff Overcash (...
Jeff Overcash (TeamB) wrote:
canice pierre wrote:
Hi,

I have a database that I would like to load images into, taking the source from the pictures folder of the android device or the camera.
Opendialog isn't supported in android.

android does not have an open dialog natively so Emb did not roll their own. It
is fairly easy to do. Here is an example

http://stackoverflow.com/questions/30929489/open-file-manage-and-get-selected-file

unfortunately he didn't include the dfm (it is the bottom solution) but fairly
easy to do on your own.

You can also use a java implantation like at http://bluexmas.tistory.com/427
(needs translating I use Google Translate on that page) and the implementation
he used in his example no longer seems to be available but there are many out
there to use (ex http://www.scorchworks.com/MISC/SimpleFileDialog.java), process
would be the same.

--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
Learning is finding out what you already know. Doing is demonstrating that you
know it. Teaching is reminding others that they know it as well as you. We are
all leaners, doers, teachers. (R Bach)

Thanks it worked.
I did see that it gives access to everything though.

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02