I managed to register my app as camera app via
<activity android:name=".CameraActivity" android:clearTaskOnLaunch="true">
<intent-filter>
<action android:name="android.media.action.IMAGE_CAPTURE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
Now, I would like to know whether my app was startet as intent or directly by the user, so I can react accordingly:
- returning an image via setResult (in case of returning to the previous app)
- saving the image to disk (in those cases where no previous app is involved)
Anyone knows how to get this information?