×

Discussion Board

Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 42
  1. #16
    Registered User
    Join Date
    Nov 2012
    Posts
    34

    Re: splash screen basics knowldge needed

    Hi,
    my splash screen app runs fine on emulator but I think crashes on device nokia 500. If I remove following lines , it works on device also->
    Code:
    _LIT(KtxMySplashImage,"\\private\\e7e6ddd5\\splash.jpg" ); 
    //		iDecoder=CImageDecoder::FileNewL(CCoeEnv::Static()->FsSession(), KtxMySplashImage);
    //		TInt aSelectedFrame=0;
    //		iSplashPic->Create(iDecoder->FrameInfo(0).iOverallSizeInPixels,iDecoder->FrameInfo(0).iFrameDisplayMode);
    //		iDecoder->Convert(&iStatus, *iSplashPic, aSelectedFrame) ;
    //		   SetActive();
    should I add something to mmp file , or .pkg file?

  2. #17
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: splash screen basics knowldge needed

    The panic code thing (post #11) is also available on the device, try getting the panic code.
    Otherwise yes, you have to install the file on the device, which happens via editing the .pkg file (and of course re-building the .sis file after that). At the end of the file you will see "file on your PC"-"file on the phone" lines. That is where you can deploy splash.jpg.
    The simplest approach could be deploying it to the c:, then you would add the line
    Code:
    "....\<your project>\...\splash.jpg"-"c:\private\e7e6ddd5\splash.jpg"
    in the .pkg, and hardcode the drive in the descriptor
    Code:
    _LIT(KtxMySplashImage,"c:\\private\\e7e6ddd5\\splash.jpg" );
    it should be enough for a test.

  3. #18
    Registered User
    Join Date
    Nov 2012
    Posts
    34

    Re: splash screen basics knowldge needed

    Hi,
    I have added the following code to the pkg file.
    "....\hello_0xe7e6ddd5.exe\...\splash.jpg"-"c:\private\e7e6ddd5\splash.jpg"
    I am not able to build sis files with this. I can build sis files without this line.
    also i tried with
    "$(EPOCROOT)epoc32\winscw\c\private\e7e6ddd5\splash.jpg" -"!:\private\e7e6ddd5\splash.jpg" the sis file is generated but still the code crashes
    also with
    ;"splash.jpg" - "!:\private\e7e6ddd5\splash.jpg" ------- no sis file is generated



    Also my original application is not running on device. I get error "Unable to execute file for security reasons."any idea how to resolve this error. I am trying to find out which lines give me this security concerns
    so I am separating code in helloworld program and debugging..
    Also I want to enable panic codes in my emulator. I am not getting panic codes for any crashes. In my ErrRd file it shows "ECHO is off". Also where to find panic codes from mobile device?

    contents of epoc.ini
    Code:
    configuration epoc_240x320.ini
    configuration epoc_240x320_keypadoff.ini
    configuration epoc_320x240.ini
    configuration epoc_320x240_keypadoff.ini
    configuration epoc_240x320_f.ini
    configuration epoc_240x320_keypadoff_f.ini
    configuration epoc_320x240_f.ini
    configuration epoc_320x240_keypadoff_f.ini
    PlatSecDiagnostics ON
    PlatSecEnforceSysBin ON
    PlatSecProcessIsolation ON
    PlatSecEnforcement OFF
    PlatSecDisabledCaps NONE
    LogToFile 1
    LogToDebugger 1
    JustInTime 0
    JustInTime query
    _EPOC_DRIVE_D \epoc32\winscw\d
    _EPOC_DRIVE_E
    _EPOC_LocDrv_1
    MegabytesOfFreeMemory 32
    MultiMediaCardSize=16000
    patchdata_apserv_dll_KApaLoadDataRecognizersOnDemand 1
    etel_KPriorityClientSid 0x100058B3
    WindowTitle S60 3rd Edition FP2 SDK v1.1
    EXTENDED_PANIC_CODE_FILE true
    Last edited by sandeepmhptr3; 2012-12-12 at 06:59.

  4. #19
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: splash screen basics knowldge needed

    The errrd file for the emulator is fine, its contents do not matter, just if the file exists or not. However there is an error message onyl if there is a panic (crash) somewhere. Does your code suddenly exit on the emulator?
    For the device part, the security reasons stuff usually denotes some problem with the UID or the capability set. Some parts of this discussion suggests that you are using UID e7e6ddd5, which is fine, so the capability stuff could be the next one to check. In the .mmp file there is a line with keyword CAPABILITY. Check that, and also check the article http://www.developer.nokia.com/Commu...i/Capabilities - with self-signing (default case when you create a new project), the first 5-6 capabilities ("Basic" or "User grantable") can be used only.

  5. #20
    Registered User
    Join Date
    Nov 2012
    Posts
    34

    Re: splash screen basics knowldge needed

    1>my code got installed into device with additional capabilities.
    Thanks for that

    2>But i am still not getting panic codes. To test I have written a code-
    CViewSplash* iSplashView ;
    iSplashView->ClientRect();
    iSplashView= new (ELeave) CViewSplash;
    No panic code is shown. The emulator just vanishes.

    3>My main concern now->
    what line to add, to pkg file to enable loading image in splash view?

    My pkg file->

    Code:
    &EN
    
    ; standard SIS file header
    #{"hello"},(0xe7e6ddd5),1,0,0
    
    ;Localised Vendor name
    %{"Vendor-EN"}
    
    ;Unique Vendor name
    :"Vendor"
    
    ;Supports Series 60 v 5.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)\hello_0xe7e6ddd5.exe"		-"!:\sys\bin\hello_0xe7e6ddd5.exe"
    "$(EPOCROOT)epoc32\data\z\resource\apps\hello_0xe7e6ddd5.rsc"		-"!:\resource\apps\hello_0xe7e6ddd5.rsc"
    "$(EPOCROOT)epoc32\data\z\private\10003a3f\apps\hello_0xe7e6ddd5_reg.rsc"	-"!:\private\10003a3f\import\apps\hello_0xe7e6ddd5_reg.rsc"
    "$(EPOCROOT)epoc32\data\z\resource\apps\hello_0xe7e6ddd5.mif" -"!:\resource\apps\hello_0xe7e6ddd5.mif"
    "..\help\hello_0xe7e6ddd5.hlp"							 -"!:\resource\help\hello_0xe7e6ddd5.hlp"
    ;"....\hello_0xe7e6ddd5.exe\...\splash.jpg"-"c:\private\e7e6ddd5\splash.jpg"
    ;"splash.jpg" - "!:\private\e7e6ddd5\splash.jpg"
    "$(EPOCROOT)epoc32\winscw\c\private\e7e6ddd5\splash.jpg"	-"!:\private\e7e6ddd5\splash.jpg"
    ; Add any installation notes if applicable
    ;"hello.txt"		-"!:\private\e7e6ddd5\hello.txt"
    
    ;required for application to be covered by backup/restore facility 
    "..\sis\backup_registration.xml"		-"!:\private\e7e6ddd5\backup_registration.xml"

  6. #21
    Registered User
    Join Date
    Nov 2012
    Posts
    34

    Re: splash screen basics knowldge needed

    I think I have to add something like this tp mmp file
    START BITMAP <appname>.mbm
    TARGETPATH \Resource\Apps
    SOURCE <color-depth> <source-bitmap-list> -------------------what is this (source-bitmap-list takes path of group folder and not private folder)
    END
    Last edited by sandeepmhptr3; 2012-12-12 at 15:09.

  7. #22
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,086

    Re: splash screen basics knowldge needed

    mbm files are created for images with bmp extension. To draw a jpeg image, you can utilize CImagedecoder API, to convert the jpg image into draw-able bitmap:

    http://www.developer.nokia.com/Commu...Symbian_bitmap

    Also there is no need to mention anything for this in the mmp file, simple place the file in the path as desired & use the code as given in the link above.

  8. #23
    Registered User
    Join Date
    Nov 2012
    Posts
    34

    Re: splash screen basics knowldge needed

    hi, I have used that code. My problem is that image is loading into emulator but not onto device

  9. #24
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,086

    Re: splash screen basics knowldge needed

    What is the path of file going as a parameter in FileNewL() when you test it on device?

  10. #25
    Registered User
    Join Date
    Nov 2012
    Posts
    34

    Re: splash screen basics knowldge needed

    Hi, I have tried with both
    _LIT(KtxMySplashImage,"c:\\private\\e7e6ddd5\\splash.jpg" );
    and _LIT(KtxMySplashImage,"\\private\\e7e6ddd5\\splash.jpg" );


    details are mentioned in thread #16

    mu main concerns are path can be anything but I do not want to place image on device, I want the image to be embedded in the app

  11. #26
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,086

    Re: splash screen basics knowldge needed

    The first one should be working fine.You may try changing the path just to be sure, let say this:

    "$(EPOCROOT)epoc32\winscw\c\private\e7e6ddd5\splash.jpg" -"C:\data\splash.jpg"

    & the same in FileNewL() as well.

    Also for seeing the crash code, you can download the ErrRd.sis from here: http://www.developer.nokia.com/Commu...ded_panic_code & install it in your device.

  12. #27
    Registered User
    Join Date
    Nov 2012
    Posts
    34

    Re: splash screen basics knowldge needed

    Hi I tried the way you adviced, I get error
    System err(-1)
    E32USER-CBASE 40

  13. #28
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,086

    Re: splash screen basics knowldge needed

    Quote Originally Posted by sandeepmhptr3 View Post
    Hi I tried the way you adviced, I get error
    System err(-1)
    E32USER-CBASE 40
    Ok, now you want to read its documentation in the SDK & see what causes it. Along with that can you please paste the class you have implemented to convert the jpeg to bitmap here.

  14. #29
    Registered User
    Join Date
    Nov 2012
    Posts
    34

    Re: splash screen basics knowldge needed

    hi,
    The app runs fine when I install it to phone memory(C drive), but fails when installed to mass memory

  15. #30
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,086

    Re: splash screen basics knowldge needed

    Quote Originally Posted by sandeepmhptr3 View Post
    hi,
    The app runs fine when I install it to phone memory(C drive), but fails when installed to mass memory
    I am not sure if you have followed #17, but if you had then things should have working fine.

Similar Threads

  1. J2ME start-up/splash screen blank screen issue
    By Magicake in forum Mobile Java General
    Replies: 3
    Last Post: 2012-01-04, 10:44
  2. Splash Screen
    By 074394Q in forum Symbian
    Replies: 24
    Last Post: 2009-11-02, 09:33
  3. Displaying the next screen after splash screen
    By rachelwiz in forum Mobile Java General
    Replies: 8
    Last Post: 2009-08-24, 17:49
  4. Splash Screen
    By 83.manish in forum Symbian
    Replies: 1
    Last Post: 2006-06-11, 09:11
  5. Full screen splash screen
    By jitendrachhajed in forum Symbian
    Replies: 1
    Last Post: 2005-07-11, 08:01

Posting Permissions

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