X

Download Android Introduction PowerPoint Presentation

SlidesFinder-Advertising-Design.jpg

Login   OR  Register
X


Iframe embed code :



Presentation url :

Home / Science & Technology / Science & Technology Presentations / Android Introduction PowerPoint Presentation

Android Introduction PowerPoint Presentation

Ppt Presentation Embed Code   Zoom Ppt Presentation

PowerPoint is the world's most popular presentation software which can let you create professional Android Introduction powerpoint presentation easily and in no time. This helps you give your presentation on Android Introduction in a conference, a school lecture, a business proposal, in a webinar and business and professional representations.

The uploader spent his/her valuable time to create this Android Introduction powerpoint presentation slides, to share his/her useful content with the world. This ppt presentation uploaded by onlinesearch in Science & Technology ppt presentation category is available for free download,and can be used according to your industries like finance, marketing, education, health and many more.

About This Presentation

Android Introduction Presentation Transcript

Slide 1 - @2011 Mihail L. Sichitiu 1 Android Introduction Camera Many thanks to Jun Bum Lim for his help with this tutorial.
Slide 2 - @2010 Mihail L. Sichitiu 2 Goal Create an application that launches the built-in Camera and use the results for displaying the captured image.
Slide 3 - Layout Make a LinearLayout with a TextView, a Button, and an ImageView Create a handler for the OnClick event of the Button @2010 Mihail L. Sichitiu 3
Slide 4 - @2010 Mihail L. Sichitiu 4 Launch Camera Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); Creating an Intent, as follows, within your button click handler: startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST);   Launch camera activity with asking result: private static final int CAMERA_PIC_REQUEST = 1;  define within your application as the request code returned by the Camera image capture Intent
Slide 5 - Handling result from Camera @2010 Mihail L. Sichitiu 5 protected void onActivityResult(int requestCode, int resultCode, Intent data) {       if (requestCode == CAMERA_PIC_REQUEST) { // display image            Bitmap thumbnail = (Bitmap) data.getExtras().get("data"); ImageView imageTakePic = (ImageView) findViewById(R.id.imageViewPhone); imageTakePic.setImageBitmap(thumbnail);     }   }  By adding onActivityResult() in your Activity:
Slide 6 - Enforcing Device Requirement @2010 Mihail L. Sichitiu 6 : : Application wants a camera It is not enforced by Android