zoukankan      html  css  js  c++  java
  • android 浏览器跳转app

    <!-- 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>
     
    "
     
     
    *************放在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;
    }

  • 相关阅读:
    九九乘法表
    杨辉三角
    显示计算机界面
    完善3.2
    杨辉三角形
    100以内的素数
    九九乘法表
    杨辉三角
    九九乘法表
    杨辉三角形
  • 原文地址:https://www.cnblogs.com/liujiang04/p/9486732.html
Copyright © 2011-2022 走看看