Hi, i get run felix on non rooted android tabled. I only add "export ANDROID_DATA=/mnt/sdcard/felix/felix-cache" to my shell-script and run it...
script: #/bin/sh export ANDROID_DATA=/mnt/sdcard/felix/felix-cache /system/bin/dalvikvm -Xbootclasspath:/system/framework/core.jar -classpath bin/felix.jar org.apache.felix.main.Main My primary goal is it to develop a small android app, that using some OSGI-bundles. Those bundles provides some services that i would like to use in my android app... regards, netwalker -------- Original-Nachricht -------- > Datum: Thu, 14 Jun 2012 12:47:38 +0200 > Von: Karl Pauls <[email protected]> > An: [email protected] > Betreff: Re: Android and felix > It might help if you try to explain what you are trying to do and why > (i.e., what is your goal)... > > That said, if you are trying to run felix on a plain (i.e., not > rooted) android device, it seems strange to run it using dalvikvm > directly. Instead, consider embeding felix into an apk and start as a > background service (you'd have to do the plumbing yourself so). > > regards, > > Karl > > On Thu, Jun 14, 2012 at 12:41 PM, ...:::Netwalker:::... <[email protected]> > wrote: > > Hi, > > big thanks you for your respone. Rooting the device is not a real > option for me :( > > "bootstrap felix through an apk instead of running dalvikvm directly." > > Is there any howtos how to bootstrap felix through an apk?? > > I trying to run felix embedded i think that is the right way? > > > > regards, > > netwalker > > > > -------- Original-Nachricht -------- > >> Datum: Thu, 14 Jun 2012 10:48:35 +0200 > >> Von: Karl Pauls <[email protected]> > >> An: [email protected] > >> Betreff: Re: Android and felix > > > >> This path is not under control of felix. Bundles will be installed > >> inside a cache and the path of that cache is controled by felix (this > >> includes the classes.dex files of the bundles) - however, we can't do > >> anything about the dalvik-cache location for the felix.jar itself. > >> > >> You'll have to search around to see whether there is a dalvikvm option > >> to give a different dalvik-cache path. If not, I guess you are stuck > >> with either rooting your device or bootstrap felix through an apk > >> instead of running dalvikvm directly. > >> > >> regards, > >> > >> Karl > >> > >> On Thu, Jun 14, 2012 at 9:39 AM, ...:::Netwalker:::... > <[email protected]> > >> wrote: > >> > Hi, > >> > i conntected my tablet on my pc and started DDMS from eclipse. If i > >> running sh felix.sh from the shell, DDMS logs an exception: > >> > > >> > 06-14 09:35:31.800: E/dalvikvm(8064): Can't open dex cache > >> '/data/dalvik-cache/mnt@sdcard@felix@[email protected]@classes.dex': No > such file or > >> directory > >> > 06-14 09:35:31.800: I/dalvikvm(8064): Unable to open or create cache > for > >> bin/felix.jar > >> (/data/dalvik-cache/mnt@sdcard@felix@[email protected]@classes.dex) > >> > > >> > Its possible to configure the cache path on felix??? > >> > > >> > Regards, > >> > netwalker > >> > > >> > > >> > -------- Original-Nachricht -------- > >> >> Datum: Thu, 14 Jun 2012 08:13:34 +0200 > >> >> Von: "...:::Netwalker:::..." <[email protected]> > >> >> An: [email protected] > >> >> Betreff: Re: Android and felix > >> > > >> >> Hi, > >> >> ok the reason why it doesnt work is simple. I always copy the > files > >> to my > >> >> tabled "/sdcard" and thats not working (NoClassDefFoundException). > >> >> > >> >> Now i starting the emulator via eclipse and with the ADT i copy all > >> files > >> >> from my PC to the Android emulator and with adb shell its possible > to > >> run > >> >> the framework. Big thanks Johannes for this information. > >> >> > >> >> So my question is now, why its working in the /data/ folder and not > on > >> >> /sdcard and how can i copy my files to the /data/ folder of my > android > >> >> (without rooting my device) > >> >> > >> >> Thanks > >> >> Netwalker > >> >> -------- Original-Nachricht -------- > >> >> > Datum: Wed, 13 Jun 2012 07:41:47 +0200 > >> >> > Von: "...:::Netwalker:::..." <[email protected]> > >> >> > An: [email protected] > >> >> > Betreff: Re: Android and felix > >> >> > >> >> > Hi, > >> >> > i DEXed all the jars. Im using the latest apache felix version > and > >> >> latest > >> >> > androidSDK and i creating my dex files on this way: > >> >> > > >> >> > dx.bat --dex > >> >> > --output=C:\Users\moohkooh\Desktop\felix-android\bin\classes.dex > >> >> C:\Users\moohkooh\Desktop\felix-android\bin\felix.jar > >> >> > aapt add C:\Users\moohkooh\Desktop\felix-android\bin\felix.jar > >> >> > C:\Users\moohkooh\Desktop\felix-android\bin\classes.dex > >> >> > adb -s 10.0.37.210:5555 push > >> >> > C:\Users\moohkooh\Desktop\felix-android\bin\felix.jar > >> >> /sdcard/x/bin/felix.jar > >> >> > > >> >> > dx.bat --dex > >> >> > > --output=C:\Users\moohkooh\Desktop\felix-android\bundle\classes.dex > >> >> > > >> >> > >> > C:\Users\moohkooh\Desktop\felix-android\bundle\org.apache.felix.shell-1.4.3.jar > >> >> > aapt add > >> >> > > >> >> > >> > C:\Users\moohkooh\Desktop\felix-android\bundle\org.apache.felix.shell-1.4.3.jar > C:\Users\moohkooh\Desktop\felix-android\bundle\classes.dex > >> >> > adb -s 10.0.37.210:5555 push > >> >> > > >> >> > >> > C:\Users\moohkooh\Desktop\felix-android\bundle\org.apache.felix.shell-1.4.3.jar > >> >> > /sdcard/x/bundle/org.apache.felix.shell-1.4.3.jar > >> >> > > >> >> > dx.bat --dex > >> >> > > --output=C:\Users\moohkooh\Desktop\felix-android\bundle\classes.dex > >> >> > > >> >> > >> > C:\Users\moohkooh\Desktop\felix-android\bundle\org.apache.felix.shell.tui-1.4.1.jar > >> >> > aapt add > >> >> > > >> >> > >> > C:\Users\moohkooh\Desktop\felix-android\bundle\org.apache.felix.shell.tui-1.4.1.jar > >> >> > C:\Users\moohkooh\Desktop\felix-android\bundle\classes.dex > >> >> > adb -s 10.0.37.210:5555 push > >> >> > > >> >> > >> > C:\Users\moohkooh\Desktop\felix-android\bundle\org.apache.felix.shell.tui-1.4.1.jar > >> >> > /sdcard/x/bundle/org.apache.felix.shell.tui-1.4.1.jar > >> >> > > >> >> > After this i try to start felix with the given shell-script > command. > >> >> First > >> >> > i connect to the tabled via "adb -s 10.0.37.210:5555" shell and > >> running > >> >> > the script "sh felix.sh" > >> >> > > >> >> > #/bin/sh > >> >> > /system/bin/dalvikvm -Xbootclasspath:/system/framework/core.jar > >> >> -classpath > >> >> > bin/felix.jar org.apache.felix.main.Main > >> >> > > >> >> > Durring startup i getting this exception. I dont get why this not > >> >> working > >> >> > oO > >> >> > > >> >> > Mustafa > >> >> > > >> >> > > >> >> > -------- Original-Nachricht -------- > >> >> > > Datum: Tue, 12 Jun 2012 15:22:20 +0200 > >> >> > > Von: "Přemek Brada" <[email protected]> > >> >> > > An: [email protected] > >> >> > > Betreff: Re: Android and felix > >> >> > > >> >> > > Hi, > >> >> > > > >> >> > > just for the record, here is the answer after I consulted the > >> problem > >> >> > > with my colleague diploma student Jan Záruba (sent directly to > >> >> > > netwalker as well). > >> >> > > > >> >> > > "This exception appears when bundle is not properly DEXed. Is in > >> >> > > felix.jar archive file classes.dex? Did you try it with attached > >> zip > >> >> > > archive > >> >> > > > >> >> > > >> >> > >> > (http://felix.apache.org/site/documentation.data/osgi-android-felix1.4,androidSDK1.0.zip)? > >> >> > > In which phase of tutotial appears this exception?" > >> >> > > > >> >> > > Přemek > >> >> > > > >> >> > > > >> >> > > On 11 June 2012 13:51, ...:::Netwalker:::... <[email protected]> > >> wrote: > >> >> > > > Hi, > >> >> > > > im trying to run the example on > >> >> > > > >> >> > > >> >> > >> > http://felix.apache.org/site/apache-felix-framework-and-google-android.html > on my android tablet, but i always > >> >> > > getting this exception: > >> >> > > > > >> >> > > > Dalvik VM unable to locate class 'org/apache/felix/main/Main' > >> >> > > > java.lang.NoClassDefFoundError: org.apache.felix.main.Main > >> >> > > > at dalvik.system.NativeStart.main(Native Method) > >> >> > > > Caused by: java.lang.ClassNotFoundException: > >> >> > org.apache.felix.main.Main > >> >> > > in loader dalvik.system.PathClassLoader[bin/felix.jar] > >> >> > > > at > >> >> > > > dalvik.system.PathClassLoader.findClass(PathClassLoader.java:251) > >> >> > > > at > >> java.lang.ClassLoader.loadClass(ClassLoader.java:540) > >> >> > > > at > >> java.lang.ClassLoader.loadClass(ClassLoader.java:500) > >> >> > > > ... 1 more > >> >> > > > > >> >> > > > Do something know how to handle this problem?? I searching > since > >> 3 > >> >> > days > >> >> > > for an answer, but still i didnt find something. > >> >> > > > > >> >> > > > Big thanks! > >> >> > > > netwalker > >> >> > > > -- > >> >> > > > Wenn die Hoffnung in dir Stirb, dann stirbst du mit ihr. > >> >> > > > > >> >> > > > NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! > >> >> > > > Jetzt informieren: > >> >> http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a > >> >> > > > > >> >> > > > > >> >> > --------------------------------------------------------------------- > >> >> > > > To unsubscribe, e-mail: [email protected] > >> >> > > > For additional commands, e-mail: [email protected] > >> >> > > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > -- > >> >> > > Premek Brada (Doc, Ing et MSc, PhD) > >> >> > > Head of Software Engineering and Information Systems Section > >> >> > > Department of Computer Science and Engineering > >> >> > > University of West Bohemia in Pilsen, CZ > >> >> > > << brada at kiv.zcu.cz | www.kiv.zcu.cz/~brada/ | > >> +420-377-63-2435 > >> >> >> > >> >> > > > >> >> > > > >> --------------------------------------------------------------------- > >> >> > > To unsubscribe, e-mail: [email protected] > >> >> > > For additional commands, e-mail: [email protected] > >> >> > > > >> >> > -- > >> >> > Wenn die Hoffnung in dir Stirb, dann stirbst du mit ihr. > >> >> > > >> >> > NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! > >> >> > >> >> > > >> >> > Jetzt informieren: > http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a > >> >> > > >> >> > > --------------------------------------------------------------------- > >> >> > To unsubscribe, e-mail: [email protected] > >> >> > For additional commands, e-mail: [email protected] > >> >> > > >> >> -- > >> >> Wenn die Hoffnung in dir Stirb, dann stirbst du mit ihr. > >> >> > >> >> Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir > >> >> belohnen Sie mit bis zu 50,- Euro! > https://freundschaftswerbung.gmx.de > >> >> > >> >> > --------------------------------------------------------------------- > >> >> To unsubscribe, e-mail: [email protected] > >> >> For additional commands, e-mail: [email protected] > >> >> > >> > -- > >> > Wenn die Hoffnung in dir Stirb, dann stirbst du mit ihr. > >> > > >> > Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir > >> > belohnen Sie mit bis zu 50,- Euro! > https://freundschaftswerbung.gmx.de > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: [email protected] > >> > For additional commands, e-mail: [email protected] > >> > > >> > >> > >> > >> -- > >> Karl Pauls > >> [email protected] > >> http://twitter.com/karlpauls > >> http://www.linkedin.com/in/karlpauls > >> https://profiles.google.com/karlpauls > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [email protected] > >> For additional commands, e-mail: [email protected] > >> > > -- > > Wenn die Hoffnung in dir Stirb, dann stirbst du mit ihr. > > > > NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! > > Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > -- > Karl Pauls > [email protected] > http://twitter.com/karlpauls > http://www.linkedin.com/in/karlpauls > https://profiles.google.com/karlpauls > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- Wenn die Hoffnung in dir Stirb, dann stirbst du mit ihr. Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

