Android
Sathish.R
Agenda
Android

Introduction
Introduction about
IDE?
Setting Up
Environment.
First Application
Button And Toast
Appli...
Agenda
Android

Introduction
Introduction about
IDE?
Setting Up
Environment.
First Application
Button And Toast
Appli...
Introduction: Android
o

Operating system based on Linux.

o

Open Source by Search Giant.

o

Apps typically written in J...
History of Android
o

Android was the brainchild of Andy Rubin and Rich Miner.
(Android Inc.)

o

Google acquired Android ...
Android Evolution

o
o
o
o
o
o
o
o
o

Android 1.1 -1.5
Android 1.6
Android 2.0-2.1
Android 2.2.x
Android 2.3.x
Android 3.x...
Android Features
o
o
o
o
o
o
o
o

Application Framework
Dalvik Virtual Machine
Integrated Browser
2D and 3D graphics using...
Agenda
Android Introduction
Introduction about
IDE?
Setting Up
Environment.
First Application
Button And Toast
Applic...
IDE: (Integrated Development
Environment)
o

o
o

Programming Environment that consists of
 A Code Editor,
 A compiler,
...
Agenda
Android Introduction
Introduction about
IDE?
Setting Up
Environment.
First Application
Button And Toast
Applic...
Android Development Tools
o
o
o
o
o

Java JDK.
Eclipse or Net Beans.
ADT (Android Development Tools) .
Android SDK 1.0-4.0...
Download JDK

Tenet Technetronics
Tenet Technetronics
Download Android SDK

Tenet Technetronics
Tenet Technetronics
Download Eclipse IDE

Tenet Technetronics
Install ADT Plugin

Eclipse – Help – Install New software

Tenet Technetronics
Entering SDK Path
Windows ->
Preferences.
Select Android and
enter the
installation path of
the Android SDK.

Tenet Techne...
Select Window -> Android SDK Manager from the menu.

Tenet Technetronics
Creating Android Virtual Device
Select Window -> Android AVD Manager from the menu.

Tenet Technetronics
Create Android Virtual Device

Tenet Technetronics
Tenet Technetronics
Android Emulator(AVD)

Tenet Technetronics
Agenda
Android Introduction
Introduction about
IDE?
Setting Up
Environment.
First Application
Button And Toast
Applic...
Tenet Technetronics
Tenet Technetronics
Android Framework

Tenet Technetronics
Application Building Blocks
o
o
o

Activity
Intent Receiver
Content Provider

Tenet Technetronics
Application Lifecycle




Application run in their own processes (VM, PID).
Processes are started and stopped as needed...
Android Devices

Tenet Technetronics
Agenda
Android Introduction
Introduction about
IDE?
Setting Up
Environment.
First Application
Button And Toast
Applic...
Buttons
o
o

Represents a push-button widget.
can be pressed, or clicked to perform an action.

Tenet Technetronics
Toast Messages:
o
o

A small popup.
It only fills the amount of space required for the
message and the current activity re...
Agenda
Android Introduction
Introduction about
IDE?
Setting Up
Environment.
First Application
Button And Toast
Applic...
Bluetooth
o
o
o

wirelessly exchange data with other Bluetooth
devices.
 access to the Bluetooth functionality APIs.
Using...
Bluetooth
The four major tasks necessary to communicate using
Bluetooth:
osetting up Bluetooth
ofinding devices that are e...
To Create Bluetooth Connection
We need the following:
Bluetooth adapter.
Bluetooth device.
Bluetooth socket.
Bluetooth...
Permissions
o
o
o

you must declare the Bluetooth
permission BLUETOOTH. 
If We discover Bluetooth devices or pair a device...
Setting up Bluetooth
o

Verify device that Bluetooth is supported or not.

o

If supported enable Bluetooth as follows

Te...
Setting up Bluetooth
o

Request to switch on the Bluetooth

o

Find Bluetooth Devices.
find remote Bluetooth devices eithe...
Find Bluetooth Device
Querying Paired Devices
o We can get paired devices by
getBondedDevices().
This method will return a...
Connecting Devices
o
o
o
o
o

Android(Client)-Robot(Server)
Server’s MAC address to initiate
connection.
Initiate connecti...
Connecting a Device:

Tenet Technetronics
Conclusion
o
o
o
o

Android is open to all: industry, developers and
users.
Participating in many of the successful open
s...
Tenet Technetronics
Upcoming SlideShare
Loading in...5
×

Android bluetooth robot

