类似于丁丁优惠劵那种,用第三方扫码软件扫描指定优惠劵二维码后会转到丁丁应用中的此优惠劵信息页面。类似这种效果该如何实现?

解决方案 »

  1.   

    uri?貌似可以实现,不过要第三方软件本身有写这个方法
      

  2.   

    不知道这个可以不可以.
    扫描后是一个你们官网的网址,打开网址后有一个链接,例如是http://192.168.167.33:8088/mi-tracker-web/download.html, 点击链接后,打开应用.
    应用里需要写上这样的intent-filter: <activity android:name=".ui.UploadActivity" android:screenOrientation="portrait">
                <intent-filter>
             <data android:scheme="http" android:host="192.168.167.33" android:port="8088" android:path="/mi-tracker-web/download.html"/>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
             </intent-filter>
            </activity>
    具体能不能用还没试过.
    如果这种方案不行或者觉得不合理,那只能像微信那样内置一个扫描功能了吧,或者跟第三方扫描软件合作.
    参考资料:http://blog.csdn.net/hundsong/article/details/6623500
      

  3.   

    不会抓包,网上的某人抓的ios上的微信的包:http://www.blublu.me/news/detail/183893