Archive for 06月, 2008

small font problem for the setting list

When using a setting list, if you change to small font, the text will be displayed incorrectly! (Menu -> Tools -> Settings -> General -> Personalization -> Display -> Font size ).

This problem appears only on the Numbered Style Setting list, (EAknSettingItemNumberedStyle). The only way to make it look right should be not using this style…

font bad    font good

Popularity: 24% [?]

Add comment 06月 25th, 2008

How to hide app icon from the main menu

Normally you should write a server to run in the background.

Anyway, with a normal app, you can do this by adding one line to your <appname>_reg.rss file.

RESOURCE APP_REGISTRATION_INFO
 {
 app_file=”hello_0xE67432E1″;
 localisable_resource_file =  qtn_loc_resource_file_1;
 localisable_resource_id = R_LOCALISABLE_APP_INFO;

 embeddability=KAppNotEmbeddable;
 newfile=KAppDoesNotSupportNewFile;
 hidden=KAppIsHidden;
 }

Popularity: 24% [?]

1 comment 06月 15th, 2008

How to Invoke the browser from your app

Got the following code snippet from forum nokia wiki ,  one thing to take care of is that you need the SwEvent capability when there is a browser already running!

void CBrowserAppUi::LaunchBrowserL(const TDesC& aUrl)
{
const TInt KBrowserUid = 0×10008D39;
TUid id( TUid::Uid( KBrowserUid ) );
TApaTaskList taskList( CEikonEnv::Static()->WsSession() );
TApaTask task = taskList.FindApp( id );
if ( task.Exists() )
{
HBufC8* param = HBufC8::NewLC( aUrl.Length() + 2);
param->Des().Append(_L(“4 “));
param->Des().Append(aUrl);
//Need the WsEvent Capability
 task.SendMessage( TUid::Uid( 0 ), *param ); // Uid is not used
CleanupStack::PopAndDestroy(param);
}
else
{
HBufC16* param = HBufC16::NewLC( aUrl.Length() + 2);
param->Des().Append(_L(“4 “));
param->Des().Append(aUrl);
RApaLsSession appArcSession;
User::LeaveIfError(appArcSession.Connect());
TThreadId id;
appArcSession.StartDocument( *param, TUid::Uid( KBrowserUid), id );
appArcSession.Close();
CleanupStack::PopAndDestroy(param);
}
}

Popularity: 22% [?]

Add comment 06月 14th, 2008

应邀成为S60中国官方网站的blogger

主题是创新应用,非常荣幸,欢迎大家访问!

http://blogs.s60.com/app/

S60Blog

Popularity: 18% [?]

1 comment 06月 3rd, 2008


标签

Calendar

06月 2008
« May   Jul »
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Posts by Month

Posts by Category