marcus_vinicius
(Marcus Vinicius de Souza - Brasil - São Paulo)
September 6, 2021, 12:18pm
#1
GOOD MORNING, what command do I use to start the cell phone camera by the activity starter?
it is possible ?
can anybody help me ?
some commands like android.intent.action.PICK is correct.
but from the camera I’m not getting it.
Thank you very much.
Action: android.intent.action.MAIN
ActivityPackage: com.google.android.camera
ActivityClass: com.android.camera.Camera
1 Like
marcus_vinicius
(Marcus Vinicius de Souza - Brasil - São Paulo)
September 6, 2021, 12:40pm
#3
Thanks for the help, please, is this how I do it?
it is returning this error when I press the button.
Data package , data class ???
marcus_vinicius
(Marcus Vinicius de Souza - Brasil - São Paulo)
September 6, 2021, 12:46pm
#5
so ?
please
where am I going wrong?
[image]
You must set above said three things
Ref:-
Summary
Using the Activity Starter (App Inventor 2)
1 Like
marcus_vinicius
(Marcus Vinicius de Souza - Brasil - São Paulo)
September 6, 2021, 12:52pm
#7
I need to study a lot. just report me if the blocks are correct. please
if possible
Thanks a lot for the help.
marcus_vinicius
(Marcus Vinicius de Souza - Brasil - São Paulo)
September 6, 2021, 1:37pm
#9
Thank you very much, I will test it now. I’ll report you
tks tks
1 Like
marcus_vinicius
(Marcus Vinicius de Souza - Brasil - São Paulo)
September 6, 2021, 1:50pm
#11
I really appreciate the help, but I don’t know what’s going on. I even saw in the video you mentioned that it worked.
I am studying.
Anu10
(Anu)
September 6, 2021, 2:18pm
#12
Try this one
Action: android.media.action.IMAGE_CAPTURE
Source:- AI2 Inventor Forum News: Using the Activity Starter Component
2 Likes
marcus_vinicius
(Marcus Vinicius de Souza - Brasil - São Paulo)
September 6, 2021, 2:19pm
#13
of course, I will test it,
thank you again.
1 Like
dora_paz
(Dora)
September 6, 2021, 2:24pm
#14
The problem is that after activity is not working @Anu10 . Not getting any output, get result is an empty string
See also
2 Likes
marcus_vinicius
(Marcus Vinicius de Souza - Brasil - São Paulo)
September 6, 2021, 2:25pm
#15
unfortunately it didn’t work, tell me something please, which version of android are you using?
marcus_vinicius
(Marcus Vinicius de Souza - Brasil - São Paulo)
September 6, 2021, 2:28pm
#17
OK, is starting to work, thank you very much for your attention, thank you deeply. I’m checking the codes and I’m already reporting to you.
[image]
dora_paz
(Dora)
September 6, 2021, 2:30pm
#18
It opens the camera but you won’t be able to get a result after activity as mentioned above. Is there a specific reason that you want to use activity starter instead of camera component?
2 Likes
Anu10
(Anu)
September 6, 2021, 2:32pm
#20
Thanks @dora_paz I was not knowing about this
I just checked it returns empty string.
3 Likes
dora_paz
(Dora)
September 6, 2021, 2:34pm
#21
@Still-learning this won’t work either see (image taken from Pura Vida Apps )
2 Likes
Ohhh. i didnt notice that… withdrawing the web… sorry to one and all…
2 Likes