Android SDK
- IDE, debugger, emulator,
company domain its reverse and unique
Android emulator is really slow
no support for Bluetooth connectivity and no support for
connecting accessories to the emulator via USB cableshe emulator is not the device.
You can't really know how your app is going to look and perform
on an actual device just by looking at how it performs in the emulator
can configure the emulator to emulate the speed and
latency of different cellular networks. You can configure the emulator to emulate different battery states
can also inject mock location coordinates to make testing of location
aware applications easier
test,
In the terminal window, I'll use telnet to connect to the emulator.
And you can see the port number on which the emulator's listening
in the emulator window's title bar.
In this case that's 5554.
So I'll type telnet localhost 5554.
And now I'll set the network characteristics to
emulate a slower edge network, network speed edge.
And notice that the cellular network status icon
in the notification bar Has now changed.
Now I'll change it back to 3G by typing network speed full.
I'll change the battery status to reflect a phone
that is running low on battery, power capacity 10
I can also set the emulator's location to Washington D.C.
by typing in the following command,
geo fix minus 77.04 38.897
The Android emulator also allows you to emulate networked interactions,
such as receiving a phone call or an SMS message.
Android even allows two emulators to interact with each other to call
take a look at the emulator
page on the Android developer's website.
android debug system : general tools for monitoring system
DDMS(Dalvik Debug Monitor System)
1. File explorer - viewing a device file system
2. logcat - logging and displaying runtime events
3. traceview - displaying method for execution traces
one is method call stack , text view: number of method called and the amount of time spent,
Trace view only shows which methods are executed.
4. the hierarchy viewer - examining user interface layouts
(android device monitor window)
as tree, title and action bar
logical view -
Android logs many events by default.
that is, as the software runs,
it spits out information about the things that are happening on the device.
And this information is stored and can be displayed in the logcat view.
Android also provides methods that let developers log their own information.
Traceview allows you to trace the methods your application calls.