|
I wanted to continue with my adventures with the Android test
framework but I ran into some troubles. With pre-1.0 SDKs my solution was simple
in these cases: take apart the SDK's android.jar and decomplile the relevant classes.
In 1.0 SDK, however, all the classes in android.jar are just stubs, at least in
the version on the PC filesystem. The real classes are in DEX format, on the emulated
device's file system.
That's sad news because the DEX format is not particularly well documented. More
exactly: undocumented. There are some descriptions floating on the Internet but
they are obsolete and inaccurate. Conveniently, the dx tool in Android SDK has some
less used options that effectively document this format.
|
|
Read more...
|
|
|
If you look at the Android widgets and classes related to tabs,
you’ll see that a tab can have either a View or an Activity as its contents. Most
of the time, people use Views, as they are simpler to implement and lighter-weight
to run. However, there may be circumstances where you feel putting your activities
in tabs would be useful, so let’s take a look at how that is done, in a modified
excerpt from Version 1.9 of
The Busy Coder’s Guide to Android Development.
If you want to use an Activity as the content of a tab, you provide
an Intent that will launch the desired Activity; Android’s tab-management framework
will then pour the Activity’s user interface into the tab. So, let’s create a tabbed
Web browser.
|
|
Read more...
|
|
This is the presentation of Diego Torres Milano at
Mobile Dev Camp .
|
|
Read more...
|
|
|
JUnit has been nicely integrated into Android. JUnit classes are specialized
to facilitate common Android testing tasks. In this post, I will talk about my experiences
with
InstrumentationTestRunner and the facilities it provides to integrate Android
instrumentation with JUnit test execution.
As we have seen previously, the difficulty in JUnit-instrumentation integration
stems from the fact that an instrumentation is an entire Android application, started,
managed and terminated for testing purposes. One has to work quite a bit to make
sure that the test controller is not terminated along with the application under
test. InstrumentationTestRunner solves this problem by launching the Dalvik VM in
special, instrumentation mode.
|
|
Read more...
|
|
In past posts in the Rotational Forces series, we have seen how
to have your activity react to screen rotations, as well as how to force your activity
to remain in one orientation (e.g., portrait).
However, we haven’t covered the iPhone Scenario.
You may have seen one (or several) commercials for the iPhone,
showing how the screen rotates just by turning the device. By default, you do not
get this behavior with the T-Mobile G1 — instead, the screen rotates based on whether
the keyboard is open or closed.
|
|
Read more...
|
|
|
|
|
|
|
Page 80 of 88 |
How to use custom de...
lets say i change this app to days to...
How to display a JPG...
Is that posible to zoom in and drag p...
Making a custom Andr...
Cool - I will use it carefully i promise
How to display a JPG...
problem in image loading - i have exe...
Introducing Calculon...
Thank You for your contribution - Hi,...