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.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -