Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Jan 2009

    Pause App & Canvas class variables

    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() {
    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
    Super Contributor
    Join Date
    Mar 2008
    The Capital of INDIA

    Re: Pause App & Canvas class variables

    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
    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