Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User petertai's Avatar
    Join Date
    Oct 2003
    Posts
    5
    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 shmoove's Avatar
    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 petertai's Avatar
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved