×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    5

    How to call platformRequest() from other class?

    Hi

    As platformRequest() is an non-static in the class MIDlet, but it seems I can't "new" the class MIDlet to call the platformRequest().

    So how can I call the platformRequest() from other class?

    Thankyou very much!

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    Pass a reference to your original MIDlet object:
    Code:
    class SomeClass {
      MIDlet m;
      //...
      // constructor
      SomeClass(MIDlet m, ...) {
        this.m = m;
        // ...
      }
      void someMethod() {
        // ...
        m.platformRequest(url);
        // ...
      }
    }
    shmoove

  3. #3
    Registered User
    Join Date
    Oct 2003
    Posts
    5
    It works! thankyou so much shmoove!

Posting Permissions

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