1 / 13

Camera Tutorial With Example In Android Studio

In Android, Camera is a hardware device that allows capturing pictures and videos in your applications. Follow this tutorial to easily understand how to use a camera in your own Android App. Please click the link...https://abhiandroid.com/programming/camera

Tanu
Télécharger la présentation

Camera Tutorial With Example In Android Studio

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Android Tutorial Android tutorial or android development tutorial covers basic and advanced concepts of android technology. Our android tutorial is developed for beginners and professionals. Android is a complete set of software for mobile devices such as tablet computers, notebooks, smartphones, electronic book readers, set-top boxes etc. It contains a linux-based Operating System, middleware and key mobile applications. It can be thought of as a mobile operating system. But it is not limited to mobile only. It is currently used in various devices such as mobiles, tablets, televisions etc.

  2. What is Android It is developed by Google and later the OHA (Open Handset Alliance). Java language is mainly used to write the android code even though other languages can be used. The goal of android project is to create a successful real-world product that improves the mobile experience for end users. There are many code names of android such as Lollipop, Kitkat, Jelly Bean, Ice cream Sandwich, Froyo, Eclair, Donut etc which is covered in next page.

  3. Features of Android ★ It is open-source. ★ Anyone can customize the Android Platform. ★ There are a lot of mobile applications that can be chosen by the consumer. ★ It provides many interesting features like weather details, opening screen, live RSS (Really Simple Syndication) feeds etc. ★ It provides support for messaging services(SMS and MMS), web browser, storage (SQLite), connectivity (GSM, CDMA, Bluetooth, Wi-Fi etc.), media, handset layout etc.

  4. History of Android ★ Initially, Andy Rubin founded Android Incorporation in Palo Alto, California, United States in October, 2003. ★ In 17th August 2005, Google acquired android Incorporation. Since then, it is in the subsidiary of Google Incorporation. ★ The key employees of Android Incorporation are Andy Rubin, Rich Miner, Chris White and Nick Sears. ★ Originally intended for camera but shifted to smart phones later because of low market for camera only. ★ Android is the nickname of Andy Rubin given by coworkers because of his love to robots. ★ In 2007, Google announces the development of android OS.

  5. Android Versions, Codename and API Table 1 Version Version Code name Code name API Level API Level 1.5 Cupcake 3 1.6 Donut 4 2.1 Eclair 7 2.2 Froyo 8 2.3 Gingerbread 9 and 10 3.1 and 3.3 Honeycomb 12 and 13

  6. Android Versions, Codename and API Table 2 4.0 Ice Cream Sandwich 15 4.1, 4.2 and 4.3 Jelly Bean 16, 17 and 18 4.4 KitKat 19 5.0 Lollipop 21 6.0 Marshmallow 23 7.0 Nougat 24-25 8.0 Oreo 26-27 9 Pie 28

  7. Android Camera Tutorial Camera is mainly used to capture picture and video. We can control the camera by using methods of camera api. Android provides the facility to work on camera by 2 ways: ❖ By Camera Intent ❖ By Camera API

  8. Basic classes of Camera Intent and API Part 1 There are mainly four classes that we are going to discuss. Intent Intent By the help of 2 constants of MediaStore class, we can capture picture and video without using the instance of Camera class. ACTION_IMAGE_CAPTURE ACTION_VIDEO_CAPTURE

  9. Basic classes of Camera Intent and API Part 2... Camera Camera It is main class of camera api, that can be used to take picture and video. SurfaceView SurfaceView It represents a surface view ore preview of live camera. MediaRecorder MediaRecorder It is used to record video using camera. It can also be used to record audio files as we have seen in the previous example of media framework.

  10. Android camera app example by camera intent In this Camera in Android example, I will show you how to capture the image from device camera using Intent and store that camera image in the local database and display a toast when an image is stored successfully or when some error occurred while storing an image. Step 1: Step 1: Create a new project in Android Studio and name it CameraCodeExample Step 2: Step 2: Open res -> layout -> xml or (activity_main.xml) and add following code

  11. Here I have used frame layout to load my fragments. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <FrameLayout android:id="@+id/frameLayout" android:layout_width="match_parent" android:layout_height="match_parent"/> </RelativeLayout>

  12. Below you can download code, see final output and step by step explanation of example: Follow this tutorial to easily understand how to use a camera in your own Android App. Download Camera Example In Android Code

More Related