»
S
I
D
E
B
A
R
«
Covert Android DEX into Java
Apr 18th, 2010 by admin

There are tools to turn Android DEX (VM bytecode) files into corresponding Java sourcecode. One of such tool is smali, an assembler/disassembler for Android’s dex format. It provides BAKSMALI which is a most excellent reverse-engeneering tool for DEX files. made by JesusFreke, the guy who created the famos ROMs for Android.

Android support for near real time push notification
Apr 18th, 2010 by admin

For Android to have near real time push notification, you need the data to be sent as small packets charged as data plan instead of SMS.

Xtify is the service you can look into. It’s not SMS message, but some data driven solution. near real time and highly scalable.

Storing Android data on SD Card
Apr 18th, 2010 by admin

To store Android data on SD card is easy, by adding /sdcard/ to the root your path should direct your Android application to use the SD card. Android’s file system objects give you the ability to check file sizes…so it should be possible (if tricky) to write some fail-over code. This code would adjust your root path if the internal memory filled up.

INSTALL_FAILED_MISSING_SHARED_LIBRARY Error Fix
Apr 17th, 2010 by admin

When you see the error INSTALL_FAILED_MISSING_SHARED_LIBRARY in Android, here is the fix:

1. make sure you have your element in your manifest,
2. your project is set up to target API level 3 (android create project -t 3 …), and that
3. AVD you are testing with is also set for API level 3

Close/hide the Android Soft Keyboard
Apr 17th, 2010 by admin

You can force Android to close/hide/switch off the virtual keyboard using the InputMethodManager, calling hideSoftInputFromWindow, passing in the token of the window containing your edit field.

Here is an example of how you can do it:

InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(myEditText.getWindowToken(), 0);

The code above will force the keyboard to be hidden in all situations. In some cases you will want to pass in InputMethodManager.HIDE_IMPLICIT_ONLY as the second parameter to ensure you only hide the keyboard when the user didn’t explicitly force it to appear (by holding down menu).

Run Python on Android
Apr 17th, 2010 by admin

Android Scripting Environment allows developers to develop directly on the Google Android powered device without the need for a separate computer using Android’s development environment.

Scripts can be run interactively in a terminal, started as a long running service, or started via Locale. Python, is currently supported.

The Android Scripting Environment can be downloaded from the ASE project page.