6210: Y Main screen is not goes into the Landscape Mode
Hello,
I have 6210 handset as Test Device,
I have observed, when BioSensor is enable from setting and all other view except Main phone view is goes into the LANDSCAPE view/mode,
Why main idle screen not goes into the LANDSCAPE mode.
My problem is, when my apps is ON and in background, it is giving panic when we change the view mode from Landscape to Normal or vice versa only when its on main idle screeen
What might be problem??
Regards
Swap
Re: 6210: Y Main screen is not goes into the Landscape Mode
could be that the Main phone view is defined that it is not doing layout changes, so it will only have one.
I'm not sure what application is the BioSensor , so maybe you could tell more about it.
For the panic of your application, firstly, you should identify the panic code, and write it to here. And secondly, you should debug and find what line in your application is giving the panic.
Re: 6210: Y Main screen is not goes into the Landscape Mode
[QUOTE=symbianyucca;568776]could be that the Main phone view is defined that it is not doing layout changes, so it will only have one.
I'm not sure what application is the BioSensor , so maybe you could tell more about it.
For the panic of your application, firstly, you should identify the panic code, and write it to here. And secondly, you should debug and find what line in your application is giving the panic.[/QUOTE]
Hi Yuccaa,
BioSensor means, the rotation sensor of phone, while we detect the position (vertical/horizontal) and change the view of phone screen in Landscape and Normal
I am getting USER 11 panic, and since it is triggered on tilt of phone, i.e. changing view from Landscape to normal or vice a versa, I am not able to check , which part of code it is occuring...
Since my application is in background and we tilt the phone, for all other screen except Main phone screen, apps works perfectly ..... but on main phone screen, I am getting panic as [B]USER 11.[/B]
(If we are some different screen, i.e. phone menu screen,msg inbox etc except phone main screen and my apps in background, and if we tilt the phone to change the view from landscape to normal or vice a versa, my apps works perfectly OK... )
Please suggests whats wrong with apps ????
REgards
Swap
Re: 6210: Y Main screen is not goes into the Landscape Mode
strange indeed user 11: [url]http://www.symbian.com/developer/techlib/v9.1docs/doc_source/reference/N10352/UserPanics.html[/url] is related descriptor handling, basically a overflow of 16 bit descriptor.
Anyway, you should put some file logging, or use other means to find out what in your application does that, I'm rather sure it is a bug in your application, and it is impossible to know what causes the actual problem without knowing what your application is doing, and especially what it is doing when it gets the panic.
Re: 6210: Y Main screen is not goes into the Landscape Mode
[QUOTE=symbianyucca;569046]strange indeed user 11: [url]http://www.symbian.com/developer/techlib/v9.1docs/doc_source/reference/N10352/UserPanics.html[/url] is related descriptor handling, basically a overflow of 16 bit descriptor.
Anyway, you should put some file logging, or use other means to find out what in your application does that, I'm rather sure it is a bug in your application, and it is impossible to know what causes the actual problem without knowing what your application is doing, and especially what it is doing when it gets the panic.[/QUOTE]
Yes, Its strange behavior .... I had kept the logging the function trace in files.... but its off NO use, as PANIC is triggered only when I tilt the phone on MAIN screen screen... every other views... it is working fine .....
Is that any reason where NO LANDSCAPE View for Phone main screen causing such kind of problem .....
Any suggestion ??
Re: 6210: Y Main screen is not goes into the Landscape Mode
Hello,
What are all functions that will get called when we tilt the phone to change the view to LANDSCAPE view ....
Which all functions I need to handle in it ....
Re: 6210: Y Main screen is not goes into the Landscape Mode
On orientation change u wud get the callbacks as
[B]HandleResourceChange[/B]..
In this u need to set the size for each control/view by [B]SetRect[/B] which in turn should be handled by
[B]SizeChanged[/B] function
Also have a look @ HandleScreenDeviceChanged, if needed
Re: 6210: Y Main screen is not goes into the Landscape Mode
[QUOTE=deepchand86;570245]On orientation change u wud get the callbacks as
[B]HandleResourceChange[/B]..
In this u need to set the size for each control/view by [B]SetRect[/B] which in turn should be handled by
[B]SizeChanged[/B] function
Also have a look @ HandleScreenDeviceChanged, if needed[/QUOTE]
Hi Deepchand,
Thanks for a reply...
Can u clear, Should I call this functions in AppUI?? ... or it should be in View.cpp??
Re: 6210: Y Main screen is not goes into the Landscape Mode
[QUOTE=swapnilb83;570298]Hi Deepchand,
Thanks for a reply...
Can u clear, Should I call this functions in AppUI?? ... or it should be in View.cpp??[/QUOTE]
Talking about which function??? HandleResourceChange() of appview will be called by framwork when u change mode from portrait to lanscape and vice versa.
Re: 6210: Y Main screen is not goes into the Landscape Mode
[QUOTE=savaj;570303]Talking about which function??? HandleResourceChange() of appview will be called by framwork when u change mode from portrait to lanscape and vice versa.[/QUOTE]
HI Savaj
AS per one of last post asked by yucca, my application is always crashes On function "[B]HandleStatusPaneSizeChange()[/B]"
THis is implemented as
"[B]//When Application size Chaned This Funftion Get Called By Framwork
void CTestAppUi::HandleStatusPaneSizeChange()
{
iAppView->SetRect( ClientRect() );
}[/B]
"
where iAppView is object of standard applicaion view
Any suggestion !!!
Re: 6210: Y Main screen is not goes into the Landscape Mode
check SizeChanged() of your AppView, you are doing something wrong there which cause panic on mode change.
Also what is panic code??
Put breakpoint in SizeChanged() of your AppView and start application in debug mode, then change view from portrait to landscape.
Re: 6210: Y Main screen is not goes into the Landscape Mode
[QUOTE=savaj;570332]check SizeChanged() of your AppView, you are doing something wrong there which cause panic on mode change. Also what is panic code??
[/QUOTE]
The error code i am getting is USER 11
Code in SizeChanged() of appview.cpp
void CTestAppView::SizeChanged()
{
DrawNow();
}
Re: 6210: Y Main screen is not goes into the Landscape Mode
What about your CTestAppView::Draw() method??
Re: 6210: Y Main screen is not goes into the Landscape Mode
[QUOTE=swapnilb83;570350]The error code i am getting is USER 11[/QUOTE]
[QUOTE=SDK Help][U][B]USER 11[/B][/U]
This panic is raised when any operation that moves or copies data to a 16-bit variant descriptor, causes the length of that descriptor to exceed its maximum length.
It may be caused by any of the copying, appending or formatting member functions and, specifically, by the Insert(), Replace(), Fill(), Fillz() and ZeroTerminate() descriptor member functions. It can also be caused by the SetLength() function. See TDes16.
[/QUOTE]
You might need to check your implementation code and see where are you breaking the rules.
Re: 6210: Y Main screen is not goes into the Landscape Mode
[QUOTE=kiran10182;570371]You might need to check your implementation code and see where are you breaking the rules.[/QUOTE]
Here is Draw method
[I]void CTestAppView::Draw( const TRect& /*aRect*/ ) const
{
// Get the standard graphics context
CWindowGc& gc = SystemGc();
// Gets the control's extent
TRect drawRect( Rect());
// Clears the screen
gc.Clear( drawRect );
}
[/I]
Problem is, I am never get any panic if I tilt the phone when
1. apps is in foreground
2. apps is in background and any screen other than phone main screen (example: msg:Inbox, any other application screen, Phone menu screen, Phone setting screen etc)
I am getting error (USER : 11) only when I am on Phone main screen and phone is tilted for landscape view ....
When Apps is in background .... Following is the Draw() method of active view
[I]void CTestMainContainer::Draw(const TRect& aRect) const
{
}
[/I]