Mobile TV Elite Software

Archive for July, 2010

Tips for Android developer: “Conversion to Dalvik format failed: Unable to execute dex: null”

As Android developer, I have met a strange problem when I want use a third party jar, it remained me that:
Dex Loader] Unable to execute dex: null
Conversion to Dalvik format failed: Unable to execute dex: null
out of memory error…An internal error occurred during: “Build Project”.
Java heap space

This is the DEX Error,I find the solutions by Google, one way is to modify the eclipse.ini, you can increase the memory allocated in eclipse.ini to this: -Xms128m -Xmx512m or something higher, but this didn’t work for me. After modify the eclipse.ini, I cannot start the eclipse. By StackOverflow, I find a solution:

eclipse.ini file must have -vm on first line and path on second line. don’t try to put everything into one line!
-vm
C:\Program Files\Java\jdk1.6.0_07\bin\javaw.exe

After add the -vm and the path in my eclipse.ini, I can start my Eclipse and the problem has been resolved.

Another way to solve the ” Conversion to Dalvik format failed: Unable to execute dex: null” problem is using the user library, the concrete steps are as follows:
1. Right-click the project in Eclipse and select “Build Path -> Add Libraries…”.
2. Select User Library from the list and click Next.
3. Click the “User Libraries…” button.
4. Click “New…” in the User Libraries dialog.
5. Give the user library a name and select the System library checkbox and click OK.
6. Highlight the newly added user library in the list and click the “Add JARs…” button and add the desired jar files.
7. Click OK on the User Libraries dialog.
8. Make sure the new user library is checked in the Add Library dialog and …

Posted by CuteAndroid

8 comments - What do you think?  Posted by CuteAndroid - July 27, 2010 at 2:35 pm

Categories: Android, Android developer   Tags: , ,

Open Source Android Apps for Developers: android-scripting

We have talked about the PHP for Android project (PFA), which provides PHP support to Android Scripting Environment (ASE). Now it’s time to talk about the open source Android project: Android Scripting Environment (ASE).

Apps Description
Android Scripting Environment(ASE) is a Google-mantained open source Android project which is descripted as “Scripting Layer for Android brings scripting languages to Android “.

Scripting Layer for Android (SL4A, formerly known as Android Scripting Environment or ASE) brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device. These scripts have access to many of the APIs available to full-fledged Android applications, but with a greatly simplified interface that makes it easy to get things done. Scripts can be run interactively in a terminal, in the background, or via Locale. Python, Perl, JRuby, Lua, BeanShell, JavaScript, Tcl, and shell are currently supported, and planning to add more. SL4A will focus on providing:

* a simple, very high level API layer on top of Android’s own APIs,
* on-device developer tools (script editing, launching, debugging, etc.),
* sharing scripts as APKs (i.e. typical Android applications),
* and standards for adding new interpreters.

Project Home
http://code.google.com/p/android-scripting/

Project owners
damonkohler

Version
r25

Apk Downloads
You can download the latest package on the download section at My Tracks project home.

Source Code
First Create your own clone

Create a clone of the android-scripting repository hosted at Google Code.

A repository clone is a server-side copy of a project’s repository and can be created by anyone that wants to contribute to a project. For more information, see the Mercurial FAQ.

Then use the Command-line access:

hg clone https://android-scripting.googlecode.com/hg/ android-scripting

For more details:
http://code.google.com/p/android-scripting/source/checkout

SL4A Video Help
Following is the SL4A Video Help From Youtube:
http://www.youtube.com/user/damonkohler#g/c/07A81E6CE96F158B
Read more…

Be the first to comment - What do you think?  Posted by CuteAndroid - July 18, 2010 at 9:52 am

Categories: Android, Android app, Android Application, Android developer   Tags: , , , , , , , , , , ,

Open Source Android Apps for Developers: PHP for Android

Apps Description
PHP for Android project (PFA) is an open source android app which has been just launched by Irontec. The project aims to make PHP development in Android not only possible but also feasible providing tools and documentation. Now it already has an APK(PhpForAndroid.apk) which provides PHP support to Android Scripting Environment (ASE).

Project Home
http://phpforandroid.net/

Project owners
Irontec is the company behind this project.

Version
0.1

Apk and Source Code Downloads
You can download the latest package and source code on the release section at PHP for Android project home: http://phpforandroid.net/releases

Installation
1. Android OS 1.5 (phone or emulator) or above requirement;
2. Enable “Unknown Sources” under Application settings;
3. Install ASE (Android Scripting Environment);
4. Install PhpForAndroid.apk.
For details, pls refer the project home.

Screencast
Following is the Demo Installation:
Read more…

6 comments - What do you think?  Posted by CuteAndroid - July 14, 2010 at 12:53 pm

Categories: Android, Android app, Android Application, Android developer   Tags: , , , , , , , ,

How to Install Ubuntu Linux on Your Android Phone: Nexus One or HTC Evo 4G

As Android developer, have you ever thought installing Ubuntu on your Android phones? Being able to have Ubuntu on your Android phone means that you can run native Ubuntu/linux applications off your phone! Now Nexus One Hacks blog shows that How to Install Ubuntu Linux on Your Android Phone: Nexus One, HTC Evo 4G or any other rooted Android smartphone. Following is the video guide from Youtube.

How to Install Ubuntu Linux on your Nexus One or Android phone!

If you can see this, then you might need a Flash Player upgrade or you need to install Flash Player if it's missing. Get Flash Player from Adobe.

Evobuntu – How to Install Ubuntu on HTC Evo 4G!

If you can see this, then you might need a Flash Player upgrade or you need to install Flash Player if it's missing. Get Flash Player from Adobe.

Posted by Cute Android

Be the first to comment - What do you think?  Posted by CuteAndroid - July 12, 2010 at 12:44 pm

Categories: Android, Android developer, Android phone   Tags: , , , , , ,