PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Re: java api
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Re: java api
![]() |
Re: java api |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Thanks for the reply
We are planning to design a program that uses Bluetooth ,and we couldn't find an API written in .net. We could find API's in Java so we have to use Java API's. You can see that socket communication doesn't work in our situation, so can we use Java API's in .net CF? or do you have another way to do that? "Alex Yakhnin [eMVP]" <a.yakhnin@nodirectemails.att.net> wrote in message news:0afe01c3449b$15914f10$a501280a@phx.gbl... > Where's your "java api" located on the desktop or on the > device? I either case your best bet would be to use > Sockets communication. > > HTH... Alex > -- > Alex Yakhnin, Microsoft Embedded MVP > IntelliProg, Inc. > http://www.intelliprog.com > "Check out our Compact Framework controls..." > > >-----Original Message----- > >hi,is there any way to call an java api from CF project? > >Regards.. > > > > > >. > > |
|
|
|
#2 |
|
Guest
Posts: n/a
|
There are a number of Java Virtual Machines for Pocket PC.
http://www.comp.lancs.ac.uk/computi...nd/ppcjava.html has a nice chart of some of them. Keep in mind that if you go this route, your whole app would need to be written in Java. I do not know of a solution to use Java with .NET. CONS: Writing the whole app in Java. PROS: (J2ME) Your app could be ported to the PalmOS, a cell phone or just about any device capable of running a J2ME VM. You get to use your Bluetooth API. Another alternative is to learn how to control the Bluetooth card via the serial port. This method can be done in .NET CF by P-invoking CreateFile,ReadFile,WriteFile,CloseHandle, but again there will probably be a learning curve for trying to learn the serial protocol. "Erdem ALKILIÇGiL" <erdem.alkilicgil@mobilsoft.com.tr> wrote in message news:OM3yNRRRDHA.1868@TK2MSFTNGP11.phx.gbl... > Thanks for the reply > We are planning to design a program that uses Bluetooth ,and we couldn't > find an API written in .net. We could find API's in Java so we have to use > Java API's. You can see that socket communication doesn't work in our > situation, so can we use Java API's in .net CF? or do you have another way > to do that? > "Alex Yakhnin [eMVP]" <a.yakhnin@nodirectemails.att.net> wrote in message > news:0afe01c3449b$15914f10$a501280a@phx.gbl... > > Where's your "java api" located on the desktop or on the > > device? I either case your best bet would be to use > > Sockets communication. > > > > HTH... Alex > > -- > > Alex Yakhnin, Microsoft Embedded MVP > > IntelliProg, Inc. > > http://www.intelliprog.com > > "Check out our Compact Framework controls..." > > > > >-----Original Message----- > > >hi,is there any way to call an java api from CF project? > > >Regards.. > > > > > > > > >. > > > > > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
If all you need is Bluetooth connectivity. Just find a vendor that has
native libraries for BlueTooth and pInvoke. I am sure that HP provides native Bluetooth libraries for the iPaq. The cost of cross calling between two managed envinronments is too high. B -------------------- > From: "Trevor" <tbalcom@s-s.com> > References: <u2hisdJRDHA.2316@TK2MSFTNGP12.phx.gbl> <0afe01c3449b$15914f10$a501280a@phx.gbl> <OM3yNRRRDHA.1868@TK2MSFTNGP11.phx.gbl> > Subject: Re: java api > Date: Tue, 8 Jul 2003 14:58:27 -0400 > Lines: 48 > X-Priority: 3 > X-MSMail-Priority: Normal > X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 > X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 > Message-ID: <ORf5WMYRDHA.2460@TK2MSFTNGP10.phx.gbl> > Newsgroups: microsoft.public.dotnet.framework.compactframework > NNTP-Posting-Host: uslec-66-109-64-250.cust.uslec.net 66.109.64.250 > Path: cpmsftngxa09.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl > Xref: cpmsftngxa09.phx.gbl microsoft.public.dotnet.framework.compactframework:10158 > X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework > > There are a number of Java Virtual Machines for Pocket PC. > http://www.comp.lancs.ac.uk/computi...nd/ppcjava.html has a nice > chart of some of them. Keep in mind that if you go this route, your whole > app would need to be written in Java. I do not know of a solution to use > Java with .NET. > > CONS: Writing the whole app in Java. > PROS: (J2ME) Your app could be ported to the PalmOS, a cell phone or just > about any device capable of running a J2ME VM. You get to use your > Bluetooth API. > > Another alternative is to learn how to control the Bluetooth card via > the serial port. This method can be done in .NET CF by P-invoking > CreateFile,ReadFile,WriteFile,CloseHandle, but again there will probably be > a learning curve for trying to learn the serial protocol. > > "Erdem ALKILIÇGiL" <erdem.alkilicgil@mobilsoft.com.tr> wrote in message > news:OM3yNRRRDHA.1868@TK2MSFTNGP11.phx.gbl... > > Thanks for the reply > > We are planning to design a program that uses Bluetooth ,and we couldn't > > find an API written in .net. We could find API's in Java so we have to use > > Java API's. You can see that socket communication doesn't work in our > > situation, so can we use Java API's in .net CF? or do you have another way > > to do that? > > "Alex Yakhnin [eMVP]" <a.yakhnin@nodirectemails.att.net> wrote in message > > news:0afe01c3449b$15914f10$a501280a@phx.gbl... > > > Where's your "java api" located on the desktop or on the > > > device? I either case your best bet would be to use > > > Sockets communication. > > > > > > HTH... Alex > > > -- > > > Alex Yakhnin, Microsoft Embedded MVP > > > IntelliProg, Inc. > > > http://www.intelliprog.com > > > "Check out our Compact Framework controls..." > > > > > > >-----Original Message----- > > > >hi,is there any way to call an java api from CF project? > > > >Regards.. > > > > > > > > > > > >. > > > > > > > > > > > Bar(d)ak Cohen ..NET For Devices groupnet@online.microsoft.com -Please do not send email directly to this alias. This alias is for newsgroup purposes only -This posting is provided “AS IS” with no warranties, and confers no rights. |
|
|
|
#4 |
|
Guest
Posts: n/a
|
Thanks for the help!!
we plan to communicate with a server via bluetooth .Is it possible to do that using the serial port? Thanks in advance, |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

