Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

(Difference between revisions)


From Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Text replace - "Category:MeeGo" to "Category:MeeGo Harmattan")
hamishwillee (Talk | contribs)
m (Text replace - "<code cpp>" to "<code cpp-qt>")
Line 28: Line 28:
<code cpp>
<code cpp-qt>

Latest revision as of 01:19, 11 October 2012

Article Metadata

zhouhl 在 16 Jun 2011 创建
最后由 hamishwillee 在 11 Oct 2012 编辑

[edit] 综述

在 Meego 上发送短信和在 Symbian 上是类似的,唯一的不同在于在 Symbain 上需要诸如 NetworkServices 的能力,在Meego上同样也有类似的东西,否则无法成功发送短信。

在Meego上就是需要一个appName.aegis的文件,appName 指的是应用程序的名字。 文件具体内容如下:

<credential name="Cellular" />
<credential name="TrackerReadAccess" />
<for path="/opt/sms/bin/sms" />

我们这个例子程序的名字叫 sms,对应的可以修改成自己程序的名字。

用Qt Creator 新建的 Harmattan 工程是没有 aegis 文件的, 因此我们新建一个文本文件,写入以上内容,修改文件名为appName.aegis,然后将这个文件拷贝到工程目录下的 qtc_packaging\debian_harmattan 目录下就可以了。

目前 Qt Creator 已经修复了之前的一个Bug, 现在已经可以成功打包该 aegis 文件了,因此我们直接用Qt Creator 进行编译运行,就可以在Meego手机上发短信了!


[edit] 下载源码和样例程序

[edit] 相关链接

This page was last modified on 11 October 2012, at 01:19.
79 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.