Android manifest

2019-07-15 10:32发布

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> 

1条回答
趁早两清
2楼-- · 2019-07-15 10:45

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"

查看更多
登录 后发表回答