In my project i tried to implement camera action in onReceive method. While clicking on camera icon can we print log . i tried it in broadcast receiver. but i cant able to get the result.i attached my piece of code here.
public void onReceive(Context context, Intent intent) {
if (intent.getAction().equals(Intent.ACTION_CAMERA_BUTTON)) {
Log.e("cam0","cam");
//Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
//context.startService(cameraIntent);
// startActivity(cameraIntent, CAMERA_PIC_REQUEST);
}
}
is it possible to print log for that. Im cracking my head still i cant find the result. Looking for help in this situation. Thank you in advance.