java - How do I make my custom camera app the default one? -
if use following code:
intent takepictureintent = new intent(mediastore.action_image_capture); startactivityforresult(takepictureintent,1);
it start default android camera app right... i've written custom camera app, how let android know it's camera app, , user should given choice camera app use.
in other words, if used code above, my app should start, , not default android one.
but how let android know it's camera app, , user should given chose camera app use.
have <intent-filter>
on <activity>
action:
<intent-filter> <action android:name="android.media.action.image_capture" /> <category android:name="android.intent.category.default" /> </intent-filter>
the next time executes above startactivityforresult()
call, appear in chooser alongside else supports intent
structure.