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();
[/CODE]
should I add something to mmp file , or .pkg file?
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"[/CODE]in the .pkg, and hardcode the drive in the descriptor[CODE]_LIT(KtxMySplashImage,"[COLOR="#FF0000"]c:[/COLOR]\\private\\e7e6ddd5\\splash.jpg" );[/CODE]it should be enough for a test.
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
[/CODE]
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 [b]CAPABILITY[/b]. Check that, and also check the article [url]http://www.developer.nokia.com/Community/Wiki/Capabilities[/url] - with self-signing (default case when you create a new project), the first 5-6 capabilities ("Basic" or "User grantable") can be used only.
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"
[/CODE]
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
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:
[url]http://www.developer.nokia.com/Community/Wiki/How_to_read_images_to_Symbian_bitmap[/url]
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.
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
Re: splash screen basics knowldge needed
What is the path of file going as a parameter in FileNewL() when you test it on device?
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
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: [url]http://www.developer.nokia.com/Community/Wiki/Extended_panic_code[/url] & install it in your device.
Re: splash screen basics knowldge needed
Hi I tried the way you adviced, I get error
System err(-1)
E32USER-CBASE 40
Re: splash screen basics knowldge needed
[QUOTE=sandeepmhptr3;907986]Hi I tried the way you adviced, I get error
System err(-1)
E32USER-CBASE 40[/QUOTE]
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.
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
Re: splash screen basics knowldge needed
[QUOTE=sandeepmhptr3;907988]hi,
The app runs fine when I install it to phone memory(C drive), but fails when installed to mass memory[/QUOTE]
I am not sure if you have followed #17, but if you had then things should have working fine.