Developing with J2ME in HTC Diamond - Touch Diamond, MDA Compact IV General

Hi everyone, first post here!
I am trying to write a imple app in J2ME that is able to give me some measure of localization info printed on screen. To my demise, I found out that the Java VM existing in the HTC Diamond (Esmertec) does not support the Location API (JSR179) and not even the typical bluetooth API! I am currently trying to, somehow, access GSM info like CellID, so at least I am able to output something.
Has anyone ever tried to do something like this with the HTC, and could provide some insight, plz?
BR,
Oldiamons

http://wiki.xda-developers.com/index.php?pagename=Java, MIDlets
but that being said wm is a horrid java platform
you're better off making c# or c++ apps for wm
java is best for symbian or android

Related

Diamond Native Direct3D Development

hello,
I am the owner of an HTC Touch Diamond device (UK) with original
-ROM version: 1.37.405.1 WWE,
-Radio version: 1.00.25.03,
-Protocol version 52.26a.25.09U
I have been trying to compile the native C++ Direct3D samples from WM5 and WM6 SDKs, but I am finding problems. Specifically, I am trying to check the accelerated HW drivers, by running these samples. If I have understood correctly, D3DM runs over OpenGL ES, in such devices. The managed wrapper example provided in http://www.koushikdutta.com/search/label/Managed OpenGL ES, works perfectly, which means that 3D is supported by my device and ROM versions.
Initially, the problem was with the CreateDevice() D3DM function, but with the help of 'omikr0n' found in http://forum.xda-developers.com/showthread.php?t=359534&page=201, this function returns now successfully. I have to note that the lights.exe sample, by 'omikr0n', runs flawlessly.
After making those changes in every sample application, the result that I get is a transparent screen and after that the application freezes. In more detail, in the first sample, where a colored screen has to appear, I get nothing, even though the application is running. I run it in Debugging mode, but I cannot pinpoint where the problem comes from, as all functions are executed successfully.
Can you please help me resolve this issue, by informing me if there is a problem with my code or the ROM versions of my device. If it is the code, can you explain what has to change? Also, do the new official ROMs by HTC include better drivers? I would be glad, If I could avoid upgrading ROM, but if this is the case, I will have to do it.
Many thanks to all 3D enthusiasts.
Have you seen this thread?
http://forum.xda-developers.com/showthread.php?t=415873
Maybe better to ask there.
hello,
In the thread that you mentioned, the author uses OpenGL ES instead of Direct3D Mobile and Managed (C#) instead of Native (C++) code. Although it is a breakthrough, these are not the requirements of my project.
I am looking for the specific programming parameters. which D3DM structures need in order to produce a visual result on the screen. After making the WM5/6 samples work, I can continue with more specific developmental issues.
Thanks
if it's under Managed Direct3D then ms stoped that platform to only focus on XDN
everybody who were using it on pc all moved to the new ms horse or do pure opengl from .net
hello Rudegar,
The samples are writen in C++, but the problem is in execution time because they do not produce the expected result and freeze. I believe that there have been several implementations (eg. lights.exe from omikr0n), which use specific parameters that allow to run successfully. I am trying to find, which are those parameters.
What is XDN that you mentioned?
I'm sorry, but I probably won't be too much of a help here. Lights.exe application is written in .NET (managed code) in D3DM. AFAIK D3DM is quite different for managed and unmanaged applications.
sorry ment xna
http://en.wikipedia.org/wiki/Microsoft_XNA

HTC TyTN II Kaiser - C++

Hi,
I'm working on a networking project. Im using the following device:
Platform: HTC TyTN II Kaiser
Operating System: Windows Mobile 6.1
I have a C++ programme that runs on linux in my computer. How can I run the same in this mobile device?
Many thanks
*Thread moved*
You need to use MS Visual Studio 2005 (or 2008) to compile the C++ program.
Or embedded visual C++.
A list of dev tools for PPC is on the wiki : http://wiki.xda-developers.com/index.php?pagename=Complete list of Development links and resources
Thanks
Dave
DaveShaw said:
*Thread moved*
You need to use MS Visual Studio 2005 (or 2008) to compile the C++ program.
Or embedded visual C++.
A list of dev tools for PPC is on the wiki : http://wiki.xda-developers.com/index.php?pagename=Complete%20list%20of%20Development%20links%20and%20resources
Thanks
Dave
Click to expand...
Click to collapse
Throwing in my 2 cents in. Save yourself the trouble and don't even consider Embedded Visual C++ (4). Stick VS 2005+ and you'll be good.
The free express versions do not support mobile development.
nitro2u said:
Hi Peter,
Can I please know how to use Visual Studio to run C++ code on a Windows mobile device?
Is there a special version of VS that i need to look for?
Please kindly drop me a reply to:
thanks a lot
Click to expand...
Click to collapse
This is what you need to know. There are SDKs for Pocket PCs that are built into Visual Studio. The default ones are adequate. Typically, you'll connect to a PDA/PocketPC via ActiveSync. Visual Studio will pick up on this. There are specific mobile properties and options for this.
From that point, it's point and shoot. When you debug an application, it will automatically go over to the Windows CE device. If you're doing .Net it will install a cab for .Net
Thanks again Peter for your reply.
Even though my project is to programme for this HTC device I don't have the device yet. So what I need to do is test it on my laptop.
Is there any Windows Mobile 'simulator' that I can run on my computer and test?
Also I will need to install Visual Studio on this simulator, is it?
http://www.microsoft.com/downloads/...52-f89e-4354-84ce-5d19c204498a&displaylang=en
http://www.microsoft.com/downloads/...3a-a651-4745-88ef-3d48091a390b&displaylang=en
Hi Peter,
Please take a look at the above links. Are these any of the ones I should use?
Thanks
You want to get a copy of Visual Studio 2005 or 2008 if you are serious about programming - I got it from my university and the MSDNAA Website which allows students to download selected MS software which is related to my course for free - and being a computer science student they give me VS 08.
But it is available on several torrent websites. Remember I am not recommending nor do I condone illegal downloading of pirated software - I am only providing information for research purposes.
Why do you want it?
Its a complete developement environment - You get everything - Including an emulator to test your programs. You can download plugins, which let you program in other languages (e.g. I have the VB Mobile plugin which allows me to program in VB for mobile devices) - The plugins are free.
Personally, I use it for a large chunk of my programming - as it supports a vast array of programming languages - and it includes built in compilers (I know this sounds obvious, but I have used programming environments which do not contain compilers), Emulators (for testing) and can support alot more with downloadable plugins (obviously you need the SDK).
If your PC is a little old (eg early XP) - get VS05 - but if you have a newer PC (late XP to Vista), get VS08, they both do basically the same thing.
Hope this helps.
Hi again,
Many thanks for your reply
Will this version of VS work for my project? :
Visual Studio 2008 Professional Edition (90-day Trial)
http://www.microsoft.com/downloads/...ec-ed72-4a79-8961-25635db0192b&displaylang=en
If it does... then i will install it first in my laptop (which run Win XP Pro) and then I will install the emulator.
This is the emulator right?
Windows Mobile 6 Professional and Standard Software Development Kits Refresh
http://www.microsoft.com/downloads/...3a-a651-4745-88ef-3d48091a390b&displaylang=en
Looking forward for your support thanks

Want to create/help develop an app, suggestions?

I want to start fleshing out my skills as a programmer and do some work to update my portfolio. I know quite a bit about .NET languages, and have been an avid user of WinMo phones for years. Does anyone have any suggestions for niche applications they'd like to see on Windows Mobile, or know of a current project that needs help in the programming department? I'd like to know so I can improve my skills.
gps
i want to some gps (navigation) tool which will work not only in cities it`s like guide or something like that for mountains

Java and Bluetooth

Hi everybody,
Basis: I still use 6.1 without any further ROM upgrades than the official ones.
Question: I tried to use a java programm that is supposed to access bluetooth in order to stear a bluetooth device. You might guess it - it did not work. I do get an error message.
Seems as if the build in java version is not capable of accessing the bluetooth part.
Does anybody know, whether newer version will be able to do that or what programm to install in order to get it done.
Appreciate your help
Viper
wm don't support java by itself it use what we call a midlet manager to run java
there are many different midlet managers other then what you got default with your x1
you can try others to see if they support it
but personally I would not hold my breath too much java on wm is not as good as on other platforms

developping bluetooth gateway for bk600

Hi forum,
first let me thanks for the forum, as a new htc hd2 user i found a lots of interesting things here.
I'm stuck with my old BK600 (com one, but omiz and freedom kb rebranded)
There are new keyboard (expensive), news driver (not working), future drivers (never going to be released), so as i'm a software developper, i wasn't really glad to abandon and to buy another. The problem is that've never made a driver for windows mobile, and i'm not specialized on bluetooth, so be indulgent...
After searching internet and seeing some articles, i've been on broadcom site (they're doin' the bt stack, so it's normal to go on their site ... guess what ...
i've downloaded the bluetooth stack sdk)
As i develop under linux, but also under windows, i've a visual studio 2008 installed. I compiled the Spp (probably serial port) sample, and without any driver the keyboard paired, negociated a serial port and the monitor show byte received when typing on the keyboard.
So now, if someone have some tutorials to write windows phone driver, i take.
I also would like to discuss about another approch.
What would you think to transcode the keyboard code received in a thread and to redirect them on standard input ? would it be possible ?
Anyway, my needs are very simple, just a bluetooth kb to type on it, no extra functions, ...
Regards.
CLS.
You should post this to the WM Development forum. There you will find many helpful developers.
Also as a first reply: you should search this on MSDN.
I wish you good luck in your journey for developing this driver...

Categories

Resources