AIR应用程序,增加活动体现改变了应用程序设计 [英] AIR app, adding activity to manifest changes the app design
问题描述
我有一个小问题,可能是因为我在Android开发的新手。
I have a small problem, probably because I'm a newbie in Android development.
我想提出一个空气移动应用程序,与AIR本机扩展。 我的扩展被用于创建警报。在我的BroadcastReceiver我做的意图,叫我的AIR应用程序。 为了使这个电话可能我不得不添加的活动我的AIR应用程序清单是这样的:
I am making an Air mobile App, with an Air Native Extension. My extension is used to create alarms. In my BroadcastReceiver I make an Intent to call my Air App. To make this call possible I had to add the activity in my Air App Manifest like this :
<manifestAdditions><![CDATA[
<manifest>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
<application>
<receiver android:name="com.atnetplanet.alarminterface.AlarmInterfaceBroadcastReceiver">
<intent-filter>
<action android:name="com.atnetplanet.alarminterface.AlarmInterfaceBroadcastReceiver.onReceive"/>
</intent-filter>
</receiver>
<activity android:name="air.com.atnetplanet.pikup.AppEntry" >
<intent-filter>
<action android:name="air.com.atnetplanet.pikup.AppEntry" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
</manifest>
]]>
由于我在清单中加入这一活动我的应用程序是由我的广播唤醒和一切都很好......除了我的应用程序的设计改变:我上面有实际屏幕的应用程序的名称( 我试图更改舱单,但无法删除此头不破我的应用程序。
Since I have added this activity in my manifest my app is awaken by my broadcast and everything is fine... except that the design of my app is changed : I have the name of the app above the actual screen ( I tried to make changes to the manifest, but wasn't able to remove this header without breaking my app.
有没有人能告诉我,我做错了什么?
Does anyone can tell me what I'm doing wrong ?
感谢。
推荐答案
我回答自己,所以,如果有人面临着同样的问题,他可以看到一个答案。 问题是在AIR清单。 我不得不活动的声明改成这样:
I answer to myself so if someone faces the same problem he can see an answer. The problem was in the AIR manifest. I had to change the declaration of the activity to this :
<manifest>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
<application>
<receiver android:name="com.atnetplanet.alarminterface.AlarmInterfaceBroadcastReceiver">
<intent-filter>
<action android:name="com.atnetplanet.alarminterface.AlarmInterfaceBroadcastReceiver.onReceive"/>
</intent-filter>
</receiver>
<activity>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<action android:name="air.com.atnetplanet.pikup.AppEntry" />
<category android:name="android.intent.category.LAUNCHER"/>
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="pikup" />
</intent-filter>
</activity>
</application>
</manifest>
请注意,该活动节点没有名称插入,而且我必须把或编译时,我将有一个形状错误明显的错误。
Note that the activity node doesn't have the name inserted, and that I must put the or I'll have a misformed Manifest error when compiling.
希望这会帮助别人。
这篇关于AIR应用程序,增加活动体现改变了应用程序设计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!