ADB device offline

If you found device offline when you using

#adb devices

Try this

  • Restart adb by issuing ‘adb kill-server’ followed by ‘adb start-server’ at a cmd prompt
  • Disable and re-enable USB debugging on the phone
  • Rebooting the phone if it still doesn’t work.

Android prevent onCreate when orientation change

add this on AndroidManifest.xml

if sdk < 3.2

android:configChanges=”keyboardHidden|orientation”

if sdk > 3.2

android:configChanges=”keyboardHidden|orientation|screenSize”

HTML support of Android Email clients

Everyone knows: Designing an HTML email that renders consistently across the major email clients can be very frustrating. And the number of different email clients is still growing. One reason is the booming market for smartphones.

Google displaced iPhone maker Apple to become the second most popular provider of smartphone software in the United States – Time to take a closer look on the most important email clients for Googles Android:

Android Email K-9 MailDroid Android GMail
Background
body background
body bgcolor
table/td background
table/td bgcolor
background-image (CSS)
background-position (CSS)
background-repeat (CSS)
Text
font-family (CSS)
font-size (CSS)
text-decoration (CSS)
word-spacing (CSS)
letter-spacing (CSS)
td line-height (CSS)
Lists
list-style-image (CSS)
(manually download)
list-style-position (CSS)
list-style-type (CSS)
Image
img external
(manually download)

(manually download)

(manually download)
img inline
(attached)

(attached)
animated Gifs
General
td border (CSS)
table margin (CSS)
Tracking pixel
(manually download)

(manually download)

(manually download)
Internal anchors (table of contents)

How to remove all .svn directories from my application directories

Try this:

find . -name .svn -exec rm -rf {} \;

Before running a command like that, I often like to run this first:

find . -name .svn -exec ls {} \;

Secure Admin must be enabled to access the DAS remotely.

asadmin> enable-secure-admin

Command enable-secure-admin executed successfully.