Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor rj12info's Avatar
    Join Date
    Jan 2009
    Location
    Bangalore
    Posts
    52
    Hi All


    I am working on halting a game when app is minimised.. I only know that puaseApp() gets called. I have a canvas class
    MainScreenCanvas mainsScreen_view; // Global variable

    protected void pauseApp() {
    System.out.println("mainsc");
    if(mainsScreen_view != null) {
    System.out.println("i am inside if");
    mainsScreen_view.pause_flag =1;
    }
    }


    I am unable to enter inside the if loop. Even though i am in MainScreenCanvas.(has got instatiated)
    Can anybody tell where I am wrong in my pauseApp code

  2. #2
    Nokia Developer Champion raj_J2ME's Avatar
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,314
    Well I am not able to see where have you created the object?
    I can only see the declaration code.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. Accessing Canvas Class from Subclass
    By phil_mw60 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2010-05-01, 20:22
  2. Linking Error(Undefined Symbol)
    By nile_mail in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 10
    Last Post: 2008-03-26, 23:32
  3. Replies: 2
    Last Post: 2007-03-14, 17:15
  4. 2 TRgb class variables crash app ??
    By sandopolus in forum Symbian C++
    Replies: 1
    Last Post: 2006-05-20, 23:28
  5. Exceptions while loading application
    By avinash_rs in forum Mobile Java General
    Replies: 0
    Last Post: 2003-06-09, 10:53

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