Gabriele Russo

unread,
Feb 3, 2017, 4:41:08 AM2/3/17
to MIT App Inventor Forum
Hi all,
I am terrificly new in Ai2, which I would like to practice for fun, coming from old experiences in old programming languages (Fortran, DBIIIplus, Visual Basic).
As my very first app does not work when it calls camera for acquisition of a background image in a Canvas, what'wrong?
This is the relevant block (it is a joking app to play with the running mood of the user):

The result is "Error 201: The camera does not return an image".
Browser is running under Windows 10, tests are on an Android 6 phone (but it does not work also on an Android 2 one).
I please you to give my soul (and my sleeeping) peace.
Thanks.

Taifun

unread,
Feb 3, 2017, 8:40:56 AM2/3/17
to MIT App Inventor Forum
to set the taken image to the camera component itself does not make much sense...

see also 

Taifun

Gabriele Russo

unread,
Feb 3, 2017, 9:18:45 AM2/3/17
to MIT App Inventor Forum
Kindly be patient with my ignorance.
I read the link you suggested and (I thought) I was inspired by, but even re-ordering blocks as below, the result is still:
Error 201: the camera did not return an image

I suspected the Camera functionalities in Ai2 were not fully ready for Android 6, so I tested on the Android 5 cell of my wife: same result.
Thanks again. 

Gabriele Russo

unread,
Feb 3, 2017, 9:38:29 AM2/3/17
to MIT App Inventor Forum
It sounds as there was a problem in calling camera services.
The app gives the choice:
- to reset the image with a question-mark-picture or
- to pick an image from the cell.
Even if I disable the block that place directly the realtime camera picture into the canvas (down right), the ImagePicker1 block (down left) does not find in the sdCard the acquisition required by the TakePicture command. 
It seems the camera does not obeyes the app.
What's my mistake?
Always thanks.


Taifun

unread,
Feb 3, 2017, 11:50:29 AM2/3/17
to MIT App Inventor Forum
after calling TakePicture your camera app opens, then press the button to take an image, then click ok to go back to your app

are you able to take a picutre using the snippet?

Taifun

Gabriele Russo

unread,
Feb 3, 2017, 12:33:10 PM2/3/17
to MIT App Inventor Forum
after calling TakePicture your camera app opens, then press the button to take an image, then click ok to go back to your app

What exactly the app does. But after the click, if I press the "save" (or thick) button the control is again to the app but with the mentioned result (Error 201:...). Afterwards, the app is already running, but the canvassed image result unchanged.

are you able to take a picutre using the snippet?

I am missing something: all the images I posted until now on this thread are from a snipping tool. I am afraid I do not catch what you are suggesting.
Regards.

Taifun

unread,
Feb 3, 2017, 12:43:43 PM2/3/17
to MIT App Inventor Forum
if you follow this link
you will find a project you could download to your computer and upload to App Inventor to try

Taifun

Taifun

unread,
Feb 3, 2017, 12:48:41 PM2/3/17
to MIT App Inventor Forum
after doing a search in the forum like this https://groups.google.com/forum/#!searchin/mitappinventortest/camera$20201%7Csort:date there seem to be some devices, which have issues


Taifun

Gabriele Russo

unread,
Feb 3, 2017, 1:05:19 PM2/3/17
to MIT App Inventor Forum
Dear Taifun, 
Downloaded the .aia, tested immediately by Ai Companion, the same issue as my app.
Error 201...
I am so sorry to bother...but the error in subject is abortive for my play.

PS: In the while, I received from you another post with some sGoogling. All the post inside were read before to send SOS.
Apparently, there is not solution, for the time being. 
It's a pity...

Abraham Getzler

unread,
Feb 3, 2017, 4:39:24 PM2/3/17
to MIT App Inventor Forum
Does your canvas have a nonblank background color?
That might block the background image from showing.
(Haven't tried this.)
ABG

Abraham Getzler

unread,
Feb 3, 2017, 4:42:14 PM2/3/17
to MIT App Inventor Forum
Nope, sorry, that's not it.
ABG

Parag Ovalekar

unread,
Feb 5, 2017, 4:33:21 AM2/5/17
to MIT App Inventor Forum
Hi All,

I am working on project PaintPot from tutorials. I'm facing the same issue as Mr. Gabriele. 
The sequence of event is, I click on Take Picture button, Camera opens, I click to take picture and then it asks me to 'SAVE' or "DISCARD' image. I click on 'SAVE' and the control returns to my PaintPot app with Error "Error 201: The camera does not return an image." This image is not displayed on canvas as expected.

When I checked my Andriod device(Version 4.4.2), I found that the image that I have clicked on camera is not saved.

Please let me know if any suggestion.

Thanks,
Parag Ovalekar


Gabriele Russo

unread,
Feb 5, 2017, 9:33:51 AM2/5/17
to MIT App Inventor Forum
I did not explain better what and how Parag did.
Confirm the camera does not save the taken picture under calling camera-click event, so it would seem the problems are in correct communication bet Ai2 app and the device when required to be a camera.
If (but I am not an expert at all) the camera fully worked when required to, it should complete its operations until the control is given back to the app, included really saving the image. Instead, it neither saves the image before to close out its works. 
I (again) do not know the internal operations, but it sounds as the Ai2 app interpheres with usual functioning of the device.
Humbly: could it be a bug?

Gabriele Russo

unread,
Feb 7, 2017, 4:05:37 AM2/7/17
to mitappinv...@googlegroups.com
Just for the record and summing up, the problem "Error 201..." occurred (as far as we know until now) on the following devices:
- Motorola Moto E (Android 6), mine.
- Samsung Galaxy 4 (Android 5), my wife one.
- The Parag's Android device (Version 4.4.2).
- Coolpad F1 (8297W), with Android version of 4.2.2 (old post).
- Google Nexus 5: Android 5.0.1 (old post).
- Samsung  Tab S: Android 4.4.2 (old post).
- Samsung S3 Android 4.4.2 kitkat (old post).

Kindly, is there by chance anyone working on, or it is better to give up relying on camera features in Ai2 app's?
Thanks.

Leonardo Mazziotti

unread,
Feb 7, 2017, 10:07:48 AM2/7/17
to MIT App Inventor Forum
LG L7 Sucede lo mismo.

Saludos
Reply all
Reply to author
Forward
0 new messages