Mike Turley
Mike Turley

Reputation: 51

Is it possible to develop for Android on Android?

Lately I've been doing a lot of web development on my Droid via ssh using the ConnectBot app and a few other apps for reference. I've also been doing a lot of Android development back home in eclipse, and I wondered: would it be possible to develop and test my android projects right on my phone? All I can do at the moment is either write the code via ssh and then open it later with eclipse to finish it up, or remotely use eclipse via LogMeIn Ignition or VNC. Does anyone know a native way to do what I'm trying to do, preferably offline?

Upvotes: 5

Views: 3592

Answers (6)

user3029302
user3029302

Reputation: 11

You can if you have a remote linux machine that you normaly develop on.

  1. ssh into the machine with some ssh app.
  2. edit the code with some console text editor (vim for example).
  3. build the application with ant
  4. copy the generated apk into the android phone and install it
  5. repeat from point 2.

Good luck!

Upvotes: 1

rjk
rjk

Reputation: 11

check out JAVAIDEDROID on the market

Upvotes: 1

Tamás Cseh
Tamás Cseh

Reputation: 3090

Try AIDE. I use it because it supports Eclipse projects. https://play.google.com/store/apps/details?id=com.aide.ui

Upvotes: 5

arne.jans
arne.jans

Reputation: 3856

I found DroidScript. It's a quite powerful JavaScript interpreter thats based on the Rhino-library. It can import every Java-package and even create activities for starting from the launcher. The URL is http://droidscript.se for the Live-Editor with which you can edit scripts online and send them to your phone, and the droidscript-app has an editor, too but it cant save at the moment, i think. DroidScript is Open-Source and embeddable in an own app, I think. More info on news of DroidScript are found on droidscript.blogspot.com.

Upvotes: 1

Macarse
Macarse

Reputation: 93163

I really don't know if it's possible, but to do it, you should:

  • "Install" java inside Android.
  • "Install" ant
  • run ant debug

Check this link for more instructions.

PS: Please let us know if you could do it :)

Upvotes: 0

dash-tom-bang
dash-tom-bang

Reputation: 17853

Not sure if this hits the target you're looking for, but The Scripting Layer for Android (formerly known as the Android Scripting Environment) is available and has a lot of power available to it.

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 we're planning to add more. See the SL4A Video Help playlist on YouTube for various demonstrations of SL4A's features.

Upvotes: 3

Related Questions