开发者

Android manifest

开发者 https://www.devze.com 2023-02-03 15:03 出处:网络
I am having two package in my application 1.com.fsp.deals and 2.com.facebook.android开发者_运维知识库..

I am having two package in my application 1.com.fsp.deals and 2.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.

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> 

where package ="com.fsp.deals"

0

精彩评论

暂无评论...
验证码 换一张
取 消