I have an Android device since last weekend 'for research purposes' and
I am trying to run a few tests. Before I go into making an .apk, I was trying to run some text mode classes using the command line. I am using adb and for the device itself google's terminal application, and I followed the recipe of compling a class, run it through dx and aapl and pushing it to the device. It seems that I may write on /sdcard and not on /data. I don't want to root the device since the apps I plan must be able to run on consumer devices. dalvikvm cannot load my classes, because, as adb logcat tells me, I am not allowed to write on the dalvik cache. Googling for this problem sends me to the realm of rooting the device and using a2e to move the cache. I do not want to move the cache, I want to either (1) not use it or (2) have a cache for my classes only on /sdcard I was wondering if anyone found the docs for dalvik that describe the switches to not cache the optimized .dex, or an environment variable that re-routes it to user writeable storage. best regards, René Jansen. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Hi René, you have to build an APK. The 'direct' way you tried is only available on rooted devices. The APK install process will do a lot of magic behind the scenes, one of them being creating a user account specific for your application key, granting rights on it and creating the necessary files within dalvik cache to be able to run your program. Circumventing all that need a lot of insights of the system, and, on most cases, a rooted phone. rvjansen schrieb am 23.04.2012 11:54: > I have an Android device since last weekend 'for research purposes' > and I am trying to run a few tests. Before I go into making an > .apk, I was trying to run some text mode classes using the command > line. I am using adb and for the device itself google's terminal > application, and I followed the recipe of compling a class, run it > through dx and aapl and pushing it to the device. > > It seems that I may write on /sdcard and not on /data. I don't want > to root the device since the apps I plan must be able to run on > consumer devices. dalvikvm cannot load my classes, because, as adb > logcat tells me, I am not allowed to write on the dalvik cache. > Googling for this problem sends me to the realm of rooting the > device and using a2e to move the cache. I do not want to move the > cache, I want to either (1) not use it or (2) have a cache for my > classes only on /sdcard > > I was wondering if anyone found the docs for dalvik that describe > the switches to not cache the optimized .dex, or an environment > variable that re-routes it to user writeable storage. - -- cu, Patric -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: GnuPT 2.5.2 iEYEARECAAYFAk+VK8oACgkQfGgGu8y7ypB54gCfdjk7+MJXSUORlKDjXEU1Js0/ pUUAn0+c0yX5RNrta4QwmzaiG6ZRcYnQ =SF7y -----END PGP SIGNATURE----- _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
I tried once to apk everything NetRexx needed with hopes that I could use -exec option to at least run some scripts.
I know the Android SDK is missing some classes from the jdk and that NetRexx uses at least one constants file used from the jdk. I also did not want to root the device. On Mon, Apr 23, 2012 at 6:15 AM, Patric Bechtel <[hidden email]> wrote: -----BEGIN PGP SIGNED MESSAGE----- _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Jason,
well that last issue we can do something about - do you have recollection which part it was? On 2012-04-23 14:10, Jason Martin wrote: > I know the Android SDK is missing some classes from the jdk and that > NetRexx uses at least one constants file used from the jdk. René. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Command I used to find
grep -r -e sun . | more There are more but I believe this was the one I looked at : ./src/org/netrexx/process/RxClassImage.nrx:import sun.tools.java.RuntimeConstants On Mon, Apr 23, 2012 at 8:34 AM, rvjansen <[hidden email]> wrote: Jason, _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Jason Martin
I tried once to apk everything NetRexx needed with hopes
that I could use -exec option to at least run some scripts.
I know the Android SDK is missing some classes from the jdk and that NetRexx uses at least one constants file used from the jdk. Would be nice if all this knowledge of NetRexx on Android were
collected together in a document or Wiki somewhere.
Looks like I may have an 'app' to move to Android or Google
Play in the autumn (and would love to start using NetRexx again), and an
accumulated wisdom would surely be useful!
Mike
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Yes, actually this activity is because of the new Quick Start and
Programming Guides that I am working on. Also the question on PowerShell was because of that, but I am happy to see that on this list, Android gripped more people than PowerShell. best regards, René. On 2012-04-23 14:59, Mike Cowlishaw wrote: > I tried once to apk everything NetRexx needed with hopes that I could > use -exec option to at least run some scripts. > I know the Android SDK is missing some classes from the jdk and that > NetRexx uses at least one constants file used from the jdk. > > Would be nice if all this knowledge of NetRexx on Android were > collected together in a document or Wiki somewhere. > > Looks like I may have an 'app' to move to Android or Google Play in > the autumn (and would love to start using NetRexx again), and an > accumulated wisdom would surely be useful! > > Mike _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
At the time, my thinking was :
1) Create an apk of NetRexx 2) Make sure to replace or determine what parts of the JDK it needed. a) This was the reason I played with the ECJ compiler. 3) Does it need classes missing from Android. 4) Use Android's dalvik.system and dalvik.bytecode packages if needed. 5) One simple control app that could open, process and run saved scripts. On Mon, Apr 23, 2012 at 9:24 AM, rvjansen <[hidden email]> wrote: Yes, actually this activity is because of the new Quick Start and Programming Guides that I am working on. Also the question on PowerShell was because of that, but I am happy to see that on this list, Android gripped more people than PowerShell. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Mike Cowlishaw
On 4/23/2012 7:59 AM, Mike Cowlishaw wrote:
Some of that fault falls to me, Mike. The NetRexx Kenai website has a fully-functional wiki (http://kenai.com/projects/netrexx/pages/Home) and click on 'Wikis' -- you'll need to authenticate yourself if you further click on "Edit page" -- but with those preliminaries out of the way, you should have (ahem: never tested) full access to write down whatever posterity needs to know. If you try to create a directory tree to organize the material, and it fails for lack of authority, shout out to me and I can set up whatever structure you need: René has empowered me to administer the Wiki -- and I have not done so. So: Open message to all list members -- If you want to Wiki-ize something NetRexx-ish, especially Android development "secrets" please let me know, on- or off-list, and I'll see that it gets done. Tom (from bright and sunny Chicago). _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Mike Cowlishaw
*** Sorry to interrupt ***
May I *underline* Mike's suggestion, and setup a wiki.netrexx.org as soon as possible? I'm currently too busy with my own pojects to help out, but I will for sure do the job to re-structure class Rexx.nrx as indicated in other posts after the release of RexxForm (and the new version of Rexx2Nrx, of course). Thomas. ======================================================== Am 23.04.2012 14:59, schrieb Mike Cowlishaw:
--
Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team (www.netrexx.org) _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
Thomas Schneider, Vienna, Austria (Europe) :-)
www.thsitc.com www.db-123.com |
In reply to this post by rvjansen
On Mon, Apr 23, 2012 at 06:54, rvjansen <[hidden email]> wrote:
> I have an Android device since last weekend 'for research purposes' Giving Google's increasing control of everything and its boycott of standards based Java and a level playing field (ie the removal of Google's official GMail J2ME app from its download site) I sure as ***** do not want to promote Google's dominance into yet another area (mobile OSs). I would be interested, though, to learn about NetRexx being used to create Java ME apps for Sony Ericsson* or the many Chinese phones available with J2ME. Or for Amazon Kindle ebook readers which feature Java ME MIDP 1.0... But that is just me... FC -- During times of Universal Deceit, telling the truth becomes a revolutionary act Durante épocas de Engaño Universal, decir la verdad se convierte en un Acto Revolucionario - George Orwell _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Tom Maynard
OK, thanks ... I shall continue to 'watch this space' ....
:-)
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Fernando Cassia-2
I have wanted to play with JavaMe but Linux as a platform for development seems to be lacking.
Any pointers in the right direction would be appreciated. I have not owned a copy of Windows since 1994 or 95. On Mon, Apr 23, 2012 at 10:45 AM, Fernando Cassia <[hidden email]> wrote:
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Fernando Cassia-2
On 23.04.2012 16:45, Fernando Cassia wrote: > On Mon, Apr 23, 2012 at 06:54, rvjansen <[hidden email]> wrote: >> I have an Android device since last weekend 'for research purposes' > Giving Google's increasing control of everything and its boycott of > standards based Java and a level playing field (ie the removal of > Google's official GMail J2ME app from its download site) I sure as > ***** do not want to promote Google's dominance into yet another area > (mobile OSs). Of the three current major players in mobiles and pads (Apple, Microsoft, Google), only Google/Android allows one to load/buy Android apps from a non-Google-owned "market-place". In addition it is using open-source software which is made available. Of course, I am wary with Google (but of course also with Oracle, Apple and Microsoft and Facebook et.al. at this point in time). But Android by comparison is open in many aspects that are no-gos for Apple or Microsoft (which seems to copy Apple's iOS-strategies and enslaving rules for the developers and users 1:1, arriving at their Windows95-dream where they can tax everything like Apple does now). You can even add scripting languages to Android, which is impossible with iOS (and AFAIK with mobile Windows nowadays as well, if not mistaken). Ad "Java-standards" and pulling of GMail J2ME: this probably has to do with the lawsuit of Oracle against Google. (But of course, could also be some mean tactics, who knows?) (BTW, Google has been using Apache's Harmony as Java replacement, which was created to be compatible with Sun's Java. Sun - and now Oracle - has denied the TCK to make it possible to test Harmony and if all tests passed, Apache would have been able to state that Harmony was fully compliant to the Java specs, i.e. a replacement for Java; this has been denied *despite* written agreements between Sun and Apache, such that Apache pulled away from the JCP, where Apache year for year was nominated due to their Java technology contributions! Among many interesting points, the case of the opensource Harmony vs. Java is especially interesting in the ongoing lawsuit.) > I would be interested, though, to learn about NetRexx being used to > create Java ME apps for Sony Ericsson* or the many Chinese phones > available with J2ME. > > Or for Amazon Kindle ebook readers which feature Java ME MIDP 1.0... It seems that also in these corners, closeness vs. openness are worthwhile to investigate (for the developers and the users alike). ---rony _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Jason Martin
On Mon, Apr 23, 2012 at 11:53, Jason Martin <[hidden email]> wrote:
> have wanted to play with JavaMe but Linux as a platform for development > seems to be lacking. AFAIK Netbeans supports JavaME development. http://netbeans.org/features/javame/ How would NetRexx would fit into it is beyond me. Also AFAIK Amazon.com is guarding the Kindle Development Kit (KDK) only for "known" publishers. I've signed up for their beta program but was never accepted into it. http://kdk.amazon.com/gp/vendor/kindlepubs/kdk/request-seat In any case, I will be getting a $99 Sony Ericsson with J2ME just to see what I can do... http://goo.gl/xUyxE FC -- During times of Universal Deceit, telling the truth becomes a revolutionary act - George Orwell _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Rony G. Flatscher (wu-wien)
On Mon, Apr 23, 2012 at 12:41, Rony G. Flatscher
<[hidden email]> wrote: > But Android by comparison is open in many aspects that are no-gos for > Apple or Microsoft In a perfect world, I'd love to see Nokia fire Microsoft's trojan (Stephen Elop) and re-commit itself to MeeGo Linux. The Nokia N9 is the best phone out there, I just wish I could afford it. In the meantime, I will buy myself a Sony Ericsson to help the level playing field J2ME cause. Harmony was Java SE, that is, desktop Java. Jave ME was the only part of Java that, while open sourced by Sun, had "field of use" restrictions, meaning you could not ship PhoneME (open source J2ME) in mobile phones and embedded devices. But that's all I remember from those days. And IMHO Google just stole Java to rename it Davlik VM and release it with a different license, and imho the evidence is quite damning to them. http://www.businessinsider.com/oracle-the-damning-evidence-dug-up-on-google-for-its-1-billion-android-lawsuit-2012-4#google-tried-to-find-a-way-around-using-java-1 FC -- During times of Universal Deceit, telling the truth becomes a revolutionary act Durante épocas de Engaño Universal, decir la verdad se convierte en un Acto Revolucionario - George Orwell _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Thanks, I downloaded and Installed netbeans. Will play around with using NetRexx there.
For my part : I live in a poor rural area. I just want the tech side available freely to those who want to learn. I spent years helping people fix broken software. I just could not charge people like that who just wanted a computer so their kids had the same chances as everybody else. When it cost 100 dollar here and there. It is worthless to me. On Mon, Apr 23, 2012 at 12:09 PM, Fernando Cassia <[hidden email]> wrote:
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Fernando Cassia-2
Hi Fernando,
could you provide plase (for me stupid member of this excellent group ;-)) simply the LINK's to the aformentioned op sysis in your mail, please ? Sometimes I'm feeling like Sysiphos to follow all the details of all those so very simliar Systems. But by personal feeling is as follows: *When* (and only when) we as NetRexx fans could find a method to support all those devices and variants with the NetRexx Language, and appropriate add-on Packages ... .. then NetRexx will be the *Super-Star* Full Stop, Massa Thomas ;-) ======================================================= Am 23.04.2012 16:45, schrieb Fernando Cassia: > On Mon, Apr 23, 2012 at 06:54, rvjansen<[hidden email]> wrote: >> I have an Android device since last weekend 'for research purposes' > Giving Google's increasing control of everything and its boycott of > standards based Java and a level playing field (ie the removal of > Google's official GMail J2ME app from its download site) I sure as > ***** do not want to promote Google's dominance into yet another area > (mobile OSs). > > I would be interested, though, to learn about NetRexx being used to > create Java ME apps for Sony Ericsson* or the many Chinese phones > available with J2ME. > > Or for Amazon Kindle ebook readers which feature Java ME MIDP 1.0... > > But that is just me... > FC > -- Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team (www.netrexx.org) _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
Thomas Schneider, Vienna, Austria (Europe) :-)
www.thsitc.com www.db-123.com |
On Mon, Apr 23, 2012 at 15:46, Thomas Schneider
<[hidden email]> wrote: > could you provide plase (for me stupid member of this excellent > group ;-)) > > simply the LINK's to the aformentioned op sysis in your mail, please ? errr hummm what? :) Java ME is Java ME. An app coded for java ME works on any Java ME enabled phone (even the latest Sony Ericsson high-end phones that while they run Android, Sony supplies a "Java ME emulator" to run J2ME apps. The only "compatibility" problems begin when you start looking ar JSRs (native apis to intereact ie with the phone's camera, GPS, etc, those JSRs are 'optional' and each manufacturer decides whether to include such features into their JVMs or not). But for basic apps that just fetch data from a tcp/ip link, all is well. For instance, I ran google's now-unsupported GMail for Java app on a Palm Centro running PalmOS, by installing IBM's J9 JVM. The Kindle KDK allegledly uses Java ME MIDP 1.0 specs, so supposedly it'd be no different than coding a MIDP 1.0 app tu run on a monochrome device like the ancient PalmOS PDAs... but in order to get the Kindle Development Kit, you have to be "approved" by some gurus at Amazon who hold the keys to the door... Don't know if I can provide much more info... :-( FC -- During times of Universal Deceit, telling the truth becomes a revolutionary act Durante épocas de Engaño Universal, decir la verdad se convierte en un Acto Revolucionario - George Orwell _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Hi Fernando Cassia:
1.) thanks for you clarifications :-) 2.) I must admit, thatt I did never look as deeply as you obviously did into all those subtle differences. Sorry :-( 3.) I do, herewith again, offer my full support for NetRexx, and the other dialects of the Rexx Family, of course... 4.) as a first step, I am just releasing RexxForm (a Rexx (any dialect) Re-Formatter) both on my home-page and org.netrexx.thsitc.rexxform This product will and should be free for members for the ibm-netrexx and/or RexxLA group. It will be commercial for HEAVY usage of BIG companies, having enough money to pay a small amount by each 1000 source lines they are Re-Formatiing ... Just to get Capitalistic Companies to PAY a fare share to INVENTORS. 5.) After my current release(s), I will focus (as far as NetRexx is involved), on the re-structuring of class Rexx.nrx, to separate NUMERIC Logics again, with a new NetrexxC compiler option to switch between current NetRexx class Rexx implementation, Mike's new BigDecimal class, and Javas BigDecimal class. In this step, I will also integrate my already released routines of org.netrexx.thsitc.compatibility,runtime so that you can use date, time, linein, lineout, etc in any Netrexx program (when you like to do so) . Greetings from dark Vienna, Austria. ... and thanks for the update of my (always toooo small) brain, Fernando :-) Thomas Schneider CEO ThSITC IT-Consulting KG Erdbergstr. 52-60/1/13 1030 Wien FaceBook ID: Thomas.Schneider.Wien Skype ID : * detto* ====================================================== Am 23.04.2012 21:12, schrieb Fernando Cassia: > On Mon, Apr 23, 2012 at 15:46, Thomas Schneider > <[hidden email]> wrote: >> could you provide plase (for me stupid member of this excellent >> group ;-)) >> >> simply the LINK's to the aformentioned op sysis in your mail, please ? > errr hummm what? :) > > Java ME is Java ME. An app coded for java ME works on any Java ME > enabled phone (even the latest Sony Ericsson high-end phones that > while they run Android, Sony supplies a "Java ME emulator" to run J2ME > apps. > > The only "compatibility" problems begin when you start looking ar JSRs > (native apis to intereact ie with the phone's camera, GPS, etc, those > JSRs are 'optional' and each manufacturer decides whether to include > such features into their JVMs or not). But for basic apps that just > fetch data from a tcp/ip link, all is well. > > For instance, I ran google's now-unsupported GMail for Java app on a > Palm Centro running PalmOS, by installing IBM's J9 JVM. > > The Kindle KDK allegledly uses Java ME MIDP 1.0 specs, so supposedly > it'd be no different than coding a MIDP 1.0 app tu run on a monochrome > device like the ancient PalmOS PDAs... but in order to get the Kindle > Development Kit, you have to be "approved" by some gurus at Amazon who > hold the keys to the door... > > Don't know if I can provide much more info... > > :-( > > FC > -- Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team (www.netrexx.org) _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
Thomas Schneider, Vienna, Austria (Europe) :-)
www.thsitc.com www.db-123.com |
Free forum by Nabble | Edit this page |