×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    40

    Question MIDlet communication

    Hi,
    I'm looking for a way to for two running MIDlets to communicate with each other. That way, when an event has occured on the first MIDlet, let's say a key press, the second MIDlet behaves accordingly.

    I tried using socket communication on localhost, but the transmission is horrible - i've sent messages from the server socket(the first MIDlet) to the client socket(the second MIDlet) in 200 millis intervals, and the second MIDlet received only 3 of 200 messages.

    I couldn't figure out a different way to do it,
    can anyone enlighten me?

  2. #2
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: MIDlet communication

    Hi rel1986,

    Can't you just have a reference to the second MIDlet and call a method on it when the first MIDlet receives the event? If they are on the same MIDlet suite that's possible. I might have not understood you requirement, though.

    BR,

    Juarez Junior

  3. #3
    Registered User
    Join Date
    Apr 2006
    Posts
    40

    Re: MIDlet communication

    I guess that it is possible, but i'll have to alter my code so that both MIDlets run through the same application.

    or is there a way to get a reference to the object that your application did not create? it might work with serialization or rmi, but j2me doesn't support either.

    It's not that critical, I was just wondering if communication between seperate MIDlets is available somehow..
    I know that key stroke simulation is possible with symbian code, but I couldn't find a j2me low-level equivalent way to use the phone in order to pass messages between seperate j2me applications.

Similar Threads

  1. calling midlet from midlet throws SecurityException on 6600
    By brianpegan in forum Mobile Java General
    Replies: 3
    Last Post: 2010-10-25, 05:31
  2. 'Response Unknown' when downloading midlet
    By Weevil in forum Mobile Java General
    Replies: 3
    Last Post: 2004-05-30, 17:01
  3. How to create two instances of midlet
    By marquito99 in forum Mobile Java General
    Replies: 0
    Last Post: 2004-04-30, 01:33
  4. Idea about securing MIDlet
    By falconi in forum Mobile Java General
    Replies: 0
    Last Post: 2003-11-11, 00:36
  5. Communication between MIDLet and C++
    By rahull in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2003-06-11, 02:48

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •