Android : Use camera but dont want to take photo

on Wednesday, July 30, 2014


I want to use camera in my app but dont want to take photo, actually I am making a app i.e transparent screen, in this I want to show transparent wallpaper i.e I have to start camera for this and i dont want to take images for this


I tried all these codes but have n't got the desirable results. Can anyone suggest what must i do? used this permission in all cases



<uses-permission android:name="android.permission.CAMERA"/>



Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivity(intent);





Intent intent = new Intent(Intent.ACTION_CAMERA_BUTTON, null);
startActivity(intent);





Intent intent = new Intent(android.provider.MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA);
startActivity(intent);

0 comments:

Post a Comment