183099/android-open-camera-from-button
How do I got about doing that? I know there is a function:
intent.setAction(MediaStore.ACTION_IMAGE_CAPTURE)
Do I need to use that? And how do I call the button from the xml file?
you can use the below syntax as it worked with me just fine
Camera=(Button)findViewById(R.id.CameraID); Camera.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Intent Intent3=new Intent(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA); startActivity(Intent3); } });
By using developer.andriod.com, one can solve this ...READ MORE
To open Google Play AND ONLY Google ...READ MORE
Hello, to open xlxs files, or files ...READ MORE
To open instagram app- String scheme = "http://instagram.com/_u/USER"; String path ...READ MORE
For this problem you should: Check whether the ...READ MORE
I'm trying to use the cameras LED ...READ MORE
According to the documentation, the Android kernel is ...READ MORE
I'm guessing either the TaskCanceledException instance is ...READ MORE
ry this: Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri ...READ MORE
Use FFMPEG for android U need to implement a ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.