Is there anyway to get the Oanda FXTrade platform to run on the HD2? The only solution I've been able to come up with is remote desktop, but that is far from optimal. This link: http // www smartphonemag com/cms/blog/9/how-do-i-run-well-known-oandacom-stocks-applet-my-pocket-pc-incl-tons-brand-new-never-publish (had to edit out the "."'s and replace them with spaces to get around the spam filter) talks about running it on WM, but the link to the .jar file is bad (and I had tried it before on my Tilt when the link did work, but never could figure out how to get it to work).
Here is link to the Java Web Start that I normally run from my PC: https //fx1 oanda com/java/beta jnlp (again "."'s replaced with spaces).
Has anyone had any luck at finding a way to run Java programs on the HD2/other WM devices? The 800x480 screen and 1GHz CPU would be perfect for mobile trading. I would be so grateful if anybody has any suggestions.
yup man..been waitin the same... pls help..
Same here, if anyone finds a solution I will be really interested to know!!
For now, I'm using Metatrader for the same purpose...
Yes, this is needed so much. I have different websites that need java applets for my hd2. Is there a solutuion today?
I think the Oanda FXTrade platform has changed since he wrote this article.
even this page: http://www.winmobiletech.com/sekalaiset/OandaComAppletInvoke.html
that he wrote to access the oanda platform is failling due to http 404 (file not found) edit: not the page itself but the page trys to request the platform.class file for the beta.jar and it returns a http connection failed to the java console.
I have looked into this quite fully.
It seems the stuff he was referring to was all beta code and has now been removed.
I have found the current jnlp file:
http://fxtrade.oanda.com/fxgui/desktop/fxtrade.jnlp
The new codebase seems like it should be:
https://fxtrade.oanda.com/fxgui/www/fxtrade
and there are now three jar files instead of one:
https://fxtrade.oanda.com/fxgui/www/fxtrade/trading-app.1.10.17.jar
https://fxtrade.oanda.com/fxgui/www/fxtrade/trading-res.1.10.17.jar
https://fxtrade.oanda.com/fxgui/www/fxtrade/protobuf-java-2.1.0.jar
I have tried to modify what he has done in the tutorial you posted to add the new information.
Unfortunately this has been unsuccessful and I am unsure where to go from here.
maybe someone who knows a bit more about jar/jnlp architecture could take it from here?
download the applet, then go to start > tools > jblend
there should be a list of applets.
Way back when, I could run a c# compiler on my Windows Mobile phone and create apps. I think it would be fun to do on-device "compilation" on my Desire Z too.
I'm not asking for an IDE -- just something that can take Java source code and XML files, compile to bytecode for Dalvik and produce an .apk -- all on the device itself.
Is this possible?
OK -- we'd have to both a javac (java compiler) and a dx tool running on the device to do this. The first compiles the java source, the second takes that file and converts it to Dalvik bytecode.
Anyone else interested in this?
I'm very interested too. I tried sl4a but it's limited for now.
Sent from my Desire HD using XDA App
Dexify java compiler
I'm also very interested!
I develop in Java for the Eve VM on Windows Mobile: [www t-arn com/software.htm]
but for this I needed to install a JavaVM on the device.
But it should be possible to dexify the java compiler. I found following post:
[www ist-music eu/developer-zone/documentation/phoneme-and-osgi/music-on-android]
The porting of OSGi requires the dexification of the OSGi bundles. This is a process which makes any JAR file (compliant with Java VM) compatible with Dalvik VM. It basically consists on adding a new file, classes.dex, into the JAR file. To dexify each OSGi bundle, a two-step process is required by using the Android SDK tools. In windows, the process would be:
* Create the classes.dex file associated to the JAR file:
[ANDROID_SDK]\platforms\android-1.5\tools\dx.bat --dex --output=%CD%\classes.dex my_bundle.jar
* Incorporate the classes.dex file into the JAR file:
[ANDROID_SDK]\platforms\android-1.5\tools\aapt.exe add my_bundle.jar classes.dex
Now, the dexified bundles work on both VMs: Java VM and Dalvik VM.
Click to expand...
Click to collapse
I guess, we could do that for javac. If this does not work, we could try another Java compiler:
- EJC: [thecoderlounge blogspot com/2010/05/ecj-eclipse-java-compiler.html]
- kopisusu: [klomp org/KopiSusu/download.html]
I have no idea how to dexify the dx tool, though :-((
Hope to hear more from you guys
Tom
I have not yet gotten the Android SDK (nor a device...) but it seems that the dx tool itself is written in java. There is a dx.jar in the SKD. This one might already be dexified...or we could dexify with itself.
Tom
On-device development & compiler on a server...
Hi guys, I'm new to this Forum - just got my Archos 101 and now I'm searching for some more fun with it ;-)
So I really liked you guy's idea of having a compiler on the device itself - especially since the java compiler's really fast, so no doubt it can run on a smartphone...
I was really tempted by the open source "Open Blocks" library (education.mit.edu/openblocks) from some of these "Lifelong Kindergarden" people at the MIT... they're having this neat programming environment for teaching children programming, where you can drag/drop your source code like Lego...
Here you can have a look how the programming looks:
education.mit.edu/webdav/How%20to%20Create%20a%20Procedure/How_to_Create_a_Procedure.html
Now even google is using a similar thing, probably the same sources for their "App Inventor" (appinventor.googlelabs.com/about/), but you can only develop online at a real pc, then the .apk file is packaged on the server and downloaded to your android device...
So that's practically another way of having stuff compiled "on your device" - you could do the the development on a device and then have a server dedicated for a fast compiler and dx run...
Basically, I'd say that's the perfect system to write quick programs on a touchscreen device, especially when it's a bit larger tablet...
So if anyone wants to join in, I think I'm really keen on trying to port this OpenBlocks thing to the android screen ;-)
Cheers,
wowbag
Java IDE on Android
Hello everybody
I have just finished the latest version of taJavaIDE (0.3.0)
This APK is meant to become an Android development tool with which you can create native Android apps (APKs) ON the Android device itself.
What is working so far (on my Desire HD):
- Eclipse compiler for Java is integrated and working
- dx tool is integrated (not yet tested properly)
- BeanShell Interpreter is integrated and working.
You can write your own BeanShell script, store it on your SDCard and automate
the build process with it.
What is NOT yet working:
- aapt
- apkbuilder
- jarsigner
- zipalign
apkbuilder and jarsigner should not be a problem. I think, I can integrate those in the same way I integrated ecj.
As far as I know, zipalign is not absolutely needed (I might be wrong here, though).
My biggest problem is aapt which is not a Java application but a C++ application. To make it run on Android, you would need to port it to Java (looks like a REAL challenge!) or use the NDK to create a native library that you could then access from the APK.
I have no experience with the NDK and I also don't have the necessary build environment, so I would really appreciate if someone would help me out here!
Anybody interested in contributing?
Tom
Wow, thanks for getting this started, t-arn!
It's been forever since I did any C++, but I'll take a look at aapt and see what I can figure out.
Hopefully, a true C++ programmer will come along and set us straight
I'm very interested in this project and I would be willing to try to help out if you need it. I'm a second year software engineering student and I'm currently on a work term where all of my work is with android. I may not be of much help but at least I think I have some idea what I'm doing so let me know.
you are correct in saying that zipalign is not necessary. we only need it if we want to sign the apk in release mode(for publishing it to the market). We could just use debug mode and everything would be fine. I'm sure that if someone wanted to release an apk to the market, they could just copy the files over to their pc and zipalign it there. We would still be able to use the apk on the device without using zipalign.
t-arn said:
- jarsigner
Click to expand...
Click to collapse
Serison has an application on the market to sign APK's. Just thought I would let you know it is possible.
I would like this as well, as my phone has a physical keyboard and typing code isn't that bad on it - atleast not for minor edits/tweaks
JavaIDEdroid open source project
Hello everybody
I have created an open source project for JavaIDEdroid:
http://code.google.com/p/java-ide-droid/
Everybody is welcome to join the project (and hopefully contribute to it!)
As soon as I have cleaned up the code a little bit, I'll upload the source and the current APK.
For further questions and discussions, please join the java-ide-droid group. You'll find the link on the project's home page.
See you there!
Tom
Sounds pretty promising,looking forward to give it a try!
Sent from my Dell Streak using XDA App
Sounds possible, if you have the right components. I would love this. Would definitely donate to whoever got it working easily and 100%.
Very interesting project
Look nice. Downloading now.
I have wanted this since I first got an android phone.
I ended up using a virtual debain command line running OpenJava to compile and run the stuff. But if i can do it without that hastle in one app, I will LOVE you.
Edit: I tried it out. Mind explaining how to make a beanShell script? on the ECJ it always gives me a security exception even with just -help.
Code:
java.lang.SecurityException
at java.lang.System.setSecurityManager(System.java:610)
at com.t_arn.JavaIDEdroid,.DE.fnCompile(IDE.java:44)
at com.t_arn.JavaIDEdroid.MainActivity.fnCompile(MainActivty.java:167)
at com.t_arn.JavaIDEdroid.MainActivity.tabCompile_btnCompile(MainActivity.java:137)
......
Done in 1305348377 sec.
Please join the JavaIDEdroid support group at http://groups.google.com/group/java-ide-droid and re-post your question there.
I'd like to keep discussions there.
Thanks
Tom
very interesting, ill join the group, i can make the native lib for the aapt.
I would say get gcc working on the device then you can compile anything. You can compile a javavm. A native binary. Etc. If gcc can be compiled and work then all programs most likely can be compiled on the device assuming the proper libs are there to compile against.
Sent from my Incredible using Tapatalk
I have programmed in java for quite some time, and am decent at android apps.
However, i have two questions about developing on my device (rooted samsung captivate).
First, how can i get dev tools to run correctly on my phone. I have installed it as stated in "developer.android com/guide/developing/debug-tasks html#additionaldebugging". However, when clicking on Dev Settings it crashed with HARDWARE_TEST security exception. I have read that you need to sign/run it as system.
Is it possible to run it on my rooted captivate? if so how do i install it as system or find the system signature to sign it.
My other question is about programing, compiling, and running android applications from a device. I can take my .apk and unzip it. Then edit any resource files. Then rezip and sign it. However if i want to replace the actual code i need to compile it. I can use an online java compiler but i need to convert it to android format.
I know that dx.bat does this by using dx.jar . I can add dx.jar to the referenced libraries of my app. However i cant figure out what to do past there. Is what i am attempting even possible?
Thanks for your help.
There's a couple threads in this forum from folks like me who want to do this. Perhaps you can help us figure it out
Step one is I think to get an java compiler running on the phone. Then to make a version of DX that can run on the phone to convert the class to .apk
Thanks. in normal java programs you can use "com.sun.tools.javac.Main.compile( new String[] {args} );" found in the "<sdk>/lib/tools.jar" to compile a program. And dx.jar is what is used to covert it to android, however i do not know what to call in it.
We just need to find a way to get these jars to work on android.
Hi all,
I just got my Smartwatch and I want to start playing around with the SDK. I downloaded everything and installed it (Android SDK, Sony Extra SDK, Sony Device profiles, Eclipse). I can create new Android projects and I see that I can compile with Sony Add-on SDK (API 16). I keep getting these errors when I try opening up the sample projects (EightPuzzleExtension and MusicPreferenceActivity):
The import com.sonyericsson.extras.liveware.aef cannot be resolved
I figured that the project can't find the right libraries or whatever. I don't know where to go from here....any help would be appreciated.
PS - Are there any good tutorials/guides on developing for this?
Thanks in advance!
demonzrulaz said:
Hi all,
I just got my Smartwatch and I want to start playing around with the SDK. I downloaded everything and installed it (Android SDK, Sony Extra SDK, Sony Device profiles, Eclipse). I can create new Android projects and I see that I can compile with Sony Add-on SDK (API 16). I keep getting these errors when I try opening up the sample projects (EightPuzzleExtension and MusicPreferenceActivity):
The import com.sonyericsson.extras.liveware.aef cannot be resolved
I figured that the project can't find the right libraries or whatever. I don't know where to go from here....any help would be appreciated.
PS - Are there any good tutorials/guides on developing for this?
Thanks in advance!
Click to expand...
Click to collapse
We had the exact same problems. We created a project which included SmartExtensionAPI and SmartExtensionUtils. What worked for us is, we checked
Project Properties -> Android -> Library -> Is Library
Click to expand...
Click to collapse
for both "projects".
Then we needed to add the generated jar-file from SmartExtensionAPI to both SmartExtensionUtils and our project. You can do that easily by clicking on one error in the console, then scroll up to the import, which can not be found. Then click on the red x next to it, and chose the proposed solution "fix project setup". You then can chose the library itself, or the generated jar, to add to the project setup. Adding the jar worked for us.
I had been working on Eclipse ADT but due to the errors and nuisances of the 23.0 update I have decided to move to Android Studio. The problem is, importing projects to Android Studio and getting used to it is turning out to be a bigger problem. Please try to help me on any of the below mentioned problems and questions:
How do i properly import projects from eclipse?
the projects were made with target API 19 and min sdk 8. I have followed all proper steps given by google and searched on Stackoverflow too. When I direct import, no matter what I do, (replace, not replace jar dependencies etc) the projects imported always have errors, like support library defines min sdk version L etc. When I don't, the app crashes. Can you tell me the exact proper procedure for import? the apps were up and running by Eclipse, no problem with them
What is Gradle exaclty? What is Maven?
I know the answers are on wiki but they are too complex for a rookie coder. Can someone explain in simple language?
How are support libraries handled in Android studios?
In eclipse you just copy over the .jar file and add it to build path. How do I manage support in Android Studio?
Image 1 : import with jar replacement, giving error.
image 2: import without jar replacement, looks fine. Though I haven't added the activity element of ActionTab.activity to AndroidManifest.xml
image 3: the imported project's ActionTab activity after I added its activity element to AndroidManifest.xml All hell breaks lose.
I have spent past 2 days trying to figure this thing out, but I got no luck.
Please help me if you have the answers. Images are attached with this post.
Android
Android Studio is a new Android development environment based on IntelliJ IDEA. It provides new features and improvements over Eclipse ADT and will be the official Android IDE once it's ready. On top of the capabilities you expect from IntelliJ, Android Studio offers:
Flexible Gradle-based build system.
Build variants and multiple APK generation.
Expanded template support for Google Services and various device types.
Rich layout editor with support for theme editing.
Lint tools to catch performance, usability, version compatibility, and other problems.
ProGuard and app-signing capabilities.
Built-in support for Google Cloud Platform, making it easy to integrate Google Cloud Messaging and App Engine.