Take picture, save it and label it

459 views
Skip to first unread message

ido marko

unread,
Oct 7, 2014, 2:38:55 PM10/7/14
to mitappinv...@googlegroups.com
Hey guys.

I need help with one of my apps. I want to make an app that you can take a photo throught the app and then it will label the app and save it. for example:
I took a photo, this photo will be "number 1" and the next time I enter the app I can see this photo, and if I took more photos so it will label them as well - number 2, number 3, etc.
Plus, how do I make a button the onced pressed it will call a cetrien number?

Thanks,

Ido

Enis

unread,
Oct 7, 2014, 6:44:42 PM10/7/14
to mitappinv...@googlegroups.com
When you take a picture with the camera, it's first saved in the camera's gallery, with it's default name.  Yo can then set that image as the background image of a canvas, and save the canvas as whatever you'd like.  The picture in the gallery will still be saved there, so you'll end up with two photos.

ido marko

unread,
Oct 8, 2014, 5:49:50 AM10/8/14
to mitappinv...@googlegroups.com
I don't think I explained myself well. I need to create an app that my user can take a picture throught my app and then it will be saved in his gallery

Enis

unread,
Oct 8, 2014, 9:13:50 AM10/8/14
to mitappinv...@googlegroups.com
Yes, you explained yourself just fine.

The camera, when it takes a picture, saves it to the gallery with the default naming convention of the device.  So, the file is named as it's taken, and you have no control over that.  The only way to give it a DIFFERENT name is to load it into a canvas, and save the canvas.

ido marko

unread,
Oct 9, 2014, 4:08:52 AM10/9/14
to mitappinv...@googlegroups.com
Well, I tried to using the Camara but it didn't save anything. It just took the picture.

ido marko

unread,
Oct 19, 2014, 1:55:27 PM10/19/14
to mitappinv...@googlegroups.com
Any thought of how to slove it?

Taifun

unread,
Oct 19, 2014, 5:28:22 PM10/19/14
to mitappinv...@googlegroups.com
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.         

ido marko

unread,
Oct 20, 2014, 12:12:34 PM10/20/14
to mitappinv...@googlegroups.com
The lable.visible is meant to make the user know that the picture was taken succefully. What should I do to save the picture in the gallery?
ללא שם.bmp

Taifun

unread,
Oct 20, 2014, 1:58:10 PM10/20/14
to mitappinv...@googlegroups.com
the picture is saved automatically in the gallery
to see the path to the image, you might want to display the path in the label like this:
LabelPicture.Text = get image

btw, it helps to do the tutorials to learn the basics of App Inventor...
Taifun

PS: please use png or jpg format for screenshots next time. Thank you.

ido marko

unread,
Nov 5, 2014, 3:53:47 PM11/5/14
to mitappinv...@googlegroups.com
But that's what I'm saying, it doesn't show the picture in the gallery! It shows me this path: file://storage/emulated/0/picture/app_inento......jpg

But I can't actully view it in the gallery

Taifun

unread,
Nov 5, 2014, 4:11:26 PM11/5/14
to mitappinv...@googlegroups.com
try to reboot your device and check again
Taifun
Reply all
Reply to author
Forward
0 new messages