Good luck with that one. I tried it for my camera app, used many suggestions that i found on this group, but to no avail.
The problem is that the broadcast is not ordered and can't be cancelled. Also, the determination of who gets the broadcast first (the stock camera or your own app) is not known. In my experience, sometimes my app was started, other times the stock-camera was started and sometimes even both were started at the same time causing a crash. On Aug 6, 5:01 pm, Manish Sharma <[email protected]> wrote: > Hi, > > I am trying to capture the camera button press event and get the image > in my app. > I have a broadcast receiver in my manifest with intent filter having > action as defined below: > > <receiver > android:name=".broadcastreceiver.CameraClickBroadcastReceiver"> > <intent-filter> > <action android:name="android.intent.action.CAMERA_BUTTON"/> > </intent-filter> > </receiver> > > but when the camera button is pressed in emulator, the > CameraClickBroadcastReceiver.onReceiver() method is not invoked. > In this method i am starting an activity which is the home activity of > my app. > Please suggest. > > Thanks in advance!! > Manish -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

