I found an answer here:
http://groups.google.com/group/android-beginners/browse_frm/thread/b068dfe35ebbb5fe/030538a5c2147a97?lnk=gst&q=default+camera+pradeep#030538a5c2147a97

Put this in your manifest:
<receiver android:name=".MyReceiver">
  <intent-filter android:priority="10000">
    <action android:name="android.intent.action.CAMERA_BUTTON"/>
  </intent-filter>
</receiver>

The main element that makes it work, according to Pradeep, is the
'priority' attribute.
Also, putting abortBroadcast() helps, but i'm not sure about that. It
seems that the CAMERA_BUTTON broadcast is un-ordered.


On Mar 7, 7:45 am, Streets Of Boston <flyingdutc...@gmail.com> wrote:
> I am reviving this thread 
> again...http://groups.google.com/group/android-developers/browse_frm/thread/6...
>
> I have tried Marco's suggestion, but it doesn't work.
> It seems the broadcast is not ordered and canceling/aborting it has no
> effect. This causes for both my and the default camera app to be
> started up *at the same time*.
>
> Is there a way to register another 3rd party camera activity as the
> default or at
> least as an option for becoming the system's camera app when the
> dedicated
> 'camera key' is pressed?
>
> Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to