我在Android中有一個磁卡讀卡器代碼,我想訪問此應用程序到瀏覽器中(通過javascript)或使用HTML5 getUserMedia()
API來刷卡並獲取卡信息通過JavaScript。任何方式來做到這一點?請分享示例代碼,如果你有...如何將原生android應用程序調用到瀏覽器中
編輯:我提到這個鏈接: Jquery Mobile Web: Is Calling Native Apps possible?
我不知道如何在我的腳本中使用這樣的:MYAPP:// myparam
我在清單文件中添加以下代碼,
<intent-filter>
<action android:name="android.intent.action.VIEW" >
</action>
<category android:name="android.intent.category.DEFAULT" >
</category>
<category android:name="android.intent.category.BROWSABLE" >
</category>
<data
android:host="http://market.android.com/"
android:scheme="http" >
</data>
</intent-filter>
如何啓動這個程序在瀏覽器(即鏈接)...
你到目前爲止嘗試過什麼?我不是親電話,但我認爲你將不得不開發擴展 – Geoffroy
我有unimag讀卡器代碼(android代碼)來獲取卡信息。但我不知道如何使用腳本調用此瀏覽器。 – Jems
看看http://stackoverflow.com/questions/525063/android-respond-to-url-in-intent和http://stackoverflow.com/questions/2430045/how-to-register-some-url-namespace -myapp-app-start-for-access-your-progr – KKetch