Start camera via activity starter

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

image
image

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 ???

image

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

I need to study a lot. just report me if the blocks are correct. please
if possible
Thanks a lot for the help.

Try this :point_down:

  • Action: android.intent.action.MAIN

  • ActivityPackage: com.android.camera

  • ActivityClass: com.android.camera.Camera

This works for me :slightly_smiling_face:

image

1 Like

Thank you very much, I will test it now. I’ll report you
tks tks

1 Like


image

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.

Try this one :nerd_face: :point_down:

  • Action: android.media.action.IMAGE_CAPTURE

Source:- AI2 Inventor Forum News: Using the Activity Starter Component

2 Likes

of course, I will test it,
thank you again.

1 Like

The problem is that after activity is not working @Anu10. Not getting any output, get result is an empty string

See also

2 Likes

unfortunately it didn’t work, tell me something please, which version of android are you using?

image

Android 10

1 Like

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]

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

Thanks @dora_paz I was not knowing about this :slightly_smiling_face:

I just checked it returns empty string.

3 Likes

@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