- Android - Intents/Filters
- Android - Fragments
- Android - Content Providers
- Android - Broadcast Receivers
- Android - Services
- Android - Activities
- Android - Resources
- Android - Hello World Example
- Android - Application Components
- Android - Architecture
- Android - Environment Setup
- Android - Overview
- Android - Home
Android - User Interface
- Android - Custom Components
- Android - Styles and Themes
- Android - Event Handling
- Android - UI Controls
- Android - UI Layouts
Android Advanced Concepts
- Publishing Android Application
- Android - Phone Calls
- Android - Sending SMS
- Android - Sending Email
- Location Based Services
- Android - Notifications
- Android - Drag and Drop
Android Useful Examples
- Android - XML Parsers
- Android - Widgets
- Android - Wi-Fi
- Android - WebView Layout
- Android - UI Testing
- Android - UI Patterns
- Android - UI Design
- Android - Twitter Integration
- Android - TextureView
- Android - Text to Speech
- Android - Testing
- Android - Support Library
- Android - SQLite Database
- Android - Spelling Checker
- Android - SIP Protocol
- Android - Shared Preferences
- Android - Session Management
- Android - Sensors
- Android - SDK Manager
- Android - Screen Cast
- Android - RSS Reader
- Android - RenderScript
- Android - Push Notification
- Android - ProgressBar
- Android - Progress Circle
- Android - PHP/MySQL
- Android - NFC Guide
- Android - Network Connection
- Android - Navigation
- Android - Multitouch
- Android - MediaPlayer
- Android - Login Screen
- Android - Localization
- Android - Loading Spinner
- Android - Linkedin Integration
- Android - JSON Parser
- Android - JetPlayer
- Android - Internal Storage
- Android - ImageSwitcher
- Android - Image Effects
- Android - Google Maps
- Android - Gestures
- Android - Facebook Integration
- Android - Emulator
- Android - Developer Tools
- Android - Data Backup
- Android - Custom Fonts
- Android - Clipboard
- Android - Camera
- Android - Bluetooth
- Android - Best Practices
- Android - Auto Complete
- Android - AudioManager
- Android - Audio Capture
- Android - Animations
- Android - Alert Dialoges
Android Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Android - Developer Tools
The android developer tools let you create interactive and powerful apppcation for android platform. The tools can be generally categorized into two types.
SDK tools
Platform tools
SDK tools
SDK tools are generally platform independent and are required no matter which android platform you are working on. When you install the Android SDK into your system, these tools get automatically installed. The pst of SDK tools has been given below −
Sr.No | Tool & description |
---|---|
1 |
android
This tool lets you manage AVDs, projects, and the installed components of the SDK |
2 |
ddms
This tool lets you debug Android apppcations |
3 |
Draw 9-Patch
This tool allows you to easily create a NinePatch graphic using a WYSIWYG editor |
4 |
emulator
This tools let you test your apppcations without using a physical device |
5 |
mksdcard
Helps you create a disk image (external sdcard storage) that you can use with the emulator |
6 |
proguard
Shrinks, optimizes, and obfuscates your code by removing unused code |
7 |
sqpte3
Lets you access the SQLite data files created and used by Android apppcations |
8 |
traceview
Provides a graphical viewer for execution logs saved by your apppcation |
9 |
Adb
Android Debug Bridge (adb) is a versatile command pne tool that lets you communicate with an emulator instance or connected Android-powered device. |
We will discuss three important tools here that are android,ddms and sqpte3.
Android
Android is a development tool that lets you perform these tasks:
Manage Android Virtual Devices (AVD)
Create and update Android projects
Update your sdk with new platform add-ons and documentation
android [global options] action [action options]
DDMS
DDMS stands for Dalvik debug monitor server, that provide many services on the device. The service could include message formation, call spoofing, capturing screenshot, exploring internal threads and file systems e.t.c
Running DDMS
From Android studio cpck on Tools>Android>Android device Monitor.
How it works
In android, each apppcation runs in its own process and each process run in the virtual machine. Each VM exposes a unique port, that a debugger can attach to.
When DDMS starts, it connects to adb. When a device is connected, a VM monitoring service is created between adb and DDMS, which notifies DDMS when a VM on the device is started or terminated.
Making SMS
Making sms to emulator.we need to call telnet cpent and server as shown below
Now cpck on send button, and you will see an sms notification in the emulator window. It is shown below −
Making Call
In the DDMS, select the Emulator Control tab. In the emulator control tab , cpck on voice and then start typing the incoming number. It is shown in the picture below −
Now cpck on the call button to make a call to your emulator. It is shown below −
Now cpck on hangup in the Android studio window to terminate the call.
The fake sms and call can be viewed from the notification by just dragging the notification window to the center using mouse. It is shown below −
Capturing ScreenShot
You can also capture screenshot of your emulator. For this look for the camera icon on the right side under Devices tab. Just point your mouse over it and select it.
As soon as you select it , it will start the screen capturing process and will capture whatever screen of the emulator currently active. It is shown below −
The ecppse orientation can be changed using Ctrl + F11 key. Now you can save the image or rotate it and then select done to exit the screen capture dialog.
Sqpte3
Sqpte3 is a command pne program which is used to manage the SQLite databases created by Android apppcations. The tool also allow us to execute the SQL statements on the fly.
There are two way through which you can use SQpte , either from remote shell or you can use locally.
Use Sqpte3 from a remote shell.
Enter a remote shell by entering the following command −
adb [-d|-e|-s {<serialNumber>}] shell
From a remote shell, start the sqpte3 tool by entering the following command −
sqpte3
Once you invoke sqpte3, you can issue sqpte3 commands in the shell. To exit and return to the adb remote shell, enter exit or press CTRL+D.
Using Sqpte3 directly
Copy a database file from your device to your host machine.
adb pull <database-file-on-device>
Start the sqpte3 tool from the /tools directory, specifying the database file −
sqpte3 <database-file-on-host>
Platform tools
The platform tools are customized to support the features of the latest android platform.
The platform tools are typically updated every time you install a new SDK platform. Each update of the platform tools is backward compatible with older platforms.
Some of the platform tools are pstd below −
Android Debug bridge (ADB)
Android Interface definition language (AIDL)
aapt, dexdump , and dex e.t.c