[Q] The android can run java applet - General Questions and Answers

Hi,
hello everybody,
there's a way to a android device run a java applet in a web browser or by other ways?
tks.

There are a few offline converters that help run selective JVM content on DVM ( android's VM called Dalvik).
But there isn't any end user friendly/on-the-fly one to run java applets on android browser.
Unless implemented and ported native_ly, it would end up being a extra shim on top of DVM, slowing down any app/applet that runs on top of it. It is very unlikely that google promotes this. Competition has pushed them to rush for adobe flash support but that might be the limit.
On the other hand, people have managed to run DVM on other platforms. It has indeed been running from day zero on development emulator on PCs and MACs.

Related

Creating a WM Application - Where to start ?

I hope this is the right place to put this, if not, mods, feel free to remove and/or delete it. I've dabbled a bit with C before, but that's about the extent of my programming experience. I'd like to create a program that will parse the information from a website and display it... I don't imagine something like that would be hard to do, but I have no idea what tools I would even need to start writing a PPC application.
Kitco (a website that gives live quotes of precious metals) recently came out with an application for the iphone that neatly formats all this information:
http://www.kitco.com/images/banners/KitcoiPhone/iphone.html
I'd like to basically create a PPC version of this application.
Is this something that an individual with next to no experience could hope to achieve ? I'd have to create a GUI, initialize the internet, connect and retrieve a webpage and remove the relevent information before displaying it.
Any help would be greatly appreciated. I've always wanted to become more familiar with these sorts of things and figured this project would be a great way of learning it.
Thanks!
ThreadMoved
Next to no experience? I dont think so. You have to have a little under your belt first and the only way to achieve that is to start readin right here!
I'm also interested in the expert answers to this question.
My very non-expert understanding is as follows:
VS 2005 (microsoft visual studio) can create executables for WM devices using a SDK (low level) or .Net CF (medium level) interface. You want to use .Net CF (compact framework) because it is supposed to make things easier. I think you have to use C++ to use the SDK but you can use C++, C#, or Visual Basic and write to .NET CF.
VS 2005 is an IDE (integrated development environment). It contains features to edit, compile, and even test your program using simulator/debugger. I think there are some non-microsoft IDE's that can also generate Windows Mobile code -- there is a market for cross-platform environments (e.g. programmers write code using a special library instead of the windows SDK or .NET function and the same source code can be compiled to run on Blackberry, iPhone, S60, Windows Mobile, etc...)
Instead of writing to the phone hardware (or .NET abstraction) directly, you can write your application using Java. You would use some Java compatible IDE (like Eclipse, Jbuilder, or NetBeans) to create Java applets that you download to your phone. You'd have to install a Java VM (virtual machine) on your phone to run these applets. I think the downloadable games for phones are Java applets.
Disclaimer: I haven't worn my "programming cap" since 2001 and hopefully things have gotten simpler. In my previous life I designed operating systems for mainframe computers.

[Q] Running a C++ binary

So this is probably a silly question.
I have this rather complicated app that would be a heck of a lot of work to convert to Java.
It runs in the command line and works fine in Linux.
Trying to run it fails, but x86 bytecode probably isn't very ARM friendly.
Is there a specific way I need to compile the application?
Is it even possible to run it from a console emulator?
Thanks.
Try Android NDK
I am also new to Android Dev ( 15+ years Linux, 10+ years Java, etc.)
I am not an expert but for your purposes you need the "Android NDK" in addition to the "Android SDK" that most developers utilize.
"The Android NDK is a toolset that lets you embed components that make use of native code in your Android applications.
Android applications run in the Dalvik virtual machine. The NDK allows you to implement parts of your applications using native-code languages such as C and C++. "
Basically the tools are needed to cross compile C++ source code for the target ARM environment.
I am prevented from posting the download URL for some bizarre reason, but it is listed under "Native Development Tools" on the left side of the web page for the standard "Android SDK" download.
Yeah that's because you are new. It's a system to prevent spammers from posting URLs.
When you have a couple of posts the restriction will disappear
Anyway; found it, seems to be what I'm looking for.
I'll check it out in the morning.
Big thanks
Dmitry Moskalchukhas written a patch for the ndk to better support c++ see crytax dot net there are posts on google groups android-ndk talking about it
Thxs for the info. I was aware that the NDK did not include all of the libs that desktop Linux/UNIX developers expect. The suggested patched version adds the STL libs back in.
Sent from my PC36100 using XDA App
There are A LOT of libraries missing
I guess I'll just keep it a hosted app.
Thanks for all the input

Need someone who can convert GENUINE java to ANDROID/GOOGLE Java

Need someone who can convert GENUINE java to ANDROID Java ... (Java->Dalvik VM)
i have just visited HUMNUT and I am trying to use humnut on android zenithink 180 which is the c71 tablet
HumNut Company Info
We are Humnut. A Dublin based company that started as an idea and with only £250 in 2008 the company was established. Our goal back then was to create a truly free way of making telephone calls to landlines. That was our aim then, and it is still our aim today.
The difference being, we now have the technology up and running.
So how we do it is simple.
We have sourced and are using some of the latest in technologies to run our service and we aim to give our users the best quality we possibly can. Our technology that we use for making the telephone calls is constantly under development and we invest heavily in making it user friendly.
WHAT I WANT FROM HERE IS THAT SOMEONE WHO IS ABLE TO DO THE FOLLOWING
Android = Java | Java.net
weblogs.java.net/blog/opinali/archive/2010/08/17/android-java
open the Browser, press Menu and touch More > Settings>
Tap and put a check mark on this two options: "Enable JavaScript" and "Enable plug-ins"
If a website developer converts their Java .class files to .dex files needed by the Android platform, then that might work.
the Android platform is NOT Java. It is
an entirely new platform which, at best, has a compatibility layer for
Java code.
Android uses the Dalvik VM, which is a register-based VM whereas JVM
is stack-based. Neither the specification nor the source code for
Dalvik are available, but it is clear that the bytecodes are quite
different from Java bytecodes. There is a translation tool from JVM
bytecode (.class files) to Dalvik bytecode (.dex files) but it is a
build-time tool only. JVM bytecodes are never loaded onto an Android
device.
The reason for the custom VM is that Dalvik is optimized to allow
> multiple instances of the VM to run simultaneously even in little
> memory. Each Android application runs in a separate Linux process.
please people keep sending HUMNUT requests to enable/convert website to android java... through humnuts contact form

[Q] how to run java web?

can someone tell me how to run java enabled websites on my phone, as i need it for my online transactions through my banks website, my android phone is working fine but no result on windows phone?
Your bank should offer a mobile version of the site. There's no way to run Java applets on WP7 currently. I don't think you even can on Android (contrary to popular belief, Android doesn't use Java bytecode and has no JVM; Dalvik uses Java as the source langauge but can't load Java .class files). Try setting your IE to the "Mobile" browsing mode (this just causes it to tell web servers that it's a mobile browser, which often gets more useful code in return).

Porting Android to GNU/Linux, Mac and Windows.

I have been thinking about Firefox OS. Why anyone would buy a Firefox phone, if the platform (Apps store and apps) are implemented in the Firefox web browser for Android? What actually IS the Firefox platform - A so called 'Operating System' or the special gecko runtime? I think it's the gecko runtime.
Android is the same (yet dissimilar). Is Android an OS? or is it just a sophisticated Java runtime enviroment? I think, it's mostly that sophisticate Java enviroment.
Java's purpose was to create a platform that abstracted out across most other platforms (the UNIX's, Macintosh and Windows). It gave developers freedom, it gave businesses more flexible architecture, and it gave the FOSS community a powerful way to touch and intergrate free software onto multiple platforms at once. Android is implemented some what ontop of Java. (This makes sense, as almost all non-smartphones used Java Micro edition, I believe.)
But if everything Java, works multiplatform, why can't Android too?
I do know of course there are dependancies in the Java underworld within Android itself (camera, sensors libraries and etc...) Again, doesn't Java abstract that all out?

Categories

Resources