Hi!
I am working on a project that require porting a program from Linux to Android; I have been successful to make work the required equinox3.6(modified) on Android and to make call the osgi by the application itself, BUT through the adb shell, running a script that launches the files in the .jar.
At this point I should create an activity.apk that includes everything and makes it work the same way.
More in details, until now I have uploaded some archives.jar (containing the classes.dex) in the emulator: two jars for the program itself, a jar for equinox, other jars for support.
Then there is the script.sh that launches the main.class of my program passing it some parameters necessary to the program and to equinox to start; the main.class launches the equinox framework and then the program can load bundles and do its job.
To make it clear here is the starting script:
#/bin/sh
/system/bin/dalvikvm -Xbootclasspath:/system/framework/core.jar -Xverify:none -Dosgi.debug=file:.options -Dosgi.framework=file: org.eclipse.osgi_3.6.0.v20100517.jar -Dosgi.install.area=file:/bundles/ -Dosgi.java.profile=file: dalvik_Core_Library-0.9.profile -Dosgi.parentClassloader=ext -Dnetserv.container.ctrlport=7001 -Dnetserv.container.serveripv4=127.0.0.1 -Djava.security.policy=all.policy -Dnetserv.security.bindableports=1024 -Dnetserv.container.user=jae -classpath org.eclipse.osgi_3.6.0.v20100517.jar:netservlaunch.jar NetServ.launch.Main -console -clean
I am new to Android and I have been trying to create an activity that behaves similar to my script, but without any success.
I added all my archives.jar to my project the way of "Add External jars" and tryed to launch the main.class as it was another activity, using Intent, and passed the parameters using putExtra(), but on the other side, in the jar of the program, I cannot retrieve and use the needed parameters, because it is not an apk...I do not know if that is the reason why it is not working, anyway it is not.
Any idea on how to do something like this?
Or any advice on where to look for a solution?
Thank you in advance for any help!
I am working on a project that require porting a program from Linux to Android; I have been successful to make work the required equinox3.6(modified) on Android and to make call the osgi by the application itself, BUT through the adb shell, running a script that launches the files in the .jar.
At this point I should create an activity.apk that includes everything and makes it work the same way.
More in details, until now I have uploaded some archives.jar (containing the classes.dex) in the emulator: two jars for the program itself, a jar for equinox, other jars for support.
Then there is the script.sh that launches the main.class of my program passing it some parameters necessary to the program and to equinox to start; the main.class launches the equinox framework and then the program can load bundles and do its job.
To make it clear here is the starting script:
#/bin/sh
/system/bin/dalvikvm -Xbootclasspath:/system/framework/core.jar -Xverify:none -Dosgi.debug=file:.options -Dosgi.framework=file: org.eclipse.osgi_3.6.0.v20100517.jar -Dosgi.install.area=file:/bundles/ -Dosgi.java.profile=file: dalvik_Core_Library-0.9.profile -Dosgi.parentClassloader=ext -Dnetserv.container.ctrlport=7001 -Dnetserv.container.serveripv4=127.0.0.1 -Djava.security.policy=all.policy -Dnetserv.security.bindableports=1024 -Dnetserv.container.user=jae -classpath org.eclipse.osgi_3.6.0.v20100517.jar:netservlaunch.jar NetServ.launch.Main -console -clean
I am new to Android and I have been trying to create an activity that behaves similar to my script, but without any success.
I added all my archives.jar to my project the way of "Add External jars" and tryed to launch the main.class as it was another activity, using Intent, and passed the parameters using putExtra(), but on the other side, in the jar of the program, I cannot retrieve and use the needed parameters, because it is not an apk...I do not know if that is the reason why it is not working, anyway it is not.
Any idea on how to do something like this?
Or any advice on where to look for a solution?
Thank you in advance for any help!
