<!-- Tell Cocos2dxActivity the name of our .so -->
<meta-data android:name="android.app.lib_name"
android:value="cocos2dlua" />
<activity
android:name="org.cocos2dx.lua.AppActivity"
android:screenOrientation="landscape"
android:configChanges="orientation|keyboardHidden|screenSize"
android:label="xxxxxx
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!--通过浏览器Url启动app-->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="comdalianyuanyuan" />
</intent-filter>
</activity>
![](https://images2018.cnblogs.com/blog/1054675/201808/1054675-20180816132218647-1298126428.png)
*************放在activity里面************
Intent i_getvalue = getIntent();
String action = i_getvalue.getAction();
if(Intent.ACTION_VIEW.equals(action)){
Uri uri = i_getvalue.getData();
String search = i_getvalue.getDataString();
if(uri != null){
sharedRoomMsg =search;//uri.getQueryParameter("roomId");
}
}
//获取信息
public static String getsharedRoomMsg() {
String send = sharedRoomMsg;
sharedRoomMsg = "";
return send;
}