這期內容當中小編將會給大家帶來有關Android開發中怎么獲取瀏覽器當前頁面的截圖,文章內容豐富且以專業的角度為大家分析和敘述,閱讀完這篇文章希望大家可以有所收獲。
首先,新建一個 BrowserScreenShotActivity.java,在 AndroidManifest.xml 注冊一下 <intent-filter>。
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.littlejie.demo"> <!-- 讀寫權限 --> <!-- 用于讀取瀏覽器分享時生成的屏幕截圖 --> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <application android:name=".modules.DemoApplication" android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> <!-- some other thing --> <!-- 注冊 Intent,用于接受瀏覽器分享 --> <activity android:name=".modules.advance.BrowserScreenShotActivity" android:launchMode="singleTask"> <intent-filter> <action android:name="android.intent.action.SEND"/> <!-- 發送多個數據 --> <action android:name="android.intent.action.SEND_MULTIPLE"/> <category android:name="android.intent.category.DEFAULT"/> <data android:mimeType="*/*"/> </intent-filter> </activity> </application> </manifest>
網站標題:Android開發中怎么獲取瀏覽器當前頁面的截圖-創新互聯
當前URL:http://www.yijiale78.com/article46/ddoeeg.html
成都網站建設公司_創新互聯,為您提供面包屑導航、定制網站、企業網站制作、自適應網站、外貿網站建設、網站策劃
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