📄 如何编写symbian 3rd 应用程序,让手机开机自启动.htm
字号:
onmouseover="try{BlogShowme(event, 'smile_beyond2007')}catch(ex){}"
alt="smile_beyond2007 的头像"
src="E:\Document\symbian\如何编写Symbian 3rd 应用程序,让手机开机自启动.files\2(8).jpg"
border=0><BR><A title="访问时间: 7/19/2007 12:11:33 PM"
href="http://blog.csdn.net/smile_beyond2007/">smile_beyond2007</A></TD>
<TD align=middle><IMG
onmouseover="try{BlogShowme(event, 'czx2007')}catch(ex){}"
alt="czx2007 的头像"
src="E:\Document\symbian\如何编写Symbian 3rd 应用程序,让手机开机自启动.files\2(9).jpg"
border=0><BR><A title="访问时间: 7/18/2007 6:59:16 PM"
href="http://blog.csdn.net/czx2007/">czx2007</A></TD></TR></TBODY></TABLE></SPAN>
<H3 class=listtitle>文章</H3>
<UL class=list>
<LI class=listitem><A
href="http://blog.csdn.net/sodangerous/category/300159.aspx">J2EE平台开发</A><A
href="http://blog.csdn.net/sodangerous/category/300159.aspx/rss">(RSS)</A>
<LI class=listitem><A
href="http://blog.csdn.net/sodangerous/category/300158.aspx">Symbian手机开发</A><A
href="http://blog.csdn.net/sodangerous/category/300158.aspx/rss">(RSS)</A>
<LI class=listitem><A
href="http://blog.csdn.net/sodangerous/category/300160.aspx">Windows应用程序开发</A><A
href="http://blog.csdn.net/sodangerous/category/300160.aspx/rss">(RSS)</A>
<LI class=listitem><A
href="http://blog.csdn.net/sodangerous/category/311314.aspx">心情日记</A><A
href="http://blog.csdn.net/sodangerous/category/311314.aspx/rss">(RSS)</A></LI></UL>
<H3 class=listtitle>收藏</H3>
<UL class=list></UL>
<H3 class=listtitle>相册</H3><!--category title-->
<UL class=list>
<LI class=listitem><A
href="http://blog.csdn.net/sodangerous/Gallery/300156.aspx">在上海的日子</A></LI></UL>
<H3 class=listtitle>存档</H3>
<UL class=list>
<LI><A
href="http://blog.csdn.net/sodangerous/archive/2007/07.aspx">2007年07月(3)</A>
<LI><A
href="http://blog.csdn.net/sodangerous/archive/2007/06.aspx">2007年06月(4)</A>
<LI><A
href="http://blog.csdn.net/sodangerous/archive/2007/05.aspx">2007年05月(3)</A>
<LI><A
href="http://blog.csdn.net/sodangerous/archive/2007/04.aspx">2007年04月(3)</A></LI></UL></DIV></DIV>
<DIV id=centercontent><!--done-->
<DIV class=Tag>
<SCRIPT language=javascript
src="如何编写Symbian 3rd 应用程序,让手机开机自启动.files/urltag.aspx"></SCRIPT>
<DIV style="CLEAR: both"></DIV></DIV><SPAN class=PreAndNext
id=viewpost.ascx_PreviousAndNextEntriesUp>
<DIV align=center><A
href="http://blog.csdn.net/sodangerous/archive/2007/07/30/1717729.aspx">上一篇: Symbian
3rd签名,自签名,开发证书,制造商级别,能力集,ACS ID,收费,敏感API</A> | <A
href="http://blog.csdn.net/sodangerous/archive/2007/07/03/1677739.aspx">下一篇: 社会生活中的十二条著名法则(精典)
</A></DIV></SPAN><BR>
<SCRIPT>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</SCRIPT>
<DIV class=post>
<DIV class=postTitle>
<SCRIPT src="如何编写Symbian 3rd 应用程序,让手机开机自启动.files/vote.js"></SCRIPT>
<A href="http://blog.csdn.net/sodangerous/archive/2007/07/09/1683835.aspx"><IMG
height=13 src="如何编写Symbian 3rd 应用程序,让手机开机自启动.files/authorship.gif" width=15
border=0> 如何编写Symbian 3rd 应用程序,让手机开机自启动</A>
<SCRIPT src="如何编写Symbian 3rd 应用程序,让手机开机自启动.files/count.aspx"></SCRIPT>
</DIV>
<DIV class=postText>
<DIV>假设你的应用ID为:ef37946b</DIV>
<DIV style="MARGIN-LEFT: 21.75pt; TEXT-INDENT: -21.75pt"><SPAN>1)<SPAN
style="FONT: 7pt 'Times New Roman'">
</SPAN></SPAN>在data下新建一个文件, [ef37946b].rss(注意加上[])</DIV>
<DIV align=left><SPAN style="FONT-SIZE: 10pt; COLOR: black">#include</SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: black"> <startupitem.rh></SPAN></DIV>
<DIV align=left><SPAN style="FONT-SIZE: 10pt; COLOR: black">RESOURCE
STARTUP_ITEM_INFO dispatcher</SPAN></DIV>
<DIV align=left><SPAN style="FONT-SIZE: 10pt; COLOR: black">
{</SPAN></DIV>
<DIV align=left><SPAN style="FONT-SIZE: 10pt; COLOR: black">
executable_name = </SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: #2a00ff">"!:\\sys\\bin\\AutoStart.exe"</SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: black">; </SPAN></DIV>
<DIV align=left><SPAN style="FONT-SIZE: 10pt; COLOR: black">
recovery = EStartupItemExPolicyNone;</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; COLOR: black">}</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; COLOR: black">此处的</SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: black">AutoStart.exe</SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: black">是你的应用程序文件名。</SPAN></DIV>
<DIV><SPAN
style="FONT-SIZE: 10pt; COLOR: black">注:笔者视图通过此处改为其他应用程序名启动,但是没有成功。</SPAN></DIV>
<DIV style="MARGIN-LEFT: 18pt; TEXT-INDENT: -18pt"><SPAN>2)<SPAN
style="FONT: 7pt 'Times New Roman'">
</SPAN></SPAN>在mmp文件中增加以下代码</DIV>
<DIV align=left><SPAN style="FONT-SIZE: 10pt">START RESOURCE [ef37946b].rss
</SPAN></DIV>
<DIV align=left><SPAN
style="FONT-SIZE: 10pt"> TARGETPATH
\private\101f875a\import </SPAN></DIV>
<DIV align=left><SPAN
style="FONT-SIZE: 10pt"> HEADER
</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt">END</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt">确保:</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt">LANG
SC</SPAN></DIV>
<DIV><SPAN
style="FONT-SIZE: 10pt">CAPABILITY
ReadUserData</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt">注意</SPAN><SPAN
style="FONT-SIZE: 10pt">“</SPAN><SPAN
style="FONT-SIZE: 10pt">\private\101f875a\import</SPAN><SPAN
style="FONT-SIZE: 10pt">”</SPAN><SPAN style="FONT-SIZE: 10pt">不能够变。</SPAN></DIV>
<DIV style="MARGIN-LEFT: 18pt; TEXT-INDENT: -18pt"><SPAN
style="FONT-SIZE: 10pt">3)<SPAN
style="FONT: 7pt 'Times New Roman'"> </SPAN></SPAN><SPAN
style="FONT-SIZE: 10pt">在</SPAN><SPAN style="FONT-SIZE: 10pt">pkg</SPAN><SPAN
style="FONT-SIZE: 10pt">文件中增加以下代码</SPAN></DIV>
<DIV><SPAN
style="FONT-SIZE: 10pt">"$(EPOCROOT)epoc32\release\winscw\udeb\z\private\101f875a\import[ef37946b].rSC"-"!:\private\101f875a\import\[ef37946a].rSC"</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt">如果是采用</SPAN><SPAN
style="FONT-SIZE: 10pt">carbidec++1.2</SPAN><SPAN
style="FONT-SIZE: 10pt">编译,那么你可以使用上述代码</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt">如果是使用</SPAN><SPAN
style="FONT-SIZE: 10pt">makesis</SPAN><SPAN
style="FONT-SIZE: 10pt">命令行打包或者使用</SPAN><SPAN
style="FONT-SIZE: 10pt">.Net</SPAN><SPAN
style="FONT-SIZE: 10pt">编译,那么你需要修改成绝对路径,路径名视你的安装目录而定。</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt">例如:</SPAN></DIV>
<DIV><SPAN
style="FONT-SIZE: 10pt">"C:\Symbian\9.1\S60_3rd_MR\Epoc32\Data\z\private\101f875a\import[ef37946b].rSC"-"!:\private\101f875a\import\[ef37946a].rSC"</SPAN></DIV>
<P> 以上内容测试通过,主要是根据liuxg提供的测试代码整理,你可以通过<A
href="http://discussion.forum.nokia.com/forum/showthread.php?t=109161">http://discussion.forum.nokia.com/forum/showthread.php?t=109161</A> 下载源代码</P><BR><BR>
<P id=TBPingURL>Trackback:
http://tb.blog.csdn.net/TrackBack.aspx?PostId=1683835</P><BR></DIV>
<DIV class=postFoot>
<SCRIPT src=""></SCRIPT>
[<A title=功能强大的网络收藏夹,一秒钟操作就可以轻松实现保存带来的价值、分享带来的快乐
href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(saveit=window.open('http://wz.csdn.net/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=590,height=300,left=75,top=20,status=no,resizable=yes'));saveit.focus();">收藏到我的网摘</A>]
[<A
href="http://tb.blog.csdn.net/TrackBack.aspx?PostId=1683835">发送Trackback]</A> mathlll发表于
2007年07月09日 18:12:00 </DIV></DIV><LINK
href="http://blog.csdn.net/sodangerous/Services/Pingback.aspx" rel=pingback><!--<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"xmlns:dc="http://purl.org/dc/elements/1.1/"xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"><rdf:Descriptionrdf:about="http://blog.csdn.net/sodangerous/archive/2007/07/09/1683835.aspx"dc:identifier="http://blog.csdn.net/sodangerous/archive/2007/07/09/1683835.aspx"dc:title="如何编写Symbian 3rd 应用程序,让手机开机自启动"trackback:ping="http://tb.blog.csdn.net/TrackBack.aspx?PostId=1683835" /></rdf:RDF>-->
<SCRIPT>function hide(){showComment();}</SCRIPT>
<BR><BR><BR>
<DIV class=post id=csdn_zhaig_ad_yahoo></DIV>
<SCRIPT type=text/javascript>document.write("<img src=http://counter.csdn.net/pv.aspx?id=24 border=0 width=0 height=0>");</SCRIPT>
<SPAN class=PreAndNext id=viewpost.ascx_PreviousAndNextEntriesDown>
<DIV align=center><A
href="http://blog.csdn.net/sodangerous/archive/2007/07/30/1717729.aspx">上一篇: Symbian
3rd签名,自签名,开发证书,制造商级别,能力集,ACS ID,收费,敏感API</A> | <A
href="http://blog.csdn.net/sodangerous/archive/2007/07/03/1677739.aspx">下一篇: 社会生活中的十二条著名法则(精典)
</A></DIV></SPAN>
<DIV id=comments><SPAN id=Anthem_Comments.ascx_ltlComments__><SPAN
id=Comments.ascx_ltlComments><BR>
<DIV id=comments>
<H3>评论</H3>没有评论。 </DIV></SPAN></SPAN></DIV>
<SCRIPT language=javascript>
ad_width=468;
ad_height=60;
adcss=2;
unionuser=19;
ad_type='j';
count=5;
</SCRIPT>
<SCRIPT language=javascript src="如何编写Symbian 3rd 应用程序,让手机开机自启动.files/showads.js"
type=text/javascript></SCRIPT>
<SCRIPT language=javascript src="如何编写Symbian 3rd 应用程序,让手机开机自启动.files/showgm.js"
type=text/javascript></SCRIPT>
<!--done-->
<DIV class=comments>添加新评论 <BR>
<DIV id=Anthem_PostComment.ascx_CommentUpdatePanel__>
<DIV id=PostComment.ascx_CommentUpdatePanel>
<TABLE class=commentsTable id=CommentForm cellSpacing=2 cellPadding=0
border=0><TBODY>
<TR>
<TD width=75>大名</TD>
<TD><INPUT id=PostComment.ascx_tbName style="WIDTH: 322px" maxLength=32
size=40 name=PostComment.ascx:tbName></TD>
<TD><SPAN id=PostComment.ascx_RequiredFieldValidator2
style="VISIBILITY: hidden; COLOR: red" initialvalue=""
evaluationfunction="RequiredFieldValidatorEvaluateIsValid"
errormessage="Please enter your name"
controltovalidate="PostComment.ascx_tbName">Please enter your
name</SPAN></TD></TR>
<TR>
<TD>网址</TD>
<TD><INPUT id=PostComment.ascx_tbUrl style="WIDTH: 322px" maxLength=256
size=40 name=PostComment.ascx:tbUrl></TD>
<TD></TD></TR>
<DIV id=PostComment.ascx_AntiBotImageRegion></DIV>
<TR>
<TD>校验码:</TD>
<TD colSpan=2><INPUT id=PostComment.ascx_tbAntiBotImage
style="WIDTH: 75px" name=PostComment.ascx:tbAntiBotImage> <SPAN
id=PostComment.ascx_valAntiBotImage style="DISPLAY: none; COLOR: red"
evaluationfunction="CustomValidatorEvaluateIsValid"
display="Dynamic">检验码无效!</SPAN> <SPAN
id=Anthem_PostComment.ascx_imgAntiBotImage__><IMG
id=PostComment.ascx_imgAntiBotImage alt=""
src="如何编写Symbian 3rd 应用程序,让手机开机自启动.files/AntiBotImage.htm" align=absMiddle
border=0></SPAN> <SPAN
id=Anthem_PostComment.ascx_lbCreateAntiBotImage__><A
id=PostComment.ascx_lbCreateAntiBotImage
onclick="javascript:Anthem_FireCallBackEvent(this,event,'PostComment.ascx:lbCreateAntiBotImage','',false,'','','',true,null,null,null,true,true);return false;"
href="javascript:__doPostBack('PostComment.ascx$lbCreateAntiBotImage','')">看不清,换一张</A></SPAN>
</TD></TR>
<DIV></DIV>
<TR>
<TD colSpan=3><BR>评论 <SPAN
id=PostComment.ascx_RequiredFieldValidator3
style="VISIBILITY: hidden; COLOR: red" initialvalue=""
evaluationfunction="RequiredFieldValidatorEvaluateIsValid"
errormessage="Please enter a comment"
controltovalidate="PostComment.ascx_tbComment">Please enter a
comment</SPAN><BR><TEXTAREA id=PostComment.ascx_tbComment style="WIDTH: 400px" name=PostComment.ascx:tbComment rows=6 cols=50></TEXTAREA>
</TD></TR>
<TR>
<TD colSpan=3><SPAN id=Anthem_PostComment.ascx_btnSubmit__><INPUT language=javascript class=Button id=PostComment.ascx_btnSubmit onclick="javascript:Anthem_FireCallBackEvent(this,event,'PostComment.ascx:btnSubmit','',true,'','','正在处理...',false,null,null,null,true,true);return false;WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("PostComment.ascx:btnSubmit", "", true, "", "", false, false))" type=submit value=提交 name=PostComment.ascx:btnSubmit></SPAN></TD></TR>
<TR>
<TD colSpan=3><SPAN id=PostComment.ascx_Message style="COLOR: red"><A
href="http://passport.csdn.net/member/UserLogin.aspx?from=http://blog.csdn.net/sodangerous/archive/2007/07/09/1683835.aspx">登录</A></SPAN></TD></TR></TBODY></TABLE></DIV></DIV></DIV></DIV><!--done-->
<DIV class=footer>Copyright ©2007 mathlll 模板提供:<A class=footerlink
href="http://blog.hjenglish.com/">沪江博客</A><BR></DIV>
<SCRIPT src="如何编写Symbian 3rd 应用程序,让手机开机自启动.files/counter.js"></SCRIPT>
<SCRIPT type=text/javascript>
<!--
var Page_Validators = new Array(document.getElementById("PostComment.ascx_RequiredFieldValidator2"), document.getElementById("PostComment.ascx_valAntiBotImage"), document.getElementById("PostComment.ascx_RequiredFieldValidator3"));
// -->
</SCRIPT>
<SCRIPT type=text/javascript>
<!--
var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
ValidatorOnLoad();
}
function ValidatorOnSubmit() {
if (Page_ValidationActive) {
return ValidatorCommonOnSubmit();
}
else {
return true;
}
}
// -->
</SCRIPT>
</FORM>
<SCRIPT language=javascript type=text/javascript>
<!--
try
{
hide();
}
catch(e){}
//-->
</SCRIPT>
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -