×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Regular Contributor
    Join Date
    Jun 2010
    Posts
    103

    Unhappy Applicaion is not running after isntalling on phone

    Hi to all,
    Hope you all will be fine. I made an application. Application is working fine on emulator. I just changed the background of application. After online signing when i install application on phone, then application install but not running. No error. When i click on application icon, it like page refresh and application didn't open. What could be the reason?

    Thanks

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: Applicaion is not running after isntalling on phone

    Check the crash code: http://www.developer.nokia.com/Commu...ded_panic_code

    And then try finding out which line of the code is causing the crash.

  3. #3
    Regular Contributor
    Join Date
    Jun 2010
    Posts
    103

    Re: Applicaion is not running after isntalling on phone

    Hi,
    I found something strange. First this thing is happened when i try to change the status pane skin. I am using this code on S60 5th edition.

    Code:
    void CMTN_STK_MenuAppView::ConstructL() {
    	
    	_LIT(KMbmFile, "z:\\resource\\apps\\header.mbm");
    	
    	/**
    	 * Obtain a reference to the status pane .This delivers a pointer to a 
    	 * CEikStatusPane, which can then be manipulated.
    	 * Although CAknAppUi::StatusPane() returns a pointer to a CEikStatusPane object,
    	 * the CAknAppUi object maintains ownership. Therefore, it would be inappropriate 
    	 * to place the object on the cleanup stack. 
    	 */
    
    	CEikStatusPane* statusPane = StatusPane();
    	
    	/**
    	 * To make the status pane invisible in the StatusPane example, two methods are used:
    	 * CEikStatusPane::CurrentLayoutResId()— This returns the resource ID for the 
    	 * current layout.
    	 * CEikStatusPane::SwitchLayoutL()— This changes the status pane layout to the 
    	 * resource ID specified.
    	 * 
    	 */
    	if (statusPane->CurrentLayoutResId() != R_AVKON_STATUS_PANE_LAYOUT_EMPTY) {
    			       statusPane->SwitchLayoutL(R_AVKON_STATUS_PANE_LAYOUT_USUAL_MIRRORED); 
    			    //statusPane->SwitchLayoutL(R_AVKON_STATUS_PANE_LAYOUT_VT);  // working
    			    
    
    	 } //end of if
    				 
             TAknsItemID id = KAknsIIDQsnBgAreaStatus;
    	 MAknsSkinInstance* skin = AknsUtils::SkinInstance();
    	CAknsItemData* item = skin->GetCachedItemData(id);
    	 if(item==NULL) {
    
    	     item = skin->CreateUncachedItemDataL(id);
    	}
    		   
            if(item->Type()==EAknsITMaskedBitmap) {
    
    	    CAknsItemDef* def = AknsUtils::CreateMaskedBitmapItemDefL(id, KMbmFile, 0, 0);
    				skin->SetLocalItemDefL(def);
    	} else {
    
    		CAknsItemDef* def = AknsUtils::CreateBitmapItemDefL(id, KMbmFile, 0);
    		skin->SetLocalItemDefL(def);
    	}
    		    
    	
    	/**
    	 * This resource is defined in AppViewContainer.rssi, which is in data subfolder. 
    	 * When the resource file is compiled, a constant representing the resource will 
    	 * be added to an .rsg header file generated by the resource compiler. The 
    	 * name given to this constant is the same as the name given to the resource in 
    	 * the resource file, but in uppercase. So, for the example resource defined above,
    	 * a constant named R_MTN_STK_MENU_SELECTION_VIEW will be created.
    	 *
    	 */
    	BaseConstructL(R_MTN_STK_MENU_SELECTION_VIEW);
    	
    } //end of ConstructL()
    strange thing is when i set "Build Configurations->Set Active->Emulator debug" then code works fine. Status pane skin changes. But when i set it to " Build Configurations->Set Active->Phone Release". Then code is not working. No error. But when emulator launches then there is no icon to click. And if I install sis on my phone then the same thing happens, means like page refresh.

    why i am facing this issue? what could be the reason? On emulator working fine, but on phone release no icon in the emulator.

    I want to ask one thing more. Suppose i added mbm image , say header.mbm and i use this code

    Code:
     if(item->Type()==EAknsITMaskedBitmap) {
    
    	    CAknsItemDef* def = AknsUtils::CreateMaskedBitmapItemDefL(id, KMbmFile, 0, 0);
    				skin->SetLocalItemDefL(def);
    	} else {
    
    		CAknsItemDef* def = AknsUtils::CreateBitmapItemDefL(id, KMbmFile, 0);
    		skin->SetLocalItemDefL(def);
    	}
    Now i add another bmp say background and now what should i use, the same thing like

    Code:
    if(item->Type()==EAknsITMaskedBitmap) {
    
    	    CAknsItemDef* def = AknsUtils::CreateMaskedBitmapItemDefL(id, KMbmFile, 0, 0);
    				skin->SetLocalItemDefL(def);
    	} else {
    
    		CAknsItemDef* def = AknsUtils::CreateBitmapItemDefL(id, KMbmFile, 0);
    		skin->SetLocalItemDefL(def);
    	}
    or do i need to chnage the number form 0 to 1 like this

    Code:
    if(item->Type()==EAknsITMaskedBitmap) {
    
    	    CAknsItemDef* def = AknsUtils::CreateMaskedBitmapItemDefL(id, KMbmFile, 1, 1);
    				skin->SetLocalItemDefL(def);
    	} else {
    
    		CAknsItemDef* def = AknsUtils::CreateBitmapItemDefL(id, KMbmFile, 1);
    		skin->SetLocalItemDefL(def);
    	}
    Thanks

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: Applicaion is not running after isntalling on phone

    What do you mean by but on phone release no icon in the emulator. ? if you do build for device, why would you expect to see something in the emulator ? Anyway, as the question here are not really related to original query, I would suggest you on starting new thread with them, and just concentrate on the original problem here.

  5. #5
    Regular Contributor
    Join Date
    Jun 2010
    Posts
    103

    Re: Applicaion is not running after isntalling on phone

    I mean that suppose if my application name is Hello World and i select emulator debug , then when emulator launches, then there is icon named Hello world on which you click to start the application. But on phone release when emulator launches then there is no icon to click.
    But on phone release sis files are generated. But when i install it on phone and click on icon then nothing happen. Why?

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Applicaion is not running after isntalling on phone

    What is in your .pkg file?

  7. #7
    Regular Contributor
    Join Date
    Jun 2010
    Posts
    103

    Re: Applicaion is not running after isntalling on phone

    here is my .pkg file

    Code:
    ; Installation file for MTN_STK_Menu application
    ;
    ; This is an auto-generated PKG file by Carbide.
    ; This file uses variables specific to Carbide builds that will not work
    ; on command-line builds. If you want to use this generated PKG file from the
    ; command-line tools you will need to modify the variables with the appropriate
    ; values: $(EPOCROOT), $(PLATFORM), $(TARGET)
    ;
    ;Language - standard language definitions
    &EN
    
    ; standard SIS file header
    #{"MTN_STK_Menu"},(0xE1BAA3E9),1,0,0
    
    ;Localised Vendor name
    %{"Vendor-EN"}
    
    ;Unique Vendor name
    :"Vendor"
    
    ;Supports Series 60 v 3.0
    [0x101F7961], 0, 0, 0, {"Series60ProductID"}
    
    ;Files to install
    ;You should change the source paths to match that of your environment
    ;<source> <destination>
    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\MTN_STK_Menu_0xE1BAA3E9.exe"		-"!:\sys\bin\MTN_STK_Menu_0xE1BAA3E9.exe"
    "$(EPOCROOT)Epoc32\data\z\resource\apps\MTN_STK_Menu_0xE1BAA3E9.rsc"		-"!:\resource\apps\MTN_STK_Menu_0xE1BAA3E9.rsc"
    "$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\MTN_STK_Menu_0xE1BAA3E9_reg.rsc"	-"!:\private\10003a3f\import\apps\MTN_STK_Menu_0xE1BAA3E9_reg.rsc"
    "$(EPOCROOT)Epoc32\data\z\resource\apps\MTN_STK_Menu_0xE1BAA3E9.mif" -"!:\resource\apps\MTN_STK_Menu_0xE1BAA3E9.mif"
    "..\help\MTN_STK_Menu_0xE1BAA3E9.hlp"							 -"!:\resource\help\MTN_STK_Menu_0xE1BAA3E9.hlp"
    "$(EPOCROOT)Epoc32\tools\MtnIcon.mif" -"!:\resource\apps\MTN_STK_Menu_0xE1BAA3E9.mif"
    "$(EPOCROOT)epoc32\data\z\resource\apps\header.mbm" -"!:\resource\apps\header.mbm"
    
    ; Add any installation notes if applicable
    ;"MTN_STK_Menu.txt"		-"!:\private\E1BAA3E9\MTN_STK_Menu.txt"
    
    ;required for application to be covered by backup/restore facility 
    "..\sis\backup_registration.xml"		-"!:\private\E1BAA3E9\backup_registration.xml"
    i think this line causes problem in phone release, but i am not sure

    Code:
    "$(EPOCROOT)epoc32\data\z\resource\apps\header.mbm" -"!:\resource\apps\header.mbm"
    Actually i worked step by step. First i changed the application icon and it worked. I installed it on phone and it was working. Now i tried to change the status pane skin, but it is not working on phone and above line contain image that i am trying to show in status pane. Corresponding mmp file code generation is

    Code:
    .....
    
    LANG SC
    
    VENDORID	  	  0
    SECUREID		  0xE1BAA3E9
    CAPABILITY	  	  NetworkServices ReadUserData
    
    #ifdef ENABLE_ABIV2_MODE
    DEBUGGABLE_UDEBONLY
    #endif
    // End of File
    SOURCEPATH ..\src
    SOURCE MTN_STK_MenuAppViewContainer.cpp SelectionView.cpp......
    START BITMAP header.mbm
    	TARGETPATH resource\apps
    	HEADER
    	SOURCEPATH ..\gfx
    	SOURCE c24 strip.bmp
    END
    Thanks

  8. #8
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: Applicaion is not running after isntalling on phone

    Can you check the panic code for the crash ? as suggested in the #2.

  9. #9
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Applicaion is not running after isntalling on phone

    Sorry, for some reason I thought that the application does not appear in the menu now.
    Since it is there, and you can click on it, you should really enable the panic codes, as it has been suggested yesterday.

  10. #10
    Regular Contributor
    Join Date
    Jun 2010
    Posts
    103

    Re: Applicaion is not running after isntalling on phone

    yup i have checked the extended panic code on emulator and then ran the application, on emulator no error. Application is running fine. But on phone it is not working. I am stuck .
    Do skin change require proper signing? I mean may be i am signing application online(which is free) that's why application is not working on phone? can it be the reason?

    Thanks

  11. #11
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: Applicaion is not running after isntalling on phone

    please check the panic code on the Device ! I really hate repeating myself on this issue. If it is crashing (or appearing to not start) on device, then you would get an idea on what goes wrong by checking that crash code.

    Then if you can find out the line that causes the crash you would know a lot more on what goes wrong in there. For signings, check the capabilities needed for the fucntions and APIs you use, and make sure you have the capabilities included in your peoject. If your code does work on emulator, then check the platsec Warnings to see possible missing capabilities.

    anyway, DO CHECK THE PANIC CODE in the device, I really hate repeating simple instructions.

  12. #12
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Applicaion is not running after isntalling on phone

    The panic codes are not restricted to the emulator. The referred article offers 2 ways to get them enabled on your phone (the two "Note" boxes), and it also links external tools, like Y-Tasks. Where Y is for Yucca, yes, the same guy trying to convince you to enable the panic codes, for 2 days by now.
    Now consider to do something.

Similar Threads

  1. Program is not running on Symbian 9.3
    By saidea in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 6
    Last Post: 2010-01-15, 16:35
  2. Not running signed application on Phone
    By harshadnatiye in forum Symbian
    Replies: 3
    Last Post: 2009-05-15, 12:49
  3. Not working my applicaion on palm devices
    By manojkumar.m in forum Mobile Java General
    Replies: 3
    Last Post: 2008-06-13, 13:19
  4. Midlet running on emulator but not on the Nokia 6600 phone
    By zizozine in forum Mobile Java General
    Replies: 11
    Last Post: 2006-07-14, 07:49
  5. Identifying the phone your software is running on
    By TheCyclops in forum Symbian
    Replies: 2
    Last Post: 2003-11-19, 20:55

Posting Permissions

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