This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
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 to invoke native methods in J2ME\MIDP application

 
Harish Tiruvile
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have an application written in Vc++,now i want to make use of that application in Mobile ,in core java we can use JNI to invoke native methods,I searched for "invoking native methods from MIDP application" in google,there i come to know that J2ME(KVM) wont support native methods.

So i want to know whether we have any other way to call programs written in c\c++\VC++ programs from MIDP\J2ME application .
[ December 17, 2006: Message edited by: harish thrivile ]
 
Faraz Masood
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At most, you can use a TCP/IP socket to communicate locally with a native application, google for "midpjni" ..

A rough sketch of the application goes like this , you have a symbian code listening on some port, the midlet communicate through that port and achieve the desired functionality.

Drawbacks: it will drain the battery quicker
no portability .... (too note a few )

hope it helps ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic