Java app run at the same time with Flash web site (WM) - General Questions and Answers

Hi all,
I have HTC HD2. I have on my PC roulette bot - JavaSE application that plays roulette on web based flash casino. I want to run it on my mobile.
I have in my mind two solutions, how can I run Java roulette bot at the same time as the flash casino.
1.) Make bot as Applet and run casino in iframe on the same HTML page.
Applet needs to be signed because I want to capture screen and click mouse, and skyfire stucks on downloading signed applet:
http://ampersand2.php5.sk/GUT/SimilarityFinderApplet1.html
Unsigned ones goes well.
2.) Install JavaSE JVM(if exists ) and run Java Application on Background and run at the same time Skyfire with opened flash web based casino.
Can you help me please with realizing this ?
Thanks a lot,
Synax

Related

PPC Emulator for Testing downloaded programs

Hi Guys,
I have searched high and low for the answer to this one, so I thought I'd give up and ask you guys.
What I need is an Emulator for PPC that I can use on my computer to test downloaded programs before I instal them to my XDA.
The problems are:
Active sync appears to only work with visual .net development suit, which I dont have the money to buy.
Embeded visual C does run a nice emulator, but it wont connect to the active sync and thuse I cant install programmes. There did seem to be a solution in useing the folder option in the above programe to access a Virtual SD card on the computer (shared folder on my drive) but how do I access the programmes?
I would prefer to try these programmes out in a sand pit if I could.
But there doesnt seem to be away.
Please dont flame me if I have missed an earlier thread or some google search... I am new.. I am not worthy... I have no flame retardent underware...
Edy
I don't have an answer for you, (I also would like to do this also!), but I don't believe you will be able to get the eMbedded Emulator to run 'real' apps because these apps are compiled for a CPU target, (usually ARM) and the emulator only runs 8086 compiles.
The emulator is more to test your own source code and it compiles for 8086, and when you are ready, you compile your source for ARM, MIPS, to distribute.
If anyone knows of a Windows based emulator that runs ARM compiled programs, I would LOVE to know about it.
I seem to remember there was a Palm version where you could simply drag and drop programmes into it and test them. Would be nice if that were so for the PPC.
Still noone said life had to be perfect ;-)
Edy
Ya, I came from the Palm world, and they did have an emulator that would allow you to run Palm apps. It wasn’t the great emulation, but it usually was good enough to give you an idea if you even wanted to bother installing it on your ‘real’ device.
Well, maybe there is one for PPC and we just don’t know about it… Anyone???
There is no such an emulator and making it is extremely difficult. You'll have to completely emulate whole CPU, some hardware and write your own OS just for this "virtual" PocketPC. Noone has done this.
So the long and the short of this is I need visual .net to be able to run the MS emu... Any here doing that? If so can you tell me if it is possible to install other programs for testing, or will the emu only work with applications you are writing yourself?
There is no such an emulator and making it is extremely difficult. You'll have to completely emulate whole CPU, some hardware and write your own OS just for this "virtual" PocketPC. Noone has
Click to expand...
Click to collapse
no it's that that difficult at all sure it takes some time to do
if you look around for emulators many many platforms come as emulated on pc systems like ps2 all the way back to mame
i have a few friends who just made a whole emulation of the arm cpu on the pc not a pocketpc or windows ce emulator but just pure arm
Rudegar said:
i have a few friends who just made a whole emulation of the arm cpu on the pc not a pocketpc or windows ce emulator but just pure arm
Click to expand...
Click to collapse
Please, can you provide us with a link? I was very interested in such an emulation to test Xanadux stuff without being afraid to render the Himalaya into a brick
Matthias
they are making it because they are embedded software developers
and they are making a project where they are programming to the arm cpu i dont know if they would part with the code but mind you it's no
pocketpc emulator and i doubt it would even support a graphic display apart from text since they dont need it for the project
i'm sure there must be some emulators out there
i mean the stuff in embedded visual c++ and visual studio 2003 and 2005
even if it's not a true emulator then it comes kinda close
embedded visual c++ does have an emulator, but you cant sync it with active sync and therefore you can only test programs that you are developing yourself. There was a posted solution for this involving a null modem cable and two com ports. But my computer only has one com port :-(
Looks like you need to buy Visual Studio .net to get a fully working emulator that can sync with active x and thus test programs....
Hi there,
Somebody correct me if I'm wrong about this, but I don't think even getting the .NET framework working with Microsofts PPC 2003 emulator will work as a true emulator for the actual device.
I have the emulators for PPC and SmartPhones installed since we are developing applications for mobile (but mostly Java based) phones. So far with our initial test developments, you can only run your own developed applications or applications that are currently being developed and compiled for the emulators. Final compiled applications (for ARM/MIPS) are different from the compiled versions for the emulators and won't work with it. Being like this, the compiled version for the ARM processors will not work with the PPC emulator.
Well, that is just my comment...
Cheers,
Hey, I haven't tried it yet, but this sure sounds like what we have wanted...
http://msdn.microsoft.com/mobility/windowsmobile/downloads/emulatorpreview/default.aspx
Hey, I just tired it, (installing an ARM app) and it works. Cool!
How do I download that program. or can somebody upload please.
How do I download that program. or can somebody upload please
Click to expand...
Click to collapse
* Visit http://beta.microsoft.com,
* Login using your Passport account, or create one if you don't have one.
* Use Guest ID MSDEVICE to access the Community Preview website
You'll have to create a passport but that shouldn't be a real problem? I tried to upload it to the FTP using upload:upload but it won't let me send the file?
I have to say that this tool / App is one of the best you can find on the Web. I can now emulate the Pocket PC on my PC to trial games / apps first without messing up my XDA2i.
Thanks for the link guys well done!!
Lee
Upload it plz!
can u upload it somewhere? i am unable to download from the MS site!!!
PLZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ.................
Re: Upload it plz!
studdocs said:
can u upload it somewhere? i am unable to download from the MS site!!!
PLZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ.................
Click to expand...
Click to collapse
I assume you installed the Microsoft ActiveX component called "Microsoft File Transfer Manager" right?
It's the requestor that appears just before the download begins... Then press "transfer" to begin the transfer ..
I hope it works for you...
Rayan
It would be helpful if somebody could upload this program, I am having no success after many attempts to download.
Here you go: ftp://ftp.xda-developers.com/DeviceEmulator050419.msi
(better use a 'normal' FTP client to download)

running application in C on mobile phone with Android

Hello !
SUMMARY: How to run pocketsphinx_continuous on mobile phone with Android, and how to do it with simulator of mobile phone with Android. PocketSphinx can be downloaded for free here, for both Linux and Windows: http://cmusphinx.sourceforge.net/html/download.php .
Click to expand...
Click to collapse
------------------------------------------------------------------------------------------------------------
SHORT EXPLANATION
I'd like to create application for mobile phone and server such that:
1. User runs application on mobile phone with Android, this application uses PocketSphinx. It is Automatic Speech Recognition software for devices like mobile phones, written in C. Somebody told me that "Pocketsphinx is used successfully on Symbian with minimal effort". (However I think Android may be better choice). My knowledge about Android is limited but I know something about CMU Sphinx. Can you help me, please, to run this PocketSphinx on Android? I also need to find simulator of mobile phone with Android. I have already found Wireless Toolkit and I tried to use this emulator, however I think it doesn't allow to run simulation of mobile phones with Android. (By the way I am limited in my project to mobile phone of the price up to about 160 euro; which Android version would be best for my application?).
2. This application communicates with the user. The users speaks digits and some other words (dictionary is about fifteen words, I can create language and acoustic models, as well as formal grammar in CMU Sphinx, with the use of SphinxTrain). The application recognizes those digits.
3. Based on this talk, mobile phone sends information about results of recognition to the server. I can do it in Java for CLDC/MIDP with httpconnection, POST method on the mobile phone side and with Tomcat on server. I think this httpconnection must be possible not only in Java ME, but also in Android C. But this is thing which will bother me later, now I'd like to run pocketsphinx_continuous on Android and try to modify it according to my needs.
Summing up, what I'd like to know is how to run demo pocketsphinx_continuous on mobile phone with Android, and how to do it with simulator of mobile phone with Android. (I've got Wireless Toolkit but I think it is not capable of running Android). PocketSphinx can be downloaded for free here, for both Linux and Windows: http://cmusphinx.sourceforge.net/html/download.php . There are two ways of installing it in Ubuntu. First is to unpack it (it is tar.gz), enter its directory and type "./configure", "make", "sudo make install". The other, different, is written in README file, i.e. run autogen.sh, "./configure", "make clean all", "make test", "make install". The result should be, among many other files, javadoc in doc directory.
------------------------------------------------------------------------------------------------------------
LONG EXPLANATION
What is required to give me some advices is written above. So if you don't want / don't have time to read the whole text, just above explanation is enough. But let me say about other possible approaches which I try to do. Those are worse than what I explained above, but I also tried them.
CMU Sphinx contains SphinxTrain to create acoustic model. It has got some different recognizers (also called decoders), those are PocketSphinx, Sphinx4 and some other. PocketSphinx is written in C and is for devices like mobile phones. Sphinx4 is Java application for PCs because it requires better hardware. There is good tutorial about using SphinxTrain with Sphinx4. It is here: http://www.speech.cs.cmu.edu/sphinx/tutorial.html . There is no similar tutorial for PocketSphinx. However with some knowledge about Android and C it is possible to run it on Android. The other approach than PocketSphinx, is using this Sphinx4. However it requires connection between mobile phone and server, sending audio data from cellular phone to server. It can be done with Skype, but there is still problem on server side with redirecting sound from Skype to Sphinx4. So you see there are two different approaches. One is to run speech recognition on mobile phone with PocketSphinx and Android. The other is speech recognition on server with Sphinx4. There are some ways to follow this second option. One is Skype on both server and mobile phone. (But there is problem with redirecting speech from Skype to Sphinx4). The other is too expensive Digium card. The third one is IVR, but I still look for good open-source IVR software. All of those three ways of second option involve Sphinx4. It was much easier to create application with Sphinx4. It is for PCs, not embedded devices, because it requires better device, extensive floating point math and some other things. But it has much better documentation than PocketSphinx. But I want to use PocketSphinx because I don't need to pay to anybody for access to mobile internet in order to send data through internet for application like Skype. The access to internet is required only for short time to send little text data with httpconnection, POST method. This is why I'd like you to help me, please, with running pocketsphinx_continuous on simulator of PocketSphinx on mobile phone with Android. (By the way, I see I've got installed S60 Developer Tools -> 3rd Edition FP1 SDK -> MIDP -> Emulator).
Summing up in a list, those are in CMU Sphinx:
I. SphinxTrain, which I can use to create files needed for speech recognition
II. decoders which use speech input and some files which I create with SphinxTrain, to follow speech recognition (input speech + files from SphinxTrain = are used by decoder)
II-1. PocketSphinx, written in C, for devices like mobile phones
II-2. Sphinx3, written in C, for PCs, actually the best developed
II-3. Sphinx4, written in Java, for PCs, with the best documentation
II-4. Some other, older versions
Those are possible approaches of solving my task:
I. Speech recognition on mobile phone with PocketSphinx. This is much better way than [II].
Problems: 1. running PocketSphinx on mobile phone with Android. 2. simulating mobile phone with Android on PC. I also thought that maybe I should consider Meamo, what do you think about it? Or use things different than CMU Sphinx, e.g. Simon, HTK, Julius. I looked at those other ASR engines and I think PocketSphinx may be best choice.
II. Speech recognition on server with Sphinx4. There are some different ways of establishing voice connection between mobile phone and server.
II-1. ordinary call from mobile phone to server; server has got Digium card. Disadvantage: Digium card is expensive.
II-2. to use Skype on both mobile phone and server. Problem: redirecting of sound from Skype to Sphinx4 and vice versa.
II-3. can you think about any other ways? I found that Asterisk may be useful.
Greetings !
Summing up, what I'd like to know is how to run demo pocketsphinx_continuous on mobile phone with Android
Click to expand...
Click to collapse
First step would be to setup a toolchain and compile the prog for android
or statically linked with uClibc.
Then push it onto your device and test if it works as expected.
You can also push it onto the android emulator that comes with the sdk.
Just my 2 cents...
Thank you very much!
Can you give me any links to tutorials which can be useful for me?
By the way I know how to create my own application in Sphinx4 and I know how to run demo in PocketSphinx, but I've got some difficulties with creating my own application for PocketSphinx. So if you can have a look at PocketSphinx http://cmusphinx.sourceforge.net/html/download.php and tell me which files I need to have to create new project for PocketSphinx, I would be greatful. I mean that for Sphinx4 the only what I need to do is to enter S:\tutorial\sphinx4-1.0beta3-src\src\apps\edu\cmu\sphinx\demo\helloworld and create my own ...\demo\my_application, and inside it analogically to what is here ...\demo\helloworld. In the case of PocketSphinx, to run the application, I need to enter S:\tutorial\pocketsphinx\doc and run pocketsphinx_continuous. So I check what I've got in this file and I cannot see what files and where I need to have in order to create new project. I uploaded directory doc with pocketsphinx_continuous here: http://www.speedyshare.com/files/19429494/doc.7z
Greetings and thanks once more !
Rough outline: You'll need the Android SDK and NDK, both of which are available from http://developer.android.com/. The NDK will allow you to compile C code. You'll need to wrap the C core in a Java layer to make it accessible to the rest of the Android system. The SDK also includes an emulator, which I believe you've asked for if I understand you right.
I haven't actually attempted this, so that's about all the help I can be, but there is sample code included with the NDK that should get you started.
Thanks for your answer !
I check the google and see that NDK is term of Android, because I knew only SDK abbreviation. I assume NDK is especially for porting (like porting PocketSphinx for Android). So am I right that with this NDK I don't need to change code of PocketSphinx? I think it would be too easy .
There also other question which I've got. It is not strictly connected with Symbian but there wouldn't be any need for porting if I won't solve this problem. I've got my application in Sphinx4. There are also examplary appications for Sphinx4 and PocketSphinx. I can run demos from PocketSphinx (as explained in first post), as well as demos from Sphinx4. I can change source code of demos from Sphinx4 to perform my task. I'd like to do similar thing with PocketSphinx, but even if it should be easy task, I cannot do it. In Sphinx4 it is much simpler because all source files are in one directory. In PocketSphinx it is done in somehow different way. (http://cmusphinx.sourceforge.net/html/download.php). Without ability to move my application from Sphinx4 there is no need for me to port this PocketSphinx to Symbian.
Greetings !
johnyjj2 said:
I assume NDK is especially for porting (like porting PocketSphinx for Android). So am I right that with this NDK I don't need to change code of PocketSphinx? I think it would be too easy .
Click to expand...
Click to collapse
NDK is used to write software for Android devices that are compiled natively to the platform -- for now, this usually means ARM. Java as you probably realize is a bytecode intermediate language that the java virtual machine converts to native calls at runtime. This means that Java is generally platform independent whereas your C code is not.
JNI as used with the NDK is the Java Native Interface (or something to that effect). It allows you to call code that has been compiled for a specific processor from Java. This means that you could put heavily optimized super fast calculations in a native library and call them from your Java app.
It could also mean, that you've more or less written your entire application in some native code, and then you have written a java shim that has enough code to initiate and start your native software. Beware, there be dragons here.
The fact that you CAN do this, doesn't mean you SHOULD. There are a lot of benefits to using the android platform and specifically using the android way of writing applications. Concepts like views, activities, intents, etc., greatly simplify how an Android device interacts with other Android devices and provides a consistent and powerful framework.
For something like SCUMMVM, it is a game (platform) that is very linear in design; you are either actively playing it, or it is on pause. How other applications are running while using SCUMMVM is inconsequential. It sounds like you have very different requirements.
Thanks for answer!
Isn't that link (http://cmusphinx.svn.sourceforge.net/viewvc/cmusphinx?view=rev&revision=9470) simply trying to copy engine library to Symbian, without effect? Only enginge won't help, there is also need to write from zero code which will use this library. So it looks like there is still long way to have it working. Do I understand it properly?
Greetings!

