A simple search for "camera button" on this group yields this:

http://groups.google.com/group/android-beginners/browse_thread/thread/b068dfe35ebbb5fe/88f934107dd3ea95?lnk=gst&q=camera+button#88f934107dd3ea95

The camera button works by sending out a broadcast and so you need to set up
a receiver for that broadcast.

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


On Fri, Jan 15, 2010 at 9:49 AM, DulcetTone <[email protected]> wrote:

> How does one arrange to have his app be a candidate for launching from
> a press of the camera button?
>
> My one development phone lacks a camera button, and the emulator does
> not seem to have a working camera button.  The one phone I have heard
> reports from (Droid) indicates that my app fails to vie for the camera
> button when it is pressed.
>
> My handling of this is very analogous to my use of the Call button,
> which I know works nicely.
> I even asked for CAMERA permission, just in case.
>
> My AndroidManifest looks like so:
>
>        <activity android:name=".MyActivity"
>                  android:label="@string/app_name">
>            <intent-filter>
>                <action android:name="android.intent.action.MAIN" />
>                <category
> android:name="android.intent.category.LAUNCHER" />
>            </intent-filter>
>
>                <intent-filter>
>                        <action
> android:name="android.intent.action.CAMERA_BUTTON" />
>                <category
> android:name="android.intent.category.DEFAULT" />
>                </intent-filter>
>                <intent-filter>
>                        <action
> android:name="android.intent.action.CALL_BUTTON" />
>                <category
> android:name="android.intent.category.DEFAULT" />
>                </intent-filter>
>                <intent-filter>
>                        <action
> android:name="android.intent.action.MEDIA_BUTTON" />
>                <category
> android:name="android.intent.category.DEFAULT" />
>                </intent-filter>
>
>            <intent-filter>
>                <action
> android:name="android.intent.action.VOICE_COMMAND"/>
>                <category
> android:name="android.intent.category.DEFAULT" />
>            </intent-filter>
>        </activity>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> [email protected]<android-beginners%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to