1
我想知道如果有可能有人点击在Android浏览器中的链接,它会使相机弹出,所以你可以捕捉图像,然后通过MMS发送它?发送彩信与照片通过HTML链接在Android
我想知道如果有可能有人点击在Android浏览器中的链接,它会使相机弹出,所以你可以捕捉图像,然后通过MMS发送它?发送彩信与照片通过HTML链接在Android
是的,这可以做到。只需将链接设置为清单中的某个组件具有为其设置的意图过滤器即可。举例来说,假设您有一个名为MyActivity的活动。然后以下内容将出现在清单中:
<activity name="MyActivity">
<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="http" android:host="special.url.from/your/webpage"/>
</intent-filter>
</activity>
我的活动然后指示他们拍照并通过彩信发送。