Android manifest

旧时模样 提交于 2020-01-05 02:57:06

问题


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:


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"



来源:https://stackoverflow.com/questions/4666908/android-manifest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!