Archive for 01月, 2008

Accredited Symbian & S60 Developer

今天终于拿到证书了,做工非常好!
我居然是全球第44个拿到AS60D证书的人?
下面签字的又是Lee Epting,真有缘!
as60d

asd

Popularity: 20% [?]

4 comments 01月 26th, 2008

如何使用加速度传感器(Sensor)API

N95硬件中隐藏了一个加速度传感器(Accelerometers),该硬件来自STMicroelectronics,型号为LIS302DL。加速度传感器用于将重力或者运动加速度变换为电信号,Accelerometers很可能是继GPS之后的下一个重量级的硬件。Forum Nokia Wiki上有最权威的描述:http://wiki.forum.nokia.com/index.php/N95_sensor

Accelerometers API首先在NokiaResearchCenter(http://research.nokia.com/projects/activity_monitor)发布,目前可以支持N95,N95 8GB,N93i,N82等手机.该plug-in只能用于研究和开发用途,并含有如下Capabilities,根据Symbian安全性规则,你的应用程序不能含有比他更多的Capabilities:
    LocalServices ,Location ,NetworkServices ,ReadDeviceData ,ReadUserData
    SurroundingsDD ,SwEvent ,UserEnvironment ,WriteDeviceData ,WriteUserData

如何使用Accelerometers plug-in API开发应用程序。
首先下载:N95_RD_Accelerometer(http://research.nokia.com/files/N95_RD_Accelerometer.zip)
1,安装配置:
需要将N95AccelerometerPlugin.sis安装到你的手机(目前可以支持N95,N95 8GB,N93i,N82)
在开发环境中,将RDAccelerometer.h和RDAccelerometerObserver.h头文件放到SDK的\epoc32\include目录中,将*.dso和*.lib文件复制到SDK的\epoc32\release\armv5\LIB目录中

2,具体使用:
  - 将库文件RDAccelerometer.lib添加到你应用程序的工程中
  - 在你需要的类中继承MRDAccelerometerObserver接口,并实现HandleAccelerationL()函数接收来自加速度传感器的数据
  - 创建一个CRDAccelerometer实例,并将上面提到的类作为参数传入
  - 当实例创建完成后,加速度传感器数据会自动通过HandleAccelerationL()方法发送到应用程序中。
 参数含义如下(参考RDAccelerometerObserver.h 获取更多信息):
     - 1G加速度等于64
     - 0G加速度等于0
     - (-1G)加速度等于(-63)
  - 删除CRDAccelerometer实例就可以停止接收来自传感器的数据

3,开发经验:
  - 即使你将手机放在桌上不动,通过HandleAccelerationL()得到的数据还是略为有所改变。
  - 每秒钟会有30帧的数据传入到HandleAccelerationL()中,非常耗电。
  - 应用程序中尽量早地关闭传感器,在需要的时候再开启。

附上显示加速度传感器数据的例子TestSensorCode

Popularity: 16% [?]

6 comments 01月 21st, 2008

FlipSilent V1.03免费下载(Free Download!)

FlipSilent有自己的新家啦!
(FlipSilent has its own home)
请到FlipSilent International下载最新1.03版,谢谢!
(Please download FlipSilent V1.03 here)
www.flipsilent.com

tongren

Popularity: 18% [?]

9 comments 01月 19th, 2008

FlipSilent V1.02免费下载(Free Public Download)

非常感谢Donator们的测试,现在正式提供免费下载。欢迎使用!
Thanks to Donators test, Now Available for public FREE downloads!
支持语言:中文,英语。
Language Supported: Chinese, English

注意事项:(Installation Guide)
1,支持手机(Supported Phones): N95, N95 8GB, N82
2,签名后安装(Install After Signing with a developer certificate)
3,安装到手机存储(Install to phone memory)
4,N95 8GB:先删除再安装(Remove first, Then Install)

友情提示 (Tips)
选择“来电开启”,非常省电!
Choose “Active When Call In”, Saves battery power.
请先熟悉功能后再日常使用,以免漏接重要来电!
Please play with it before everyday use, in case miss important calls!

欢迎转载FlipSilent到各大论坛,请尊重我的工作,发帖时留下我的Blog地址http://symbianblog.com
Welcome to put FlipSilent to BBS, But please respect my work and leave my blog (http://symbianblog.com) in the BBS!

关于FlipSilent的讨论和新功能需求,请到这里:
Learn More about FlipSilent and Require new Functionalities, Visit here:
http://symbianblog.com/index.php/flipsilent/

最后,如果真的喜欢FlipSilent,欢迎捐赠,你的认同将给我信心和动力开发更好的版本!
If you really like FlipSilent and want see new versions, Please do a small donation, Your recognitionwhich means a lot to me!

 软件下载(Download Here):FlipSilentV1.02-Unsigned.sis

tongren

Popularity: 23% [?]

10 comments 01月 12th, 2008

FlipSilent V1.02 Available For Donators!

It’s almost 6AM again in Shanghai, China!
Three days all day all night, brings you FlipSilent V1.02!
Thanks to all the friends who made suggestions to me!

Major improvements:
1, Save Battery Power: you can activate the sensor when a call coming in!
2, Full control of switch between profiles,  both flip over and flip back!

Those who have donated will receive a copy of FlipSilentV1.02 by tomorrow as Beta Tester as I had promised. When they think V1.02 is stable, I will make a public download.

If you really like it, a small donation will help me improve FlipSilent!


FlipSilentV1.02MainConfig  FlipSilentV1.02SensorActivityConfig
FlipSilentV1.02FlipOverProfileConfig  FlipSilentV1.02FlipOverCallConfig
FlipSilentV1.02FlipBackProfileConfig  FlipSilentV1.02AutoStartConfig

 tongren

Popularity: 19% [?]

10 comments 01月 10th, 2008

本周全球最热门的软件FlipSilent(中文版下载)!

FlipSilent的创意来自于S60网站上的一段视频
http://cn.s60.com/main/experience_touchUI_video.html
可以帮助你已更加人性化的方式使用手机:
当你在开会或者约会的时候,手机意外想起,你只需要将手机轻轻一翻,
根据你的设置,自动挂断电话或者停止响铃,并且马上变成静音模式,
保证你不会再被骚扰 ;-)
当你拿起手机之后,情景模式可以根据你的设置自动变回,相当方便。
截至到2008年1月8日晚上23:59
2008年1月5号周六晚上将视频放到YouTube上,到现在仅仅3天时间,浏览量达到9797人次
http://www.youtube.com/watch?v=d7JugCZj7fU
1月6号晚上开放下载(要软件的mail多到无法处理),目前软件下载保守估计已经超过5000次
我的Blog访问量达到3,072 次访问来自 86 国家/地区(Google Analytics数据)
几乎各大Symbian门户网站都有Review, 近百个blog转载引用
我的Gmail邮箱mail超过1000封,有要软件的,有要帮忙sign的,还有要donate的。
原来只是出于兴趣,利用空闲时间做个软件随便玩玩,一时间被搞得措手不及
“中国人写的软件居然没有中文版?” — 现在有了, 欢迎下载使用!

visitors

对软件有任何建议,欢迎提出,请到我的blog留言,谢谢!
http://symbianblog.com/index.php/flipsilent/

安装相关:
1, 只支持Nokia N95,N95 8GB, N82, N93I(有反映说不行)
2, 请安装到手机内存,存储卡会有问题,软件只有几十K
3, 需要开发者证书签名

软件这里下载:FlipSilent中文版

tongren
http://symbianblog.com

Popularity: 20% [?]

12 comments 01月 9th, 2008

FlipSilent V1.01 Beta!

It was really amazing, It was like a dream!
I released the video of FlipSilent on Youtube on Saturday night, and Last night before I went to sleep, about 200 viewers, and got about 20 emails requesting for the software.
And now, the third day after I released the video, more than 8000 viewers, and hundereds of emails. I really do not have the time to reply to each of you.

Also, I would like to thank Thomas Howe, Stephen Dark, David Reid, Pietro Paschino, David munoz villalba, Diego Manuel Alvarado Perez, Alberto Buora, Arnoud van der Giessen, gnocchi franco, Noel Faucher, Nick Raets, Madhu Gupta for their donations!

真的没有想到FlipSilent会这么受欢迎,明天一定要做一个中文版:-)

See here for more details and download the unsigned version of FlipSilent.

http://symbianblog.com/index.php/flipsilent/

Popularity: 13% [?]

3 comments 01月 6th, 2008

如何通过程序设定是否开机自启动

主要有两个步骤:
1,使用Startup List Management API实现开机自启动
2,重载AppUI中的ProcessCommandParametersL()函数确定是否关闭(自启动后关闭==不启动)

1.1 在data目录下创建一个boot resource file,名字为XXXX.rss, 其中XXXX为UID3。
#include <startupitem.rh>
RESOURCE STARTUP_ITEM_INFO startexe
{
    executable_name = \\sys\\bin\\programToStart.exe; //换成你程序名字
    recovery = EStartupItemExPolicyNone;
}
1.2更新你的MMP文件
SOURCEPATH      ..\data
START RESOURCE XXXX.rss
END
1.3更新你的PKG文件,中括号不要丢了!
“\epoc32\data\yyyy.rsc”- “c:\private\101f875a\import\[yyyy].rsc”
有以下几点限制:必须装在c盘,必须用开发者证书。

 如果一切顺利,程序可以自己随着手机开机而自己启动了,但是如何让用户可以在程序中设置让程序不要随机启动呢?
2.1修改程序的注册文件YourAppName_reg.rss:
#include <appinfo.rh>
#include <uikon.rh>   
RESOURCE APP_REGISTRATION_INFO
{
//其他原有代码
  opaque_data = r_startup_detect;
}      
RESOURCE NUMBER_INT8 r_startup_detect
{value = 1;}
2.2 重载AppUI中的ProcessCommandParametersL()函数
Bool CMyAppUi::ProcessCommandParametersL( CApaCommandLine &aCommandLine )
{
  if(aCommandLine.OpaqueData().Length() > 0)
  {
      // 用户手动启动,存在OpaqueData
  }
  else
  {
      // 程序自动启动,存在OpaqueData。
      // 可以在这里判断是否设置为不自动启动, 调用Exit()函数退出
  }
   return CEikAppUi::ProcessCommandParametersL( aCommandLine );
}

 

Popularity: 12% [?]

Add comment 01月 4th, 2008

按下红色结束通话键,程序仍然运行

在Symbian S60第三版中,按下红色的结束通话键,程序默认退出,当还想保持程序继续运行状态,可以在AppUi的HandleWsEventL函数中进行处理,以下代码来自ScreenShot。
// ————————————————————————–
// Starting from S60 3.x, pressing End key will terminate application.
// We don’t want this to happen in this application, so we have to handle
// End key event (KAknUidValueEndKeyCloseEvent).
// ————————————————————————–
void CXXXAppUi::HandleWsEventL(const TWsEvent &aEvent, CCoeControl *aDestination)
    {
    switch (aEvent.Type())
        {
        case KAknUidValueEndKeyCloseEvent:
            break;

        default:
            CAknAppUi::HandleWsEventL(aEvent, aDestination);
        }
    }

Popularity: 11% [?]

Add comment 01月 3rd, 2008

推荐一本Symbian好书

今天浏览ASD Member Area的时候偶然发现,wiley买书可以打6.5折。随便浏览了一下,无意中发现一本好书:
《Smartphone Operating System Concepts with Symbian OS: A Tutorial Guide》
symbianbook

This book is written as an introduction to operating systems, with a focus on mobile phones and, specifically, Symbian OS. In
addition to simply presenting and discussing operating system concepts, this book is accompanied by exercises that can be performed in the context of laboratory or experimental assignments.

国外的书就是好,注重实践!有空一定要仔细读一下。所有的例子和代码可以从这里下载:http://www.wiley.com/legacy/wileychi/jipping/

Popularity: 8% [?]

Add comment 01月 2nd, 2008


标签

Calendar

01月 2008
« Dec   Feb »
 123456
78910111213
14151617181920
21222324252627
28293031  

Posts by Month

Posts by Category