[Java for Android App Development] Edge-Case:
Because I like little devils.

I rebooted to Linux, just now ;) Figure better not torture myself just yet.

Update:

edge-case@HIVE-PC-01:~/Projects/Java-stuff/drd-hello-cmdln$ adb shell ANDROID\_DATA=/sdcard dalvikvm -cp /sdcard/HelloWorld.zip HelloWorld
Hello World!

hmmm, but I shelled in with adb and realized I need to do some more studying...

This is just a bit of me fiddling around with the HelloWorld.zip and the resulting cache...

shell@android:/data/local/mi/dalvik-cache # ll
-rwxr-xr-x root sdcard_rw 1768 2013-11-23 14:52 sdcard@HelloWorld.zip@classes.dex
d.zip@classes.dex <
./sdcard@HelloWorld.zip@classes.dex[1]: dey: not found
./sdcard@HelloWorld.zip@classes.dex[2]: syntax error: '�' unexpected
.zip@classes.dex <
Dalvik VM unable to locate class 'sdcard@HelloWorld/zip@classes/dex'
java.lang.NoClassDefFoundError: sdcard@HelloWorld/zip@classes/dex
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "sdcard@HelloWorld.zip@classes.dex" on path: .
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
... 1 more
1|shell@android:/data/local/mi/dalvik-cache # dalvikvm ./sdcard@HelloWorld.zip>
Dalvik VM unable to locate class '//sdcard@HelloWorld/zip@classes/dex'
java.lang.NoClassDefFoundError: //sdcard@HelloWorld/zip@classes/dex
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "..sdcard@HelloWorld.zip@classes.dex" on path: .
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
... 1 more
1|shell@android:/data/local/mi/dalvik-cache # cd /sdcard/
shell@android:/sdcard # dalvikvm ./HelloWorld.zip
Dalvik VM unable to locate class '//HelloWorld/zip'
java.lang.NoClassDefFoundError: //HelloWorld/zip
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "..HelloWorld.zip" on path: .
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
... 1 more

I am more or less after an executable that can serve the Android API and be ran from the command-line in the background...

perhaps JNI and NDK is what I need....i dunno...

Maybe at that point, python itself might be able to be modified to access the API via JNI?

Update:

Perhaps, I need to try this without changing the default DATA variable, perhaps then the cached thing will be in the path and executable. If the cached thing is executable and functions as expected, eg echos "Hello World", then maybe I can create a symbolic link to the cached executable.... ( I am just shooting blind here ).

Update:

I tried TerminalIDE's method for compiling the java code and running it on the command line, it works just fine. So now I will try to use that method to convert the facade rpc server into a command line application, I am thinking that I will write a shell script that calls it in the right way with the right flags and just name it facaded or something and put that in /system/xbin/ . For now it will still need to use sockets and adbd, because using ashmem in a service requires it to be noted as a line of code in the service manger's source and then baked into the rom.