[Q] Needing JRE to access web page

I have a HTC Fuse with Energy Rom running 2Jul10 WWE on it and trying to no avail to get this web page to load that needs Java Virtual Machine.
Web Address:
Well it won't let me post the url, being a "new" member. I can add it when I have access.
Then select the first 3270 icon. I have tired with Opera 9.7 that is included in the ROM and it acts like it is going to load, but then errors out saying "A Java Virtual Machine is required to use WebConnect applets."
So then I try in Skyfire, but the progress bar goes about 3/4 of the way and then just hangs.
Also tried in IE, and says "A Java Virtual Machine is required to use WebConnect applets."
So I have searched and searched for a JVM for Windows Mobile 6.0 or 6.5 and installed JavaFX. But still doesn't work. I also tried the Java that is included with the ROM, leaving it running in background while going to the web site in either IE, or Opera. Still doesn't work.
Where to now? I have been able to get this WebConnect applet, a 3270 terminal emulator, to work on an iPhone using "Cloud browser" as the browser.
elehman3

[Q] The android can run java applet

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.

SmallBASIC for Android

Hello community, just thought I'd throw this out there for anybody interested in old school BASIC programming. There is an interpreter available free of charge on the Google Play Store which is the no non-sense SmallBASIC. The app itself is still in early development and a text editor app of your choice is required to edit the code and simply save file as a .bas so the interpreter can pick it up.
I know there are many other BASIC interpreters out there for Android but this is the first I know of just for SmallBASIC. Takes me back to the days of the old Palm Pilot and Windows Mobile device running the Style Tap PalmOS emulator. I tried running the SmallBASIC .prc file from the PalmOS on the version of Style Tap for Android but the app would crash everytime I tried executing a BASIC program.
Here is the Play Store link: https://play.google.com/store/apps/...dium=organic&utm_term=small+basic+google+play

Categories

Resources