1,981

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,981
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
234
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • {}
  • Android bluetooth robot

    1. 1. Android Sathish.R
    2. 2. Agenda Android Introduction Introduction about IDE? Setting Up Environment. First Application Button And Toast Application Bluetooth Applications Android Tenet Technetronics
    3. 3. Agenda Android Introduction Introduction about IDE? Setting Up Environment. First Application Button And Toast Application Bluetooth Applications Android Tenet Technetronics
    4. 4. Introduction: Android o Operating system based on Linux. o Open Source by Search Giant. o Apps typically written in Java. o Apps run on the Dalvik Virtual Machine(DVM). o November 2007, Open Handset Alliance formed to develop open standards for mobile devices. Tenet Technetronics
    5. 5. History of Android o Android was the brainchild of Andy Rubin and Rich Miner. (Android Inc.) o Google acquired Android Inc. on August 17, 2005. o Android was unveiled as its first product, a mobile device platform built on the Linux kernel version 2.6, On November, 2007 Tenet Technetronics
    6. 6. Android Evolution o o o o o o o o o Android 1.1 -1.5 Android 1.6 Android 2.0-2.1 Android 2.2.x Android 2.3.x Android 3.x Android 4.0.x Android 4.1.x-4.3.x Android 4.4  Cupcake  Donut  Eclair  Froyo  GingerBread  Honeycomb  Ice Cream Sandwich  Jelly Bean  Kitkat Tenet Technetronics
    7. 7. Android Features o o o o o o o o Application Framework Dalvik Virtual Machine Integrated Browser 2D and 3D graphics using the OpenGL libraries. SQLite Database. Video and Audio Codecs. Bluetooth, EDGE,3G,4G and Wi-Fi . Camera , GPS , Compass, and accelerometer. Tenet Technetronics
    8. 8. Agenda Android Introduction Introduction about IDE? Setting Up Environment. First Application Button And Toast Application Bluetooth Applications Tenet Technetronics Android
    9. 9. IDE: (Integrated Development Environment) o o o Programming Environment that consists of  A Code Editor,  A compiler,  A Debugger,  A GUI builder. User-Friendly Framework. Example: Eclipse, Net beans, Android Studio, Processing, Xamarin Studio, etc., Tenet Technetronics
    10. 10. Agenda Android Introduction Introduction about IDE? Setting Up Environment. First Application Button And Toast Application Bluetooth Applications Android Tenet Technetronics
    11. 11. Android Development Tools o o o o o Java JDK. Eclipse or Net Beans. ADT (Android Development Tools) . Android SDK 1.0-4.0(Download from developer.android.com). Programming Languages. o Java – officially supported. o C/C++ – also possible but not supported. Tenet Technetronics
    12. 12. Download JDK Tenet Technetronics
    13. 13. Tenet Technetronics
    14. 14. Download Android SDK Tenet Technetronics
    15. 15. Tenet Technetronics
    16. 16. Download Eclipse IDE Tenet Technetronics
    17. 17. Install ADT Plugin Eclipse – Help – Install New software Tenet Technetronics
    18. 18. Entering SDK Path Windows -> Preferences. Select Android and enter the installation path of the Android SDK. Tenet Technetronics
    19. 19. Select Window -> Android SDK Manager from the menu. Tenet Technetronics
    20. 20. Creating Android Virtual Device Select Window -> Android AVD Manager from the menu. Tenet Technetronics
    21. 21. Create Android Virtual Device Tenet Technetronics
    22. 22. Tenet Technetronics
    23. 23. Android Emulator(AVD) Tenet Technetronics
    24. 24. Agenda Android Introduction Introduction about IDE? Setting Up Environment. First Application Button And Toast Application Bluetooth Applications Android Tenet Technetronics
    25. 25. Tenet Technetronics
    26. 26. Tenet Technetronics
    27. 27. Android Framework Tenet Technetronics
    28. 28. Application Building Blocks o o o Activity Intent Receiver Content Provider Tenet Technetronics
    29. 29. Application Lifecycle    Application run in their own processes (VM, PID). Processes are started and stopped as needed to run an application's components. Processes may be killed to reclaim resources. Tenet Technetronics
    30. 30. Android Devices Tenet Technetronics
    31. 31. Agenda Android Introduction Introduction about IDE? Setting Up Environment. First Application Button And Toast Application Bluetooth Applications Android Tenet Technetronics
    32. 32. Buttons o o Represents a push-button widget. can be pressed, or clicked to perform an action. Tenet Technetronics
    33. 33. Toast Messages: o o A small popup. It only fills the amount of space required for the message and the current activity remains visible and interactive. Tenet Technetronics
    34. 34. Agenda Android Introduction Introduction about IDE? Setting Up Environment. First Application Button And Toast Application Bluetooth Applications Android Tenet Technetronics
    35. 35. Bluetooth o o o wirelessly exchange data with other Bluetooth devices.  access to the Bluetooth functionality APIs. Using the Bluetooth APIs, We can perform the following:      Scan for other Bluetooth devices Query the local Bluetooth adapter for paired Bluetooth devices Establish RFCOMM channels Connect to other devices through service discovery Tenet Technetronics Transfer data to and from other devices.
    36. 36. Bluetooth The four major tasks necessary to communicate using Bluetooth: osetting up Bluetooth ofinding devices that are either paired or available in the local area, oconnecting devices o transferring data between devices. All of the Bluetooth APIs are available in the android.bluetooth package.  Tenet Technetronics
    37. 37. To Create Bluetooth Connection We need the following: Bluetooth adapter. Bluetooth device. Bluetooth socket. Bluetooth Server Socket. Tenet Technetronics
    38. 38. Permissions o o o you must declare the Bluetooth permission BLUETOOTH.  If We discover Bluetooth devices or pair a device we must use Bluetooth Admin permission.  Most applications need this permission solely for the ability to discover local Bluetooth devices. Tenet Technetronics
    39. 39. Setting up Bluetooth o Verify device that Bluetooth is supported or not. o If supported enable Bluetooth as follows Tenet Technetronics
    40. 40. Setting up Bluetooth o Request to switch on the Bluetooth o Find Bluetooth Devices. find remote Bluetooth devices either through device discovery or by querying the list of paired (bonded) devices. Tenet Technetronics
    41. 41. Find Bluetooth Device Querying Paired Devices o We can get paired devices by getBondedDevices(). This method will return all the paired devices. o Tenet Technetronics
    42. 42. Connecting Devices o o o o o Android(Client)-Robot(Server) Server’s MAC address to initiate connection. Initiate connection by calling connect() method. Get Output stream() of the device. Write using the method write(byte[]). Tenet Technetronics
    43. 43. Connecting a Device: Tenet Technetronics
    44. 44. Conclusion o o o o Android is open to all: industry, developers and users. Participating in many of the successful open source projects. Aims to be as easy to build for as the web. Google Android is stepping into the next level of Mobile Internet. Tenet Technetronics
    45. 45. Tenet Technetronics
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×