pthread - Android Software Development

having trouble with batchy pthread execution in a JNI so library
Does anyone have any insight to the level of support for pthreads in android?
This same code has been ported and tested on : PSP, iphone, PC and threads behave properly. Hopefully, there is a simple config solution.

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.

Leading underscore in function name

Hi!
I try to integrate an external library into my vs2005 project while using the Windows Mobile 6 SDK. Of course, I added the additional directories and dependencies to the project settings, but I get some LNK2019 errors anyway.
So I created a dump of the *.lib files using "dumpbin.exe" and discovered that all function names start with a leading underscore. I found some precompiled parts of the library where there are no leading underscores in the function names and I can call them without any problems. But if I build those parts of the library on my own, there again are the LNK2019 errors and the "_functionname()" convention in the *.lib files.
Is there either a way to avoid those underscores when compiling the library or to call those function out of a windows mobile application?
Thanks in advance!
This looks a bit odd.
C++ decorates exported functions unless you add a def file to the project, but there is always way more garbage in the names.
What I don't understand is, why do you have a problem using a function that starts with an underscore?
Such names are perfectly acceptable in C / C++, in fact some C native functions like _wfopen start with an underscore.
What language are you programming in?
Also it might help find the solution, if you tell us what library you are using. Is it something available for download or your own creation?
Thanks for your quick reply.
I am working on a porting of the intel openCV computer vision library and I try to include it into a VS2005 C++ projekt created with the wizard for windows mobile 6.0 sdk for testing.
It seems that the problem appears when I switch the system to "/SUBSYSTEM:WINDOWSCE". Otherwise the library works perfectly.

how to develop more codec for android?

Hi,all!
I am now beginning a multimedia project (audio/video... player) on android platform. But android 2.1's codec support is rather limited (androidappdocs.appspot.com/guide/appendix/media-formats.html). It's required to do some extension development to support more codec, ape, flac,rm, rmvb,for example. I ran around the net for the whole day, but i failed to find any related referrence and source code.
so my question: is there some open project do the same or similar things? i need some open source code to study!
i hope there would be some experienced guys give some tips for development! Thanks in advance!
i found a post (n2.nabble.com/Port-Gstreamer-to-Android-td2410295.html) trying to port gstreamer to android.
but still i don't know how to continue...
I'm thinking it would be better to port mplayer its a bit hevier but in my experience it's more reliable/stable.
look around i think someone got mplayer running and decoding video but was strugling with acctually displaying it. my guess is you would need some sort of java front in to tie it to the android display system unless you could go through opengl or something

Porting MAME to Android

I'm not a programmer, I just want to compile MAME for the Android. But, of course compiling code within the Android platform is not possible (as one would do it in Ubuntu or Debian), so I need the Android SDK and enough knowledge of java to call the native code, which needs to be packaged by the NDK, launched from within Cygwin.
Seems there will also be some video issues, beyond my comprehension. MAME developer R. Belmont posted this on porting MAME to Android:
The OpenGL support won't help you with GLES, that'll need to be an entirely separate code path
Click to expand...
Click to collapse
Whatever that means, it sounds like a lot of work. Looking around for similar projects for examples on how to call native code like the source for MAME , I found the java activity source code for aDosBox. It's also an emulator, but also has video requirements and uses native source as it's base. I'm still decrypting what it does, but for a developer (perhaps you!) looking to port MAME, it might be a good place to start.
What would be cool, is a couple templates I could just plug the needed particulars into. One for the Android.mk file that adds any required libraries needed for video stuff when I use ndk-build, and one for the java activity that simply calls the native code.
The MAME source code also has an SDL backend in the included build system. The build system 'detects' what platform it's on and builds accordingly. Can SDL be used in the Android SDK?

Accessing ttyS1 from Java

I'm trying to figure out how to best access ttyS1 on the NST from Java. I'm curious if anyone else has done this yet - don't see any results from searching.
I understand there is no Java serial port library, but there are a couple native ones such as android-serialport-api. This library includes a native demo program that runs fine on the NST - I've hooked up a GPS receiver to ttyS1 rxdata pin and can see the data coming in.
I've done similar on the Windows platform - accessing native libraries from C# and VB, but as a Java noob I'm a bit intimidated.
My limited understanding is that native library access from Java can be done via JNI or JNA - both methods look a bit complicated.
Thanks, Tom

Categories

Resources