[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

test[jx8Intents] Start image capture


SwikiCodeRobot @> 579

" Starting camera application to capture still image "
| intent context |
context := MainActivity current.
intent := Intent action: 'android.media.action.STILL_IMAGE_CAMERA'.
(intent resolveActivity: context packageManager) isNil ifTrue: [
	self error: 'Intent canīt be resolved'
].
context startActivity: intent.
^#Ok