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]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en