Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How create a interface between a J2ME and a synthetizer ?

 
Ould Nadif
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am looking for a solution to create a interface between my application J2ME and my synthetizer (embarked on the handset) written in C/C++.

The synthetizer is developped by my company in (pur) C/C++ for some manufacturers.It take a midi file like parametre and plays it.I am looking for a solution in order that my J2ME application it to communicate with this synthetizer.

I can ask to synthetizer's developper to developp a API for J2ME to acces the mobile's resources(filesystem).

How create a API from(synthetizer C/C++) that I can use from my J2ME application? Or What do I ask to the handset's manufacturer in order to use their API from my J2ME application.


OULD NADIF
[ February 01, 2005: Message edited by: Michael Yuan ]
 
Ould Nadif
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To be clear, Let's take a example:
So I create a api.jar which I ambark on the handset:

How to put it in my Classpath from my J2ME application?

OULD NADIF
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OULD,

Please do not address the question directly to me. I would prefer to maintain this as a community site. So, I removed the "Urgent Michael" from your original subject line.

Since MIDP does not allow native methods, I do not think you can access the C/C++ program on the phone.
 
Ould Nadif
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry Michael and you are right,


About my problem, Let consider that I am a manufacturer of mobile like Nokia or Siemens so on ...
if some manufacturers like Nokia(for example ,nokia-ui API) or siemens(siemens-extension-api) etc ...could create their owner API to exploit some specificities of their handset, then I may do it too.

How do they do ?


OULD NADIF
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, they control the JVM and can hardwire things into the C code for the JVM before they compile. In fact, the CLDC allows "native methods" for manufacturer or operator only -- as a security measure. Unless you can re-compile and replace the JVM on the device, you cannot use native calls from your j2me app. I do not like it but this is the way it is setup.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic