问题描述
我的申请中有两个包裹1.com.fsp.deals和2.com.facebook.android ..
I am having two package in my application1.com.fsp.deals and 2.com.facebook.android..
我在清单文件中将我的软件包声明为package = com.fsp.deals. 如果我想使用com.facebook.android中的活动,应如何在清单文件中调用活动,因为我定义为
i declared my package as package =com.fsp.deals in Manifest file.. if i want to use the activity in com.facebook.android how i should call activity in manifest file it showing error as i define as
</activity>
<activity android:name="com.facebook.android.Example"
android:screenOrientation="portrait" android:label="@string/app_name"
android:windowSoftInputMode="stateUnspecified|adjustPan">
</activity>
推荐答案
您不能那样使用,所有活动都应该在清单文件中指定的包或其子包中.
You cannot use like that, All you activity should be there in the package or its child package that you specify in the Manifest file.
一种解决方案.
1.更改为将包com.facebook.android
更改为com.fsp.deals.android
2.然后在清单文件中设置活动
One solution for.
1. Change to package com.facebook.android
to com.fsp.deals.android
2. Then you set in activity in your manifest file like this
</activity>
<activity android:name=".android.Example"
android:screenOrientation="portrait" android:label="@string/app_name"
android:windowSoftInputMode="stateUnspecified|adjustPan">
</activity>
其中package ="com.fsp.deals"
这篇关于Android清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!