NDK porting question - AlmostTI - Android Software Development

Hello,
I am interested in trying to port this project:
http://fms.komkon.org/ATI85/
to Android. This is a TI calculator emulator.
I would like some advice as to where to partition the code between C and Java.
My thinking right now is that I should try to replace the X calls in the Linux version of the emulator (which actually is core dumping on me, but that is another story) with OpenGL calls. Then use OpenGL for all graphical display in Android and only use Java for touchscreen input.
Is this the best way to go about this? Or do I really need to move more to Java?
Thanks for any advise. If someone with more experience is interested in this, that would be great - I don't have much experience in this space.
xnappo

Related

Python on WM5?

I'm working with a team considering this - any thoughts? Any pointers to previous discussions are welcome, but I didn't see any. Also, even if advice is don't do it, any ideas or suggestions for optimization would be great. HW is Apache. Thanks in advance, Jeff
umm hate to point out the obvious but its been done, there is a port of python IDLE available already
as seen here
http://sourceforge.net/projects/pythonce
Sorry - should have been more clear - we're looking at developing Python apps on top of that port. I'm curious as to whether people have any suggestions on how to improve performance of Python apps running on Windows Mobile.
You should as those sort of questions on the PythonCE Mailing List:
http://mail.python.org/mailman/listinfo/pythonce
Python is just a bitza of C and other languages such as ruby etc.
what would you want to do with it on windows mobile that you can do in those anyway?
im currently developing an online game (as part of a larger project and for windows/ linux/ mac) and it is quite usefull, but to establish it on a new platform would require a bit of ground work. i have been able to run some scripts ive written for the desktop on the CE version but it is limited to what it can do.

Ideas for Google Android Challenge

Hello all,
This post is in regard to the Google Android Challenge put out by Google to create/develop new software for the Google Android shell. If you haven't had a chance to read about it, it's basically a new OS created by Google to run on any type of PDAesque cellular phone. The challenge issued is then to develop new software for this OS (written in Java) so that when it is released it will have software available for it.
My question to all of you is what software would you like to see developed for this new OS? The reason I am asking for ideas is because I am a CS undergraduate student working in a research group to create one of these programs. Ergo, I figured asking you guys what you'd like to see created would be the best way to get ideas that will make sense and benefit the community.
Any ideas you submit here may be used in the creation of new software--if you require idea copyrights that can be worked out.
Thank you all in advance,
Jake
Jake Lake
Undergraduate Student at LCSC Lewiston, ID
Hello Jake,
We'll I'm a Java programmer too, not thinking of entering the challenge though. Had a quick look at the SDK for Android and it does'nt seem like pure java, more like a hybrid of C and Java does'nt it?
Since I have'nt had a thorough look at it, I'd like to ask you a few questions regarding the freedom to program on the platform.
Since it does'nt use the "normal" JVM but googles Davlik where theres no byte code but script code, does it allow better interaction with the hardware, and is it faster? Also can you implement equallizers and other effects in a media based application, which of course was not possible on J2ME. I was thinking on a All-round mediaplayer for Android, something like Rockbox which maybe found at www.rockbox.org which is a linux based program used on iPods etc.. but has been ported to Linux based EZX phones.
Regards,
Akshay

WM6 compiler

I'm looking at developing a biomonitoring application, the setup to consist of a 24 bit ADC with an Atmel AVR microcontroller sending data via Bluetooth to the mobile phone for display. I don't have a large budget so am looking for freeware or something a lot cheaper than Visual Studio to develop the application to run under WM5/6. It has to be compiled due to the amount of processing needed.
I prefer to write in C/C++ . Pascal would be a 2nd choice then anything else except Basic.
For Windows development I use Borland C++ Builder and have used Delphi. On the embedded side I use Codevision AVR C compiler.
I'd appreciate recommendations for development software. TIA.
I got this C compiler to work a while ago (managed to recompile a few of my desktop PC SDL projects to ppc):
http://sourceforge.net/projects/wince-xcompile
[EDIT]
Sorry, ceGCC is what i was using, not xcompile:
http://cegcc.sourceforge.net/
[/EDIT]
It's free, but it's for linux (if you don't have linux, that might be a good reason to give it a try ). Also, the problem is that it doesn't have an IDE of its own, and no graphical interface editor.
There's also pgcc, allowing you to compile applications directly on your pocketPC, but i wasn't able to make it compile any GUI application, only console ones (but i didn't really spend much time trying). There's a working link and a short info on how to use it here:
http://www.aximsite.com/boards/business-development/135816-pocket-c.html#post1187340 (sorry for linking to other forum, but i didn't want to post someone's tutorial as mine).
Anyway, i'd love to hear about any other free alternatives as well
you could try embedded visual c++.
it is free but you can not debug on devices powered wm5 or higher. you will need the ppc 2003 sdk and win xp prof or 2000.

Jython in Android?

Hey Folks,
I was wondering if anyone knew if it was possible to use Jython instead of plane Java for android development? I don't know much about Java development but I'm with Python. I was figuring that this might ease me into it better. Any thoughts?
Thanks,
-=GB=-
Have you had a look at the Android scripting environment?
http://code.google.com/p/android-scripting/
http://google-opensource.blogspot.com/2009/06/introducing-android-scripting.html
http://code.google.com/p/android-scripting/wiki/PythonAndroidAPI
Regards,
Akshay
Thanks aksd,
I don't know how I didn't find that before. Perhaps I should have just searched for Python and Android as opposed to just Jython and androind.
Anyway, this is very cool for prototyping and simple scripting. However, the main thing I was hoping for was writing apps in Python (via Jython) that could then be distributed on the Marketplace. It's kind of to bad. It doesn't look like anyone is really trying to port Jython to Android because ASE is sort of Google's official response to the whole thing. On the whole, a really great thing for people who just want to script Android but not really for App development.
In all of this searching I did find some interesting information about how to link in C libs so you could code some of the hardcore speed sucking elements in C (like a game engine) and then make calls into it via Java. I didn't know that was even possible so... Pretty cool stuff.
Hey ngrava,
I'm not much into scripts, so dont really follow whats happening with scripting and Android.
If you wanted a bit of a performance gain you can use the NDK and call the JNI to execute native libraries or code. been there for awhile but few use them. Java is just so much easier than C .
Theres a lot of interesting stuff going on on the Android platform, Mono being ported to Android, Scala being ported to Android, I'm actually currently working on profiling the performance of scala code on android.
Regards,
Akshay
On the Google DevFest on Argentina, Google´s ingeneers afirmed that they are working to make more languages availeable on Gingerbread, they specifically mentioned Ruby. We just have to wait to see if this is true and if we are going to be able to ship apps of other languages to the market, and I´m not sure if they will be backwards compatible with earlier versions of android as well.
PD: Oops, sorry for reviving this old post, I just realised i clicked last page instead of next

galaxy tab and a java applet =]

does it run java or not?
can someone go on a java applet and tell me what it says?or does?
guess ill have to buy one and see...
will
be posting an update soon
Sorry to kick this one alive.
I was hoping I could run scottrades live ticker aplet on here. No luck so far.
Anyone know a way to run java aplet?
Thanks
Yeah it doesn't support a java applets. Test it on my friends. I wonder if honeycomb supports it?
Sent from my HTC HD2 using XDA App
Investigated this myself -- despite android have 'some java' built in (i.e. dalvik VM) it does't have a VM capable of running a java applet.
One of the big missing things in Dalvik is the class libraries that are part of a normal JVM/JRE/JDK. In particular, it doesn't have awt, and/or swing (class libs used for UI type stuff).
So applets -- nope. Sometime? Maybe ... I think the OpenJDK guys have all the needed class libs making it JDK compatible but not having any proprietary encumberances. Maybe using this, there is a snowball's chance in hell that some enterprising organization or person, could attempt to cobble in some sort of support for more vanilla java stuff; maybe even including applets.
anybody have any other info on this?
fwelland said:
Investigated this myself -- despite android have 'some java' built in (i.e. dalvik VM) it does't have a VM capable of running a java applet.
One of the big missing things in Dalvik is the class libraries that are part of a normal JVM/JRE/JDK. In particular, it doesn't have awt, and/or swing (class libs used for UI type stuff).
So applets -- nope. Sometime? Maybe ... I think the OpenJDK guys have all the needed class libs making it JDK compatible but not having any proprietary encumberances. Maybe using this, there is a snowball's chance in hell that some enterprising organization or person, could attempt to cobble in some sort of support for more vanilla java stuff; maybe even including applets.
anybody have any other info on this?
Click to expand...
Click to collapse
Let us know thanks.
fwelland said:
anybody have any other info on this?
Click to expand...
Click to collapse
There is Java SE embedded for ARM which should provide JavaSE with all standard libs such as awt and swing.
Don't know if this runs on the Galaxy Tab though, did not try for myself.

Categories

Resources