{"id":813,"date":"2023-04-02T00:32:57","date_gmt":"2023-07-28T13:23:25","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/index.php\/2023\/11\/30\/%e4%bb%8e%e7%9b%b8%e6%9c%ba%e5%92%8c%e7%9b%b8%e5%86%8c%e4%b8%ad%e6%8d%95%e8%8e%b7android%e5%9b%be%e7%89%87\/"},"modified":"2025-08-03T10:12:58","modified_gmt":"2025-08-03T02:12:58","slug":"%e4%bb%8e%e7%9b%b8%e6%9c%ba%e5%92%8c%e7%9b%b8%e5%86%8c%e4%b8%ad%e6%8d%95%e8%8e%b7android%e5%9b%be%e7%89%87","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%9b%b8%e6%9c%ba%e5%92%8c%e7%9b%b8%e5%86%8c%e4%b8%ad%e6%8d%95%e8%8e%b7android%e5%9b%be%e7%89%87\/","title":{"rendered":"Android\u5f00\u53d1\u6307\u5357\uff1a\u4ece\u76f8\u673a\u548c\u76f8\u518c\u83b7\u53d6\u56fe\u7247\u7684\u5b8c\u6574\u6559\u7a0b"},"content":{"rendered":"<p>\u8fd9\u662f\u6587\u7ae0\u300a\u4ece\u76f8\u673a\u548c\u76f8\u518c\u4e2d\u6355\u83b7Android\u56fe\u7247\u300b\u7684\u7b2c1\u90e8\u5206\uff08\u51712\u90e8\u5206\uff09\u3002<\/p>\n<p>\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u4eec\u5c06\u5f00\u53d1\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\uff0c\u8be5\u7a0b\u5e8f\u53ef\u4ee5\u4ece\u76f8\u673a\u6216\u56fe\u5e93\u4e2d\u9009\u62e9\u4e00\u5f20\u56fe\u7247\uff0c\u5e76\u5728ImageView\u4e2d\u663e\u793a\u51fa\u6765\u3002\u6ce8\u610f\uff1a\u4ee5\u4e0b\u4ee3\u7801\u5bf9\u4e8eAndroid Nougat\uff08\u725b\u8f67\u7cd6\uff09\u4e4b\u524d\u7684\u7248\u672c\u53ef\u4ee5\u6b63\u5e38\u5de5\u4f5c\u3002\u8981\u67e5\u770b\u6700\u65b0\u7684\u5de5\u4f5c\u793a\u4f8b\uff0c\u8bf7\u53c2\u9605\u66f4\u65b0\u7684\u6587\u7ae0\u3002\uff08\u8bf7\u6ce8\u610f\uff1aGoogle\u5df2\u7ecf\u6539\u53d8\u4e86Android\u7248\u672c\u7684\u547d\u540d\u65b9\u5f0f\u3002Android Q\u5df2\u7ecf\u6539\u540d\u4e3aAndroid 10\u3002\u7531\u4e8e\u672c\u6559\u7a0b\u662f\u5728Google\u505a\u51fa\u6b64\u51b3\u5b9a\u4e4b\u524d\u7f16\u5199\u7684\uff0c\u56e0\u6b64\u5728\u6587\u7ae0\u4e2d\u4f1a\u770b\u5230Android Q\u7684\u4e00\u4e9b\u5730\u65b9\u3002\uff09<\/p>\n<h3>\u5b89\u5353\u7167\u7247\u6355\u83b7\u6982\u8ff0<\/h3>\n<p>\u968f\u7740Android Marshmallow\uff08\u68c9\u82b1\u7cd6\uff09\u7684\u63a8\u51fa\uff0c\u8fd0\u884c\u65f6\u6743\u9650\u9700\u8981\u88ab\u7f6e\u4e8e\u524d\u6cbf\u5b9e\u65bd\u3002\u5c06\u4ee5\u4e0b\u6743\u9650\u6dfb\u52a0\u5230Android Manifest.xml\u6587\u4ef6\u4e2d\uff0c\u4f4d\u4e8e\u5e94\u7528\u7a0b\u5e8f\u6807\u7b7e\u4e4b\u4e0a\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;uses-feature\r\n        android:name=\"android.hardware.camera\"\r\n        android:required=\"false\" \/&gt;\r\n    &lt;uses-feature\r\n        android:name=\"android.hardware.camera.autofocus\"\r\n        android:required=\"false\" \/&gt;\r\n    &lt;uses-feature\r\n        android:name=\"android.hardware.camera.flash\"\r\n        android:required=\"false\" \/&gt;\r\n\r\n    &lt;uses-permission android:name=\"android.permission.CAMERA\" \/&gt;\r\n    &lt;uses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\"\/&gt;\r\n<\/code><\/pre>\n<p>\u901a\u8fc7\u6dfb\u52a0android.hardware.camera\uff0cPlay\u5546\u5e97\u53ef\u4ee5\u68c0\u6d4b\u5e76\u9632\u6b62\u5728\u6ca1\u6709\u76f8\u673a\u7684\u8bbe\u5907\u4e0a\u5b89\u88c5\u8be5\u5e94\u7528\u7a0b\u5e8f\u3002Intent\uff08\u610f\u56fe\uff09\u662f\u5c06\u52a8\u4f5c\u59d4\u6258\u7ed9\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\u7684\u6807\u51c6\u65b9\u5f0f\u3002\u8981\u542f\u52a8\u672c\u673a\u76f8\u673a\uff0cIntent\u9700\u8981android.provider.MediaStore.ACTION_IMAGE_CAPTURE\u3002\u8981\u4ece\u56fe\u5e93\u9009\u62e9\u56fe\u50cf\uff0cIntent\u9700\u8981\u4ee5\u4e0b\u53c2\u6570\uff1aIntent.ACTION_GET_CONTENT\u3002\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u4eec\u5c06\u8c03\u7528\u4e00\u4e2a\u56fe\u50cf\u9009\u62e9\u5668\uff0c\u5b83\u5141\u8bb8\u6211\u4eec\u4ece\u76f8\u673a\u6216\u56fe\u5e93\u4e2d\u9009\u62e9\u56fe\u50cf\uff0c\u5e76\u5728\u4e00\u4e2a\u5706\u5f62\u56fe\u50cf\u89c6\u56fe\u548c\u4e00\u4e2a\u666e\u901a\u56fe\u50cf\u89c6\u56fe\u4e2d\u663e\u793a\u56fe\u50cf\u3002\u5728build.gradle\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u4f9d\u8d56\u9879\uff1a<\/p>\n<pre class=\"post-pre\"><code>compile 'de.hdodenhof:circleimageview:2.1.0'\r\n<\/code><\/pre>\n<h3>\u5b89\u5353\u56fe\u50cf\u6355\u83b7\u9879\u76ee\u7ed3\u6784<\/h3>\n<h3>Android \u62cd\u7167\u4ee3\u7801<\/h3>\n<p>\u8fd9\u662f\u6587\u7ae0\u300a\u4ece\u76f8\u673a\u548c\u76f8\u518c\u4e2d\u6355\u83b7Android\u56fe\u7247\u300b\u7684\u7b2c2\u90e8\u5206\uff08\u51712\u90e8\u5206\uff09\u3002<\/p>\n<p>\u5185\u5bb9\u7247\u6bb5: activity_main.xml\u7684\u5e03\u5c40\u4fdd\u6301\u4e0d\u53d8\uff0c\u53ea\u9700\u5c06FAB\u6309\u94ae\u7684\u56fe\u6807\u66f4\u6539\u4e3a@android\uff1adrawable\/ic_menu_camera\u3002\u4e0b\u9762\u7ed9\u51fa\u4e86content_main.xml\u7684\u5185\u5bb9\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;RelativeLayout xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"\r\n    xmlns:app=\"https:\/\/schemas.android.com\/apk\/res-auto\"\r\n    xmlns:tools=\"https:\/\/schemas.android.com\/tools\"\r\n    android:id=\"@+id\/content_main\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"\r\n    android:paddingBottom=\"@dimen\/activity_vertical_margin\"\r\n    android:paddingLeft=\"@dimen\/activity_horizontal_margin\"\r\n    android:paddingRight=\"@dimen\/activity_horizontal_margin\"\r\n    android:paddingTop=\"@dimen\/activity_vertical_margin\"\r\n    android:background=\"#000000\"\r\n    app:layout_behavior=\"@string\/appbar_scrolling_view_behavior\"\r\n    tools:context=\"com.Olivia.imagepicker.MainActivity\"\r\n    tools:showIn=\"@layout\/activity_main\"&gt;\r\n\r\n\r\n    &lt;RelativeLayout\r\n        android:layout_width=\"250dp\"\r\n        android:layout_height=\"250dp\"\r\n        android:layout_centerHorizontal=\"true\"\r\n        android:layout_centerVertical=\"true\"\r\n        android:background=\"@drawable\/image_border\"\r\n        android:clickable=\"true\"\r\n        android:orientation=\"vertical\"&gt;\r\n\r\n\r\n        &lt;ImageView\r\n            android:id=\"@+id\/imageView\"\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"match_parent\"\r\n            android:adjustViewBounds=\"true\"\r\n            android:scaleType=\"centerCrop\" \/&gt;\r\n\r\n    &lt;\/RelativeLayout&gt;\r\n\r\n    &lt;de.hdodenhof.circleimageview.CircleImageView\r\n        android:id=\"@+id\/img_profile\"\r\n        android:layout_width=\"100dp\"\r\n        android:layout_height=\"100dp\"\r\n        android:layout_gravity=\"center_horizontal\"\r\n        android:src=\"@drawable\/profile\"\r\n        app:civ_border_width=\"5dp\"\r\n        app:civ_border_color=\"#FFFFFF\"\r\n        android:layout_alignParentBottom=\"true\"\r\n        android:layout_centerHorizontal=\"true\" \/&gt;\r\n\r\n&lt;\/RelativeLayout&gt;\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u63d0\u4f9b\u4e86 MainActivity.java \u7684\u4ee3\u7801\u3002<\/p>\n<pre class=\"post-pre\"><code>public class MainActivity extends AppCompatActivity {\r\n\r\n    Bitmap myBitmap;\r\n    Uri picUri;\r\n\r\n\r\n    private ArrayList permissionsToRequest;\r\n    private ArrayList permissionsRejected = new ArrayList();\r\n    private ArrayList permissions = new ArrayList();\r\n\r\n    private final static int ALL_PERMISSIONS_RESULT = 107;\r\n\r\n    @Override\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(R.layout.activity_main);\r\n        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\r\n        setSupportActionBar(toolbar);\r\n\r\n        FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);\r\n        fab.setOnClickListener(new View.OnClickListener() {\r\n            @Override\r\n            public void onClick(View view) {\r\n                startActivityForResult(getPickImageChooserIntent(), 200);\r\n            }\r\n        });\r\n\r\n\r\n        permissions.add(CAMERA);\r\n        permissionsToRequest = findUnAskedPermissions(permissions);\r\n        \/\/get the permissions we have asked for before but are not granted..\r\n        \/\/we will store this in a global list to access later.\r\n\r\n\r\n        if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.M) {\r\n\r\n\r\n            if (permissionsToRequest.size() &gt; 0)\r\n                requestPermissions(permissionsToRequest.toArray(new String[permissionsToRequest.size()]), ALL_PERMISSIONS_RESULT);\r\n        }\r\n\r\n    }\r\n\r\n    @Override\r\n    public boolean onCreateOptionsMenu(Menu menu) {\r\n        \/\/ Inflate the menu; this adds items to the action bar if it is present.\r\n        getMenuInflater().inflate(R.menu.menu_main, menu);\r\n        return true;\r\n    }\r\n\r\n    @Override\r\n    public boolean onOptionsItemSelected(MenuItem item) {\r\n        \/\/ Handle action bar item clicks here. The action bar will\r\n        \/\/ automatically handle clicks on the Home\/Up button, so long\r\n        \/\/ as you specify a parent activity in AndroidManifest.xml.\r\n        int id = item.getItemId();\r\n\r\n        \/\/noinspection SimplifiableIfStatement\r\n        if (id == R.id.action_settings) {\r\n            return true;\r\n        }\r\n\r\n        return super.onOptionsItemSelected(item);\r\n    }\r\n\r\n\r\n    \/**\r\n     * Create a chooser intent to select the source to get image from.&lt;br \/&gt;\r\n     * The source can be camera's (ACTION_IMAGE_CAPTURE) or gallery's (ACTION_GET_CONTENT).&lt;br \/&gt;\r\n     * All possible sources are added to the intent chooser.\r\n     *\/\r\n    public Intent getPickImageChooserIntent() {\r\n\r\n        \/\/ Determine Uri of camera image to save.\r\n        Uri outputFileUri = getCaptureImageOutputUri();\r\n\r\n        List allIntents = new ArrayList();\r\n        PackageManager packageManager = getPackageManager();\r\n\r\n        \/\/ collect all camera intents\r\n        Intent captureIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\r\n        List listCam = packageManager.queryIntentActivities(captureIntent, 0);\r\n        for (ResolveInfo res : listCam) {\r\n            Intent intent = new Intent(captureIntent);\r\n            intent.setComponent(new ComponentName(res.activityInfo.packageName, res.activityInfo.name));\r\n            intent.setPackage(res.activityInfo.packageName);\r\n            if (outputFileUri != null) {\r\n                intent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);\r\n            }\r\n            allIntents.add(intent);\r\n        }\r\n\r\n        \/\/ collect all gallery intents\r\n        Intent galleryIntent = new Intent(Intent.ACTION_GET_CONTENT);\r\n        galleryIntent.setType(\"image\/*\");\r\n        List listGallery = packageManager.queryIntentActivities(galleryIntent, 0);\r\n        for (ResolveInfo res : listGallery) {\r\n            Intent intent = new Intent(galleryIntent);\r\n            intent.setComponent(new ComponentName(res.activityInfo.packageName, res.activityInfo.name));\r\n            intent.setPackage(res.activityInfo.packageName);\r\n            allIntents.add(intent);\r\n        }\r\n\r\n        \/\/ the main intent is the last in the list (fucking android) so pickup the useless one\r\n        Intent mainIntent = allIntents.get(allIntents.size() - 1);\r\n        for (Intent intent : allIntents) {\r\n            if (intent.getComponent().getClassName().equals(\"com.android.documentsui.DocumentsActivity\")) {\r\n                mainIntent = intent;\r\n                break;\r\n            }\r\n        }\r\n        allIntents.remove(mainIntent);\r\n\r\n        \/\/ Create a chooser from the main intent\r\n        Intent chooserIntent = Intent.createChooser(mainIntent, \"Select source\");\r\n\r\n        \/\/ Add all other intents\r\n        chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, allIntents.toArray(new Parcelable[allIntents.size()]));\r\n\r\n        return chooserIntent;\r\n    }\r\n\r\n\r\n    \/**\r\n     * Get URI to image received from capture by camera.\r\n     *\/\r\n    private Uri getCaptureImageOutputUri() {\r\n        Uri outputFileUri = null;\r\n        File getImage = getExternalCacheDir();\r\n        if (getImage != null) {\r\n            outputFileUri = Uri.fromFile(new File(getImage.getPath(), \"profile.png\"));\r\n        }\r\n        return outputFileUri;\r\n    }\r\n\r\n    @Override\r\n    protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n\r\n        Bitmap bitmap;\r\n        if (resultCode == Activity.RESULT_OK) {\r\n\r\n            ImageView imageView = (ImageView) findViewById(R.id.imageView);\r\n\r\n            if (getPickImageResultUri(data) != null) {\r\n                picUri = getPickImageResultUri(data);\r\n\r\n                try {\r\n                    myBitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), picUri);\r\n                    myBitmap = rotateImageIfRequired(myBitmap, picUri);\r\n                    myBitmap = getResizedBitmap(myBitmap, 500);\r\n\r\n                    CircleImageView croppedImageView = (CircleImageView) findViewById(R.id.img_profile);\r\n                    croppedImageView.setImageBitmap(myBitmap);\r\n                    imageView.setImageBitmap(myBitmap);\r\n\r\n                } catch (IOException e) {\r\n                    e.printStackTrace();\r\n                }\r\n\r\n\r\n            } else {\r\n\r\n\r\n                bitmap = (Bitmap) data.getExtras().get(\"data\");\r\n\r\n                myBitmap = bitmap;\r\n                CircleImageView croppedImageView = (CircleImageView) findViewById(R.id.img_profile);\r\n                if (croppedImageView != null) {\r\n                    croppedImageView.setImageBitmap(myBitmap);\r\n                }\r\n\r\n                imageView.setImageBitmap(myBitmap);\r\n\r\n            }\r\n\r\n        }\r\n\r\n    }\r\n\r\n    private static Bitmap rotateImageIfRequired(Bitmap img, Uri selectedImage) throws IOException {\r\n\r\n        ExifInterface ei = new ExifInterface(selectedImage.getPath());\r\n        int orientation = ei.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL);\r\n\r\n        switch (orientation) {\r\n            case ExifInterface.ORIENTATION_ROTATE_90:\r\n                return rotateImage(img, 90);\r\n            case ExifInterface.ORIENTATION_ROTATE_180:\r\n                return rotateImage(img, 180);\r\n            case ExifInterface.ORIENTATION_ROTATE_270:\r\n                return rotateImage(img, 270);\r\n            default:\r\n                return img;\r\n        }\r\n    }\r\n\r\n    private static Bitmap rotateImage(Bitmap img, int degree) {\r\n        Matrix matrix = new Matrix();\r\n        matrix.postRotate(degree);\r\n        Bitmap rotatedImg = Bitmap.createBitmap(img, 0, 0, img.getWidth(), img.getHeight(), matrix, true);\r\n        img.recycle();\r\n        return rotatedImg;\r\n    }\r\n\r\n    public Bitmap getResizedBitmap(Bitmap image, int maxSize) {\r\n        int width = image.getWidth();\r\n        int height = image.getHeight();\r\n\r\n        float bitmapRatio = (float) width \/ (float) height;\r\n        if (bitmapRatio &gt; 0) {\r\n            width = maxSize;\r\n            height = (int) (width \/ bitmapRatio);\r\n        } else {\r\n            height = maxSize;\r\n            width = (int) (height * bitmapRatio);\r\n        }\r\n        return Bitmap.createScaledBitmap(image, width, height, true);\r\n    }\r\n\r\n\r\n    \/**\r\n     * Get the URI of the selected image from {@link #getPickImageChooserIntent()}.&lt;br \/&gt;\r\n     * Will return the correct URI for camera and gallery image.\r\n     *\r\n     * @param data the returned data of the activity result\r\n     *\/\r\n    public Uri getPickImageResultUri(Intent data) {\r\n        boolean isCamera = true;\r\n        if (data != null) {\r\n            String action = data.getAction();\r\n            isCamera = action != null &amp;&amp; action.equals(MediaStore.ACTION_IMAGE_CAPTURE);\r\n        }\r\n\r\n\r\n        return isCamera ? getCaptureImageOutputUri() : data.getData();\r\n    }\r\n\r\n    @Override\r\n    protected void onSaveInstanceState(Bundle outState) {\r\n        super.onSaveInstanceState(outState);\r\n\r\n        \/\/ save file url in bundle as it will be null on scren orientation\r\n        \/\/ changes\r\n        outState.putParcelable(\"pic_uri\", picUri);\r\n    }\r\n\r\n    @Override\r\n    protected void onRestoreInstanceState(Bundle savedInstanceState) {\r\n        super.onRestoreInstanceState(savedInstanceState);\r\n\r\n        \/\/ get the file url\r\n        picUri = savedInstanceState.getParcelable(\"pic_uri\");\r\n    }\r\n\r\n    private ArrayList findUnAskedPermissions(ArrayList wanted) {\r\n        ArrayList result = new ArrayList();\r\n\r\n        for (String perm : wanted) {\r\n            if (!hasPermission(perm)) {\r\n                result.add(perm);\r\n            }\r\n        }\r\n\r\n        return result;\r\n    }\r\n\r\n    private boolean hasPermission(String permission) {\r\n        if (canMakeSmores()) {\r\n            if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.M) {\r\n                return (checkSelfPermission(permission) == PackageManager.PERMISSION_GRANTED);\r\n            }\r\n        }\r\n        return true;\r\n    }\r\n\r\n    private void showMessageOKCancel(String message, DialogInterface.OnClickListener okListener) {\r\n        new AlertDialog.Builder(this)\r\n                .setMessage(message)\r\n                .setPositiveButton(\"OK\", okListener)\r\n                .setNegativeButton(\"Cancel\", null)\r\n                .create()\r\n                .show();\r\n    }\r\n\r\n    private boolean canMakeSmores() {\r\n        return (Build.VERSION.SDK_INT &gt; Build.VERSION_CODES.LOLLIPOP_MR1);\r\n    }\r\n\r\n    @TargetApi(Build.VERSION_CODES.M)\r\n    @Override\r\n    public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\r\n\r\n        switch (requestCode) {\r\n\r\n            case ALL_PERMISSIONS_RESULT:\r\n                for (String perms : permissionsToRequest) {\r\n                    if (hasPermission(perms)) {\r\n\r\n                    } else {\r\n\r\n                        permissionsRejected.add(perms);\r\n                    }\r\n                }\r\n\r\n                if (permissionsRejected.size() &gt; 0) {\r\n\r\n\r\n                    if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.M) {\r\n                        if (shouldShowRequestPermissionRationale(permissionsRejected.get(0))) {\r\n                            showMessageOKCancel(\"These permissions are mandatory for the application. Please allow access.\",\r\n                                    new DialogInterface.OnClickListener() {\r\n                                        @Override\r\n                                        public void onClick(DialogInterface dialog, int which) {\r\n                                            if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.M) {\r\n\r\n                                                \/\/Log.d(\"API123\", \"permisionrejected \" + permissionsRejected.size());\r\n\r\n                                                requestPermissions(permissionsRejected.toArray(new String[permissionsRejected.size()]), ALL_PERMISSIONS_RESULT);\r\n                                            }\r\n                                        }\r\n                                    });\r\n                            return;\r\n                        }\r\n                    }\r\n\r\n                }\r\n\r\n                break;\r\n        }\r\n\r\n    }\r\n}\r\n\r\n<\/code><\/pre>\n<p>\u4ece\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\u53ef\u4ee5\u5f97\u51fa\u8bb8\u591a\u63a8\u65ad\u3002<\/p>\n<ul class=\"post-ul\">\n<li>\u6211\u4eec\u9700\u8981\u5728\u7528\u6237\u542f\u52a8\u6d3b\u52a8\u65f6\u8bf7\u6c42\u76f8\u673a\u8fd0\u884c\u65f6\u6743\u9650\u3002<\/li>\n<li>\u7531\u4e8e\u6211\u4eec\u542f\u52a8\u610f\u56fe\u662f\u4e3a\u4e86\u83b7\u53d6\u4e00\u4e9b\u8fd4\u56de\u7ed3\u679c\uff0c\u56e0\u6b64\u9700\u8981\u4f7f\u7528\u76f8\u5173\u53c2\u6570\u8c03\u7528startActivityForResult\u3002<\/li>\n<li>\u6211\u4eec\u6ca1\u6709\u4f7f\u7528\u5bf9\u8bdd\u6846\u5206\u522b\u8c03\u7528\u76f8\u673a\u548c\u76f8\u518c\u7684\u610f\u56fe\uff0c\u800c\u662f\u4f7f\u7528\u4e86getPickImageChooserIntent()\u65b9\u6cd5\uff0c\u8be5\u65b9\u6cd5\u4e3a\u6240\u6709\u76f8\u673a\u548c\u76f8\u518c\u610f\u56fe\u521b\u5efa\u4e00\u4e2a\u5355\u72ec\u7684\u9009\u62e9\u5668\u610f\u56fe\uff08\u6ce8\u610f\u6587\u6863\u610f\u56fe\uff09\u3002Intent.EXTRA_INITIAL_INTENTS\u7528\u4e8e\u5728\u4e00\u4e2a\u5730\u65b9\u6dfb\u52a0\u591a\u4e2a\u5e94\u7528\u7a0b\u5e8f\u610f\u56fe\u3002<\/li>\n<li>\u5bf9\u4e8e\u76f8\u673a\u610f\u56fe\uff0cMediaStore.EXTRA_OUTPUT\u4f5c\u4e3a\u989d\u5916\u53c2\u6570\u4f20\u9012\uff0c\u4ee5\u6307\u5b9a\u56fe\u50cf\u5b58\u50a8\u8def\u5f84\u3002\u6ca1\u6709\u8fd9\u4e2a\u53c2\u6570\uff0c\u60a8\u5c06\u53ea\u80fd\u83b7\u5f97\u4e00\u4e2a\u5c0f\u5206\u8fa8\u7387\u7684\u56fe\u50cf\u3002<\/li>\n<li>\u76f8\u673a\u8fd4\u56de\u7684\u56fe\u50cf\u7684URI\u8def\u5f84\u662f\u5728getCaptureImageOutputUri()\u65b9\u6cd5\u4e2d\u83b7\u53d6\u7684\u3002<\/li>\n<li>onActivityResult\u672c\u8d28\u4e0a\u8fd4\u56de\u4e00\u4e2a\u56fe\u50cf\u7684URI\u3002\u6709\u4e9b\u8bbe\u5907\u786e\u5b9e\u4f1a\u4ee5data.getExtras().get(&#8220;data&#8221;)\u7684\u5f62\u5f0f\u8fd4\u56de\u4f4d\u56fe\u3002<\/li>\n<li>\u5f53\u70b9\u51fb\u56fe\u50cf\u65f6\uff0c\u76f8\u673a\u5c4f\u5e55\u5728\u8fd4\u56de\u65f6\u4f1a\u91cd\u65b0\u542f\u52a8\u6d3b\u52a8\uff0c\u4ece\u800c\u5bfc\u81f4\u4ecegetCaptureImageOutputUri()\u65b9\u6cd5\u5b58\u50a8\u7684URI\u53d8\u4e3anull\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u5fc5\u987b\u4f7f\u7528onSaveInstanceState()\u548conRestoreInstanceState()\u6765\u5b58\u50a8\u548c\u6062\u590d\u8be5URI\u3002<\/li>\n<li>\u4f4d\u56fe\u662f\u901a\u8fc7\u4ee5\u4e0b\u4ee3\u7801\u884c\u4eceURI\u4e2d\u68c0\u7d22\u7684\uff1amyBitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), picUri);<\/li>\n<li>\u50cf\u4e09\u661fGalaxy\u8fd9\u6837\u7684\u8bbe\u5907\u4ee5\u6a2a\u5411\u6a21\u5f0f\u6355\u83b7\u56fe\u50cf\u3002\u6309\u539f\u6837\u68c0\u7d22\u548c\u663e\u793a\u56fe\u50cf\u53ef\u80fd\u4f1a\u5bfc\u81f4\u5176\u4ee5\u9519\u8bef\u7684\u65b9\u5411\u663e\u793a\u3002\u56e0\u6b64\u6211\u4eec\u8c03\u7528\u4e86rotateImageIfRequired(myBitmap, picUri)\u65b9\u6cd5\u3002<\/li>\n<li>ExifInterface\u662f\u4e00\u4e2a\u7528\u4e8e\u8bfb\u53d6\u548c\u5199\u5165JPEG\u6587\u4ef6\u6216RAW\u56fe\u50cf\u6587\u4ef6\u4e2d\u7684Exif\u6807\u7b7e\u7684\u7c7b\u3002<\/li>\n<li>\u6700\u540e\uff0c\u6211\u4eec\u8c03\u7528getResizedBitmap()\u65b9\u6cd5\u6309\u5bbd\u5ea6\u6216\u9ad8\u5ea6\uff08\u4ee5\u8f83\u5927\u8005\u4e3a\u51c6\uff09\u7f29\u653e\u4f4d\u56fe\uff0c\u5e76\u4f7f\u7528setImageBitmap\u5c06\u56fe\u50cf\u8bbe\u7f6e\u5230\u56fe\u50cf\u89c6\u56fe\u4e2d\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u662f\u5e94\u7528\u7a0b\u5e8f\u5728\u8fd0\u884c\u65f6\u7684\u8f93\u51fa\u7ed3\u679c\u3002\u6ce8\u610f\uff1a\u4e3a\u4e86\u6355\u6349\u5e76\u663e\u793a\u76f8\u673a\u56fe\u50cf\uff0c\u60a8\u9700\u8981\u5728\u667a\u80fd\u624b\u673a\u4e0a\u8fd0\u884c\u8be5\u5e94\u7528\u7a0b\u5e8f\uff0c\u8fd9\u662f\u663e\u800c\u6613\u89c1\u7684\u3002\u8fd9\u7ed3\u675f\u4e86\u672c\u6559\u7a0b\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u7684\u94fe\u63a5\u4e0b\u8f7dImage Capture\u7684Android\u9879\u76ee\u3002<\/p>\n<p>\u4e0b\u8f7d Android \u76f8\u673a\u62cd\u7167\u9879\u76ee\u7684\u56fe\u7247\u6355\u6349\u529f\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u662f\u6587\u7ae0\u300a\u4ece\u76f8\u673a\u548c\u76f8\u518c\u4e2d\u6355\u83b7Android\u56fe\u7247\u300b\u7684\u7b2c1\u90e8\u5206\uff08\u51712\u90e8\u5206\uff09\u3002 \u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u4eec\u5c06\u5f00\u53d1\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\uff0c [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[900,904,2152,2151,1065],"class_list":{"0":"post-813","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-uncategorized","7":"tag-android","9":"tag-2152","10":"tag-2151","11":"tag-1065"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Android\u5f00\u53d1\u6307\u5357\uff1a\u4ece\u76f8\u673a\u548c\u76f8\u518c\u83b7\u53d6\u56fe\u7247\u7684\u5b8c\u6574\u6559\u7a0b - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u8be6\u7ec6\u8bb2\u89e3Android\u5e94\u7528\u4e2d\u4ece\u76f8\u673a\u548c\u76f8\u518c\u83b7\u53d6\u56fe\u7247\u7684\u5b8c\u6574\u5b9e\u73b0\u65b9\u6cd5\u3002\u5305\u542b\u4ee3\u7801\u793a\u4f8b\u3001\u6743\u9650\u5904\u7406\u548c\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6848\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u638c\u63e1Android\u56fe\u7247\u6355\u83b7\u6280\u672f\u3002\u9002\u5408\u5404\u5c42\u6b21Android\u5f00\u53d1\u8005\u5b66\u4e60\u53c2\u8003\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4ece\u76f8\u673a\u548c\u76f8\u518c\u4e2d\u6355\u83b7android\u56fe\u7247\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android\u5f00\u53d1\u6307\u5357\uff1a\u4ece\u76f8\u673a\u548c\u76f8\u518c\u83b7\u53d6\u56fe\u7247\u7684\u5b8c\u6574\u6559\u7a0b\" \/>\n<meta property=\"og:description\" content=\"\u8be6\u7ec6\u8bb2\u89e3Android\u5e94\u7528\u4e2d\u4ece\u76f8\u673a\u548c\u76f8\u518c\u83b7\u53d6\u56fe\u7247\u7684\u5b8c\u6574\u5b9e\u73b0\u65b9\u6cd5\u3002\u5305\u542b\u4ee3\u7801\u793a\u4f8b\u3001\u6743\u9650\u5904\u7406\u548c\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6848\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u638c\u63e1Android\u56fe\u7247\u6355\u83b7\u6280\u672f\u3002\u9002\u5408\u5404\u5c42\u6b21Android\u5f00\u53d1\u8005\u5b66\u4e60\u53c2\u8003\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4ece\u76f8\u673a\u548c\u76f8\u518c\u4e2d\u6355\u83b7android\u56fe\u7247\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-28T13:23:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-03T02:12:58+00:00\" \/>\n<meta name=\"author\" content=\"\u79d1, \u96c5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u96c5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%9b%b8%e6%9c%ba%e5%92%8c%e7%9b%b8%e5%86%8c%e4%b8%ad%e6%8d%95%e8%8e%b7android%e5%9b%be%e7%89%87\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%9b%b8%e6%9c%ba%e5%92%8c%e7%9b%b8%e5%86%8c%e4%b8%ad%e6%8d%95%e8%8e%b7android%e5%9b%be%e7%89%87\/\",\"name\":\"Android\u5f00\u53d1\u6307\u5357\uff1a\u4ece\u76f8\u673a\u548c\u76f8\u518c\u83b7\u53d6\u56fe\u7247\u7684\u5b8c\u6574\u6559\u7a0b - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-07-28T13:23:25+00:00\",\"dateModified\":\"2025-08-03T02:12:58+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\"},\"description\":\"\u8be6\u7ec6\u8bb2\u89e3Android\u5e94\u7528\u4e2d\u4ece\u76f8\u673a\u548c\u76f8\u518c\u83b7\u53d6\u56fe\u7247\u7684\u5b8c\u6574\u5b9e\u73b0\u65b9\u6cd5\u3002\u5305\u542b\u4ee3\u7801\u793a\u4f8b\u3001\u6743\u9650\u5904\u7406\u548c\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6848\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u638c\u63e1Android\u56fe\u7247\u6355\u83b7\u6280\u672f\u3002\u9002\u5408\u5404\u5c42\u6b21Android\u5f00\u53d1\u8005\u5b66\u4e60\u53c2\u8003\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%9b%b8%e6%9c%ba%e5%92%8c%e7%9b%b8%e5%86%8c%e4%b8%ad%e6%8d%95%e8%8e%b7android%e5%9b%be%e7%89%87\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%9b%b8%e6%9c%ba%e5%92%8c%e7%9b%b8%e5%86%8c%e4%b8%ad%e6%8d%95%e8%8e%b7android%e5%9b%be%e7%89%87\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%9b%b8%e6%9c%ba%e5%92%8c%e7%9b%b8%e5%86%8c%e4%b8%ad%e6%8d%95%e8%8e%b7android%e5%9b%be%e7%89%87\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Android\u5f00\u53d1\u6307\u5357\uff1a\u4ece\u76f8\u673a\u548c\u76f8\u518c\u83b7\u53d6\u56fe\u7247\u7684\u5b8c\u6574\u6559\u7a0b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\",\"name\":\"\u79d1, \u96c5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u96c5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%9b%b8%e6%9c%ba%e5%92%8c%e7%9b%b8%e5%86%8c%e4%b8%ad%e6%8d%95%e8%8e%b7android%e5%9b%be%e7%89%87\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Android\u5f00\u53d1\u6307\u5357\uff1a\u4ece\u76f8\u673a\u548c\u76f8\u518c\u83b7\u53d6\u56fe\u7247\u7684\u5b8c\u6574\u6559\u7a0b - Blog - Silicon Cloud","description":"\u8be6\u7ec6\u8bb2\u89e3Android\u5e94\u7528\u4e2d\u4ece\u76f8\u673a\u548c\u76f8\u518c\u83b7\u53d6\u56fe\u7247\u7684\u5b8c\u6574\u5b9e\u73b0\u65b9\u6cd5\u3002\u5305\u542b\u4ee3\u7801\u793a\u4f8b\u3001\u6743\u9650\u5904\u7406\u548c\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6848\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u638c\u63e1Android\u56fe\u7247\u6355\u83b7\u6280\u672f\u3002\u9002\u5408\u5404\u5c42\u6b21Android\u5f00\u53d1\u8005\u5b66\u4e60\u53c2\u8003\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u4ece\u76f8\u673a\u548c\u76f8\u518c\u4e2d\u6355\u83b7android\u56fe\u7247\/","og_locale":"zh_CN","og_type":"article","og_title":"Android\u5f00\u53d1\u6307\u5357\uff1a\u4ece\u76f8\u673a\u548c\u76f8\u518c\u83b7\u53d6\u56fe\u7247\u7684\u5b8c\u6574\u6559\u7a0b","og_description":"\u8be6\u7ec6\u8bb2\u89e3Android\u5e94\u7528\u4e2d\u4ece\u76f8\u673a\u548c\u76f8\u518c\u83b7\u53d6\u56fe\u7247\u7684\u5b8c\u6574\u5b9e\u73b0\u65b9\u6cd5\u3002\u5305\u542b\u4ee3\u7801\u793a\u4f8b\u3001\u6743\u9650\u5904\u7406\u548c\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6848\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u638c\u63e1Android\u56fe\u7247\u6355\u83b7\u6280\u672f\u3002\u9002\u5408\u5404\u5c42\u6b21Android\u5f00\u53d1\u8005\u5b66\u4e60\u53c2\u8003\u3002","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4ece\u76f8\u673a\u548c\u76f8\u518c\u4e2d\u6355\u83b7android\u56fe\u7247\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-07-28T13:23:25+00:00","article_modified_time":"2025-08-03T02:12:58+00:00","author":"\u79d1, \u96c5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u96c5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%9b%b8%e6%9c%ba%e5%92%8c%e7%9b%b8%e5%86%8c%e4%b8%ad%e6%8d%95%e8%8e%b7android%e5%9b%be%e7%89%87\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%9b%b8%e6%9c%ba%e5%92%8c%e7%9b%b8%e5%86%8c%e4%b8%ad%e6%8d%95%e8%8e%b7android%e5%9b%be%e7%89%87\/","name":"Android\u5f00\u53d1\u6307\u5357\uff1a\u4ece\u76f8\u673a\u548c\u76f8\u518c\u83b7\u53d6\u56fe\u7247\u7684\u5b8c\u6574\u6559\u7a0b - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-07-28T13:23:25+00:00","dateModified":"2025-08-03T02:12:58+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a"},"description":"\u8be6\u7ec6\u8bb2\u89e3Android\u5e94\u7528\u4e2d\u4ece\u76f8\u673a\u548c\u76f8\u518c\u83b7\u53d6\u56fe\u7247\u7684\u5b8c\u6574\u5b9e\u73b0\u65b9\u6cd5\u3002\u5305\u542b\u4ee3\u7801\u793a\u4f8b\u3001\u6743\u9650\u5904\u7406\u548c\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6848\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u638c\u63e1Android\u56fe\u7247\u6355\u83b7\u6280\u672f\u3002\u9002\u5408\u5404\u5c42\u6b21Android\u5f00\u53d1\u8005\u5b66\u4e60\u53c2\u8003\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%9b%b8%e6%9c%ba%e5%92%8c%e7%9b%b8%e5%86%8c%e4%b8%ad%e6%8d%95%e8%8e%b7android%e5%9b%be%e7%89%87\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%9b%b8%e6%9c%ba%e5%92%8c%e7%9b%b8%e5%86%8c%e4%b8%ad%e6%8d%95%e8%8e%b7android%e5%9b%be%e7%89%87\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%9b%b8%e6%9c%ba%e5%92%8c%e7%9b%b8%e5%86%8c%e4%b8%ad%e6%8d%95%e8%8e%b7android%e5%9b%be%e7%89%87\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"Android\u5f00\u53d1\u6307\u5357\uff1a\u4ece\u76f8\u673a\u548c\u76f8\u518c\u83b7\u53d6\u56fe\u7247\u7684\u5b8c\u6574\u6559\u7a0b"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a","name":"\u79d1, \u96c5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","caption":"\u79d1, \u96c5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%9b%b8%e6%9c%ba%e5%92%8c%e7%9b%b8%e5%86%8c%e4%b8%ad%e6%8d%95%e8%8e%b7android%e5%9b%be%e7%89%87\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/813","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=813"}],"version-history":[{"count":4,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/813\/revisions"}],"predecessor-version":[{"id":110729,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/813\/revisions\/110729"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=813"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}