{"id":377,"date":"2024-01-11T02:26:20","date_gmt":"2023-01-13T13:17:48","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/index.php\/2023\/11\/30\/android%e5%86%85%e9%83%a8%e5%ad%98%e5%82%a8%e7%a4%ba%e4%be%8b%e6%95%99%e7%a8%8b\/"},"modified":"2025-08-02T02:55:29","modified_gmt":"2025-08-01T18:55:29","slug":"android%e5%86%85%e9%83%a8%e5%ad%98%e5%82%a8%e7%a4%ba%e4%be%8b%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/android%e5%86%85%e9%83%a8%e5%ad%98%e5%82%a8%e7%a4%ba%e4%be%8b%e6%95%99%e7%a8%8b\/","title":{"rendered":"\u8be6\u89e3Android\u5185\u90e8\u5b58\u50a8\uff1a\u5b8c\u6574\u793a\u4f8b\u4e0e\u6700\u4f73\u5b9e\u8df5\u6559\u7a0b"},"content":{"rendered":"<p>\u4eca\u5929\u6211\u4eec\u5c06\u63a2\u8ba8Android\u7684\u5185\u90e8\u5b58\u50a8\u3002Android\u63d0\u4f9b\u4e86\u51e0\u79cd\u7ed3\u6784\u5316\u7684\u6570\u636e\u5b58\u50a8\u65b9\u5f0f\u3002\u5176\u4e2d\u5305\u62ec<\/p>\n<ul class=\"post-ul\">\n<li>Shared Preferences<\/li>\n<li>Internal Storage<\/li>\n<li>External Storage<\/li>\n<li>SQLite Storage<\/li>\n<li>Storage via Network Connection(on cloud)<\/li>\n<\/ul>\n<p>\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u4eec\u5c06\u63a2\u8ba8\u5982\u4f55\u4f7f\u7528Android\u5185\u90e8\u5b58\u50a8\u5c06\u6570\u636e\u4fdd\u5b58\u5230\u6587\u4ef6\u4e2d\u5e76\u8fdb\u884c\u8bfb\u53d6\u3002<\/p>\n<h2>\u5b89\u5353\u624b\u673a\u5185\u90e8\u5b58\u50a8<\/h2>\n<p>Android\u5185\u90e8\u5b58\u50a8\u662f\u8bbe\u5907\u5185\u5b58\u4e0a\u7684\u79c1\u6709\u6570\u636e\u5b58\u50a8\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5c06\u6587\u4ef6\u4fdd\u5b58\u548c\u52a0\u8f7d\u5230\u5185\u90e8\u5b58\u50a8\u533a\u57df\u662f\u4ec5\u5bf9\u8be5\u5e94\u7528\u7a0b\u5e8f\u79c1\u6709\u7684\uff0c\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\u65e0\u6cd5\u8bbf\u95ee\u8fd9\u4e9b\u6587\u4ef6\u3002\u5f53\u7528\u6237\u5378\u8f7d\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u4e0e\u8be5\u5e94\u7528\u7a0b\u5e8f\u76f8\u5173\u7684\u5185\u90e8\u5b58\u50a8\u6587\u4ef6\u4e5f\u4f1a\u88ab\u5220\u9664\u3002\u7136\u800c\uff0c\u8bf7\u6ce8\u610f\u4e00\u4e9b\u7528\u6237\u4f1a\u5bf9\u4ed6\u4eec\u7684Android\u624b\u673a\u8fdb\u884croot\u6388\u6743\uff0c\u4ece\u800c\u83b7\u5f97\u8d85\u7ea7\u7528\u6237\u8bbf\u95ee\u6743\u9650\u3002\u8fd9\u4e9b\u7528\u6237\u53ef\u4ee5\u8bfb\u53d6\u548c\u5199\u5165\u4efb\u4f55\u6587\u4ef6\u3002<\/p>\n<h3>\u5728Android\u5185\u90e8\u5b58\u50a8\u4e2d\u8bfb\u5199\u6587\u672c\u6587\u4ef6<\/h3>\n<p>Android\u63d0\u4f9b\u4e86openFileInput\u548copenFileOutput\u51fd\u6570\uff0c\u53ef\u4ee5\u5728Java I\/O\u7c7b\u4e2d\u4f7f\u7528\u8fd9\u4e9b\u51fd\u6570\u6765\u4fee\u6539\u8bfb\u5199\u672c\u5730\u6587\u4ef6\u7684\u6d41\u3002<\/p>\n<ul class=\"post-ul\">\n<li>openFileOutput(): This method is used to create and save a file. Its syntax is given below:<br \/>\nFileOutputStream fOut = openFileOutput(&#8220;file name&#8221;,Context.MODE_PRIVATE);The method openFileOutput() returns an instance of FileOutputStream. After that we can call write method to write data on the file. Its syntax is given below:<br \/>\nString str = &#8220;test data&#8221;;<br \/>\nfOut.write(str.getBytes());<br \/>\nfOut.close();<\/li>\n<li>openFileInput(): This method is used to open a file and read it. It returns an instance of FileInputStream. Its syntax is given below:<br \/>\nFileInputStream fin = openFileInput(file);After that, we call read method to read one character at a time from the file and then print it. Its syntax is given below:<br \/>\nint c;<br \/>\nString temp=&#8221;&#8221;;<br \/>\nwhile( (c = fin.read()) != -1){<br \/>\ntemp = temp + Character.toString((char)c);<br \/>\n}<\/p>\n<p>fin.close();<\/p>\n<p>In the above code, string temp contains all the data of the file.<\/li>\n<li>Note that these methods do not accept file paths (e.g. path\/to\/file.txt), they just take simple file names.<\/li>\n<\/ul>\n<h3>Android\u5185\u90e8\u5b58\u50a8\u9879\u76ee\u7ed3\u6784<\/h3>\n<h3>Android\u5185\u90e8\u5b58\u50a8\u793a\u4f8b\u4ee3\u7801<\/h3>\n<p>xml\u5e03\u5c40\u4e2d\u5305\u542b\u4e00\u4e2aEditText\u7528\u4e8e\u5411\u6587\u4ef6\u5199\u5165\u6570\u636e\uff0c\u4ee5\u53ca\u4e00\u4e2a\u5199\u5165\u6309\u94ae\u548c\u8bfb\u53d6\u6309\u94ae\u3002\u6ce8\u610f\uff0c\u70b9\u51fb\u4e8b\u4ef6\u7684\u65b9\u6cd5\u4ec5\u5728xml\u6587\u4ef6\u4e2d\u5b9a\u4e49\uff0c\u5982\u4e0b\u6240\u793a\uff1aactivity_main.xml<\/p>\n<pre class=\"post-pre\"><code>&lt;RelativeLayout xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"\r\n    xmlns:tools=\"https:\/\/schemas.android.com\/tools\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"\r\n    &gt;\r\n\r\n    &lt;TextView\r\n        android:id=\"@+id\/textView1\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:layout_alignParentLeft=\"true\"\r\n        android:layout_alignParentRight=\"true\"\r\n        android:padding=\"5dp\"\r\n        android:text=\"Android Read and Write Text from\/to a File\"\r\n        android:textStyle=\"bold\"\r\n        android:textSize=\"28sp\" \/&gt;\r\n\r\n    &lt;EditText\r\n        android:id=\"@+id\/editText1\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:layout_alignParentLeft=\"true\"\r\n        android:layout_alignParentRight=\"true\"\r\n        android:layout_below=\"@+id\/textView1\"\r\n        android:layout_marginTop=\"22dp\"\r\n        android:minLines=\"5\"\r\n        android:layout_margin=\"5dp\"&gt;\r\n\r\n        &lt;requestFocus \/&gt;\r\n    &lt;\/EditText&gt;\r\n\r\n    &lt;Button\r\n        android:id=\"@+id\/button1\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:text=\"Write Text into File\"\r\n        android:onClick=\"WriteBtn\"\r\n        android:layout_alignTop=\"@+id\/button2\"\r\n        android:layout_alignRight=\"@+id\/editText1\"\r\n        android:layout_alignEnd=\"@+id\/editText1\" \/&gt;\r\n\r\n    &lt;Button\r\n        android:id=\"@+id\/button2\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:text=\"Read Text From file\"\r\n        android:onClick=\"ReadBtn\"\r\n        android:layout_centerVertical=\"true\"\r\n        android:layout_alignLeft=\"@+id\/editText1\"\r\n        android:layout_alignStart=\"@+id\/editText1\" \/&gt;\r\n\r\n&lt;\/RelativeLayout&gt;\r\n<\/code><\/pre>\n<p>MainActivity\u4e2d\u5305\u542b\u4e86\u5982\u4e0a\u6240\u8ff0\u7684\u8bfb\u5199\u6587\u4ef6\u7684\u5b9e\u73b0\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.Olivia.internalstorage;\r\n\r\n\r\nimport android.os.Bundle;\r\nimport android.app.Activity;\r\nimport android.view.View;\r\nimport android.widget.EditText;\r\nimport android.widget.Toast;\r\nimport java.io.FileInputStream;\r\nimport java.io.FileOutputStream;\r\nimport java.io.InputStreamReader;\r\nimport java.io.OutputStreamWriter;\r\n\r\npublic class MainActivity extends Activity {\r\n\r\n    EditText textmsg;\r\n    static final int READ_BLOCK_SIZE = 100;\r\n    @Override\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(R.layout.activity_main);\r\n\r\n        textmsg=(EditText)findViewById(R.id.editText1);\r\n    }\r\n\r\n    \/\/ write text to file\r\n    public void WriteBtn(View v) {\r\n        \/\/ add-write text into file\r\n        try {\r\n            FileOutputStream fileout=openFileOutput(\"mytextfile.txt\", MODE_PRIVATE);\r\n            OutputStreamWriter outputWriter=new OutputStreamWriter(fileout);\r\n            outputWriter.write(textmsg.getText().toString());\r\n            outputWriter.close();\r\n\r\n            \/\/display file saved message\r\n            Toast.makeText(getBaseContext(), \"File saved successfully!\",\r\n                    Toast.LENGTH_SHORT).show();\r\n\r\n        } catch (Exception e) {\r\n            e.printStackTrace();\r\n        }\r\n    }\r\n\r\n    \/\/ Read text from file\r\n    public void ReadBtn(View v) {\r\n        \/\/reading text from file\r\n        try {\r\n            FileInputStream fileIn=openFileInput(\"mytextfile.txt\");\r\n            InputStreamReader InputRead= new InputStreamReader(fileIn);\r\n\r\n            char[] inputBuffer= new char[READ_BLOCK_SIZE];\r\n            String s=\"\";\r\n            int charRead;\r\n\r\n            while ((charRead=InputRead.read(inputBuffer))&gt;0) {\r\n                \/\/ char to string conversion\r\n                String readstring=String.copyValueOf(inputBuffer,0,charRead);\r\n                s +=readstring;\r\n            }\r\n            InputRead.close();\r\n            textmsg.setText(s);\r\n            \r\n\r\n        } catch (Exception e) {\r\n            e.printStackTrace();\r\n        }\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>\u5f53\u6570\u636e\u6210\u529f\u5199\u5165\u5185\u90e8\u5b58\u50a8\u65f6\uff0c\u5c06\u663e\u793a\u4e00\u4e2a\u795d\u9152\u8bcd\uff0c\u5e76\u4e14\u5728\u4ece\u6587\u4ef6\u4e2d\u8bfb\u53d6\u6570\u636e\u65f6\uff0c\u6570\u636e\u5c06\u5728EditText\u672c\u8eab\u4e2d\u663e\u793a\u3002\u4e0b\u9762\u663e\u793a\u7684\u56fe\u50cf\u662f\u9879\u76ee\u7684\u8f93\u51fa\u3002\u56fe\u50cf\u63cf\u8ff0\u4e86\u6587\u672c\u88ab\u5199\u5165\u5185\u90e8\u5b58\u50a8\uff0c\u5e76\u4e14\u5728\u70b9\u51fb\u201c\u8bfb\u53d6\u201d\u540e\uff0c\u5c06\u4ee5\u76f8\u540c\u7684EditText\u65b9\u5f0f\u663e\u793a\u51fa\u6765\u3002<\/p>\n<h3>\u6587\u4ef6\u5b58\u653e\u5728\u54ea\u91cc\uff1f<\/h3>\n<p>\u8981\u67e5\u770b\u6587\u4ef6\uff0c\u4ece\u5de5\u5177-&gt;Android-&gt;Android\u8bbe\u5907\u76d1\u89c6\u5668\u4e2d\u6253\u5f00Android\u8bbe\u5907\u76d1\u89c6\u5668\u3002\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u6587\u4ef6\u4f4d\u4e8edata-&gt;data-&gt;{\u5305\u540d}-&gt;files\u6587\u4ef6\u5939\u4e2d\u3002\u6587\u4ef6\u201cmytextfile.txt\u201d\u4f4d\u4e8e\u9879\u76ee\u5305\u540dcom.Olivia.internalstorage\u4e2d\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002\u4ece\u4e0b\u9762\u7684\u94fe\u63a5\u4e0b\u8f7dAndroid\u5185\u90e8\u5b58\u50a8\u793a\u4f8b\u7684\u6700\u7ec8\u9879\u76ee\u3002<\/p>\n<p>\u4e0b\u8f7dAndroid\u5185\u90e8\u5b58\u50a8\u793a\u4f8b\u9879\u76ee<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u6211\u4eec\u5c06\u63a2\u8ba8Android\u7684\u5185\u90e8\u5b58\u50a8\u3002Android\u63d0\u4f9b\u4e86\u51e0\u79cd\u7ed3\u6784\u5316\u7684\u6570\u636e\u5b58\u50a8\u65b9\u5f0f\u3002\u5176\u4e2d\u5305\u62ec Shared  [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1236,900,904,1237,1071],"class_list":{"0":"post-377","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-uncategorized","7":"tag-android","10":"tag-1237","11":"tag-1071"},"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>\u8be6\u89e3Android\u5185\u90e8\u5b58\u50a8\uff1a\u5b8c\u6574\u793a\u4f8b\u4e0e\u6700\u4f73\u5b9e\u8df5\u6559\u7a0b - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u672c\u6559\u7a0b\u8be6\u7ec6\u89e3\u6790Android\u5185\u90e8\u5b58\u50a8\u7684\u4f7f\u7528\u65b9\u6cd5\uff0c\u5305\u542b\u5b8c\u6574\u4ee3\u7801\u793a\u4f8b\u548c\u6700\u4f73\u5b9e\u8df5\u3002\u5b66\u4e60\u5982\u4f55\u5728Android\u5e94\u7528\u4e2d\u9ad8\u6548\u7ba1\u7406\u5185\u90e8\u5b58\u50a8\uff0c\u5305\u62ec\u6587\u4ef6\u8bfb\u5199\u3001\u6570\u636e\u6301\u4e45\u5316\u548c\u5b58\u50a8\u4f18\u5316\u6280\u5de7\u3002\u9002\u5408Android\u5f00\u53d1\u8005\u5feb\u901f\u638c\u63e1\u5185\u90e8\u5b58\u50a8\u6280\u672f\uff0c\u63d0\u5347\u5e94\u7528\u6027\u80fd\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\/android\u5185\u90e8\u5b58\u50a8\u793a\u4f8b\u6559\u7a0b\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u8be6\u89e3Android\u5185\u90e8\u5b58\u50a8\uff1a\u5b8c\u6574\u793a\u4f8b\u4e0e\u6700\u4f73\u5b9e\u8df5\u6559\u7a0b\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6559\u7a0b\u8be6\u7ec6\u89e3\u6790Android\u5185\u90e8\u5b58\u50a8\u7684\u4f7f\u7528\u65b9\u6cd5\uff0c\u5305\u542b\u5b8c\u6574\u4ee3\u7801\u793a\u4f8b\u548c\u6700\u4f73\u5b9e\u8df5\u3002\u5b66\u4e60\u5982\u4f55\u5728Android\u5e94\u7528\u4e2d\u9ad8\u6548\u7ba1\u7406\u5185\u90e8\u5b58\u50a8\uff0c\u5305\u62ec\u6587\u4ef6\u8bfb\u5199\u3001\u6570\u636e\u6301\u4e45\u5316\u548c\u5b58\u50a8\u4f18\u5316\u6280\u5de7\u3002\u9002\u5408Android\u5f00\u53d1\u8005\u5feb\u901f\u638c\u63e1\u5185\u90e8\u5b58\u50a8\u6280\u672f\uff0c\u63d0\u5347\u5e94\u7528\u6027\u80fd\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/android\u5185\u90e8\u5b58\u50a8\u793a\u4f8b\u6559\u7a0b\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-13T13:17:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-01T18:55:29+00:00\" \/>\n<meta name=\"author\" content=\"\u6587, \u7fd4\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6587, \u7fd4\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \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\/android%e5%86%85%e9%83%a8%e5%ad%98%e5%82%a8%e7%a4%ba%e4%be%8b%e6%95%99%e7%a8%8b\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/android%e5%86%85%e9%83%a8%e5%ad%98%e5%82%a8%e7%a4%ba%e4%be%8b%e6%95%99%e7%a8%8b\/\",\"name\":\"\u8be6\u89e3Android\u5185\u90e8\u5b58\u50a8\uff1a\u5b8c\u6574\u793a\u4f8b\u4e0e\u6700\u4f73\u5b9e\u8df5\u6559\u7a0b - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-01-13T13:17:48+00:00\",\"dateModified\":\"2025-08-01T18:55:29+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c\"},\"description\":\"\u672c\u6559\u7a0b\u8be6\u7ec6\u89e3\u6790Android\u5185\u90e8\u5b58\u50a8\u7684\u4f7f\u7528\u65b9\u6cd5\uff0c\u5305\u542b\u5b8c\u6574\u4ee3\u7801\u793a\u4f8b\u548c\u6700\u4f73\u5b9e\u8df5\u3002\u5b66\u4e60\u5982\u4f55\u5728Android\u5e94\u7528\u4e2d\u9ad8\u6548\u7ba1\u7406\u5185\u90e8\u5b58\u50a8\uff0c\u5305\u62ec\u6587\u4ef6\u8bfb\u5199\u3001\u6570\u636e\u6301\u4e45\u5316\u548c\u5b58\u50a8\u4f18\u5316\u6280\u5de7\u3002\u9002\u5408Android\u5f00\u53d1\u8005\u5feb\u901f\u638c\u63e1\u5185\u90e8\u5b58\u50a8\u6280\u672f\uff0c\u63d0\u5347\u5e94\u7528\u6027\u80fd\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/android%e5%86%85%e9%83%a8%e5%ad%98%e5%82%a8%e7%a4%ba%e4%be%8b%e6%95%99%e7%a8%8b\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/android%e5%86%85%e9%83%a8%e5%ad%98%e5%82%a8%e7%a4%ba%e4%be%8b%e6%95%99%e7%a8%8b\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/android%e5%86%85%e9%83%a8%e5%ad%98%e5%82%a8%e7%a4%ba%e4%be%8b%e6%95%99%e7%a8%8b\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u8be6\u89e3Android\u5185\u90e8\u5b58\u50a8\uff1a\u5b8c\u6574\u793a\u4f8b\u4e0e\u6700\u4f73\u5b9e\u8df5\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\/64d5cc7727fffbff2f9a2a8da1de3e5c\",\"name\":\"\u6587, \u7fd4\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g\",\"caption\":\"\u6587, \u7fd4\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/wenxiang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/android%e5%86%85%e9%83%a8%e5%ad%98%e5%82%a8%e7%a4%ba%e4%be%8b%e6%95%99%e7%a8%8b\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u8be6\u89e3Android\u5185\u90e8\u5b58\u50a8\uff1a\u5b8c\u6574\u793a\u4f8b\u4e0e\u6700\u4f73\u5b9e\u8df5\u6559\u7a0b - Blog - Silicon Cloud","description":"\u672c\u6559\u7a0b\u8be6\u7ec6\u89e3\u6790Android\u5185\u90e8\u5b58\u50a8\u7684\u4f7f\u7528\u65b9\u6cd5\uff0c\u5305\u542b\u5b8c\u6574\u4ee3\u7801\u793a\u4f8b\u548c\u6700\u4f73\u5b9e\u8df5\u3002\u5b66\u4e60\u5982\u4f55\u5728Android\u5e94\u7528\u4e2d\u9ad8\u6548\u7ba1\u7406\u5185\u90e8\u5b58\u50a8\uff0c\u5305\u62ec\u6587\u4ef6\u8bfb\u5199\u3001\u6570\u636e\u6301\u4e45\u5316\u548c\u5b58\u50a8\u4f18\u5316\u6280\u5de7\u3002\u9002\u5408Android\u5f00\u53d1\u8005\u5feb\u901f\u638c\u63e1\u5185\u90e8\u5b58\u50a8\u6280\u672f\uff0c\u63d0\u5347\u5e94\u7528\u6027\u80fd\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\/android\u5185\u90e8\u5b58\u50a8\u793a\u4f8b\u6559\u7a0b\/","og_locale":"zh_CN","og_type":"article","og_title":"\u8be6\u89e3Android\u5185\u90e8\u5b58\u50a8\uff1a\u5b8c\u6574\u793a\u4f8b\u4e0e\u6700\u4f73\u5b9e\u8df5\u6559\u7a0b","og_description":"\u672c\u6559\u7a0b\u8be6\u7ec6\u89e3\u6790Android\u5185\u90e8\u5b58\u50a8\u7684\u4f7f\u7528\u65b9\u6cd5\uff0c\u5305\u542b\u5b8c\u6574\u4ee3\u7801\u793a\u4f8b\u548c\u6700\u4f73\u5b9e\u8df5\u3002\u5b66\u4e60\u5982\u4f55\u5728Android\u5e94\u7528\u4e2d\u9ad8\u6548\u7ba1\u7406\u5185\u90e8\u5b58\u50a8\uff0c\u5305\u62ec\u6587\u4ef6\u8bfb\u5199\u3001\u6570\u636e\u6301\u4e45\u5316\u548c\u5b58\u50a8\u4f18\u5316\u6280\u5de7\u3002\u9002\u5408Android\u5f00\u53d1\u8005\u5feb\u901f\u638c\u63e1\u5185\u90e8\u5b58\u50a8\u6280\u672f\uff0c\u63d0\u5347\u5e94\u7528\u6027\u80fd\u3002","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/android\u5185\u90e8\u5b58\u50a8\u793a\u4f8b\u6559\u7a0b\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-01-13T13:17:48+00:00","article_modified_time":"2025-08-01T18:55:29+00:00","author":"\u6587, \u7fd4","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6587, \u7fd4","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/android%e5%86%85%e9%83%a8%e5%ad%98%e5%82%a8%e7%a4%ba%e4%be%8b%e6%95%99%e7%a8%8b\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/android%e5%86%85%e9%83%a8%e5%ad%98%e5%82%a8%e7%a4%ba%e4%be%8b%e6%95%99%e7%a8%8b\/","name":"\u8be6\u89e3Android\u5185\u90e8\u5b58\u50a8\uff1a\u5b8c\u6574\u793a\u4f8b\u4e0e\u6700\u4f73\u5b9e\u8df5\u6559\u7a0b - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-01-13T13:17:48+00:00","dateModified":"2025-08-01T18:55:29+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c"},"description":"\u672c\u6559\u7a0b\u8be6\u7ec6\u89e3\u6790Android\u5185\u90e8\u5b58\u50a8\u7684\u4f7f\u7528\u65b9\u6cd5\uff0c\u5305\u542b\u5b8c\u6574\u4ee3\u7801\u793a\u4f8b\u548c\u6700\u4f73\u5b9e\u8df5\u3002\u5b66\u4e60\u5982\u4f55\u5728Android\u5e94\u7528\u4e2d\u9ad8\u6548\u7ba1\u7406\u5185\u90e8\u5b58\u50a8\uff0c\u5305\u62ec\u6587\u4ef6\u8bfb\u5199\u3001\u6570\u636e\u6301\u4e45\u5316\u548c\u5b58\u50a8\u4f18\u5316\u6280\u5de7\u3002\u9002\u5408Android\u5f00\u53d1\u8005\u5feb\u901f\u638c\u63e1\u5185\u90e8\u5b58\u50a8\u6280\u672f\uff0c\u63d0\u5347\u5e94\u7528\u6027\u80fd\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/android%e5%86%85%e9%83%a8%e5%ad%98%e5%82%a8%e7%a4%ba%e4%be%8b%e6%95%99%e7%a8%8b\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/android%e5%86%85%e9%83%a8%e5%ad%98%e5%82%a8%e7%a4%ba%e4%be%8b%e6%95%99%e7%a8%8b\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/android%e5%86%85%e9%83%a8%e5%ad%98%e5%82%a8%e7%a4%ba%e4%be%8b%e6%95%99%e7%a8%8b\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u8be6\u89e3Android\u5185\u90e8\u5b58\u50a8\uff1a\u5b8c\u6574\u793a\u4f8b\u4e0e\u6700\u4f73\u5b9e\u8df5\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\/64d5cc7727fffbff2f9a2a8da1de3e5c","name":"\u6587, \u7fd4","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g","caption":"\u6587, \u7fd4"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/wenxiang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/android%e5%86%85%e9%83%a8%e5%ad%98%e5%82%a8%e7%a4%ba%e4%be%8b%e6%95%99%e7%a8%8b\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/377","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=377"}],"version-history":[{"count":4,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/377\/revisions"}],"predecessor-version":[{"id":109929,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/377\/revisions\/109929"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}