99偷拍视频精品区一区二,口述久久久久久久久久久久,国产精品夫妇激情啪发布,成人永久免费网站在线观看,国产精品高清免费在线,青青草在线观看视频观看,久久久久久国产一区,天天婷婷久久18禁,日韩动漫av在线播放直播

Android實現(xiàn)文件存儲并讀取的示例代碼-創(chuàng)新互聯(lián)

要求:

讓客戶滿意是我們工作的目標(biāo),不斷超越客戶的期望值來自于我們對這個行業(yè)的熱愛。我們立志把好的技術(shù)通過有效、簡單的方式提供給客戶,將通過不懈努力成為客戶在信息化領(lǐng)域值得信任、有價值的長期合作伙伴,公司提供的服務(wù)項目有:域名與空間、虛擬空間、營銷軟件、網(wǎng)站建設(shè)、愛民網(wǎng)站維護、網(wǎng)站推廣。

輸入文件名,文件內(nèi)容分別存儲在手機內(nèi)存和外存中,并且都可以讀去取出來。


步驟:


1.創(chuàng)建一個名為CDsaveFile的Android項目

2.編寫布局文件activity_main.xml:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 xmlns:tools="http://schemas.android.com/tools"
 android:layout_width="match_parent"
 android:layout_height="match_parent"
 android:orientation="vertical"
 tools:context="hhh.exercise.cdsavefile.MainActivity" >

 <LinearLayout
 android:layout_width="match_parent"
 android:layout_height="wrap_content"
 android:orientation="horizontal" >

 <TextView
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:text="@string/textView_inputFileName"
  android:textColor="#00ff00"
  android:textSize="26sp" />

 <EditText
  android:id="@+id/editView_fileName"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:gravity="center"
  android:hint="@string/editView_fileName"
  android:maxLines="1"
  android:textColor="#ff0000"
  android:textSize="26sp" />

 <requestFocus />
 </LinearLayout>

 <TextView
 android:layout_width="match_parent"
 android:layout_height="wrap_content"
 android:text="@string/textView_inputFileContent"
 android:textColor="#00ff00"
 android:textSize="26sp" />

 <EditText
 android:id="@+id/editView_fileContent"
 android:layout_width="match_parent"
 android:layout_height="wrap_content"
 android:gravity="center"
 android:hint="@string/editView_fileContent"
 android:maxLines="2"
 android:minLines="2"
 android:textColor="#ff0000"
 android:textSize="26sp" />

 <LinearLayout
 android:layout_width="match_parent"
 android:layout_height="wrap_content"
 android:orientation="horizontal" >

 <Button
  android:id="@+id/button_saveToPhone"
  android:layout_width="0dp"
  android:layout_height="wrap_content"
  android:layout_weight="1"
  android:text="@string/button_saveToPhone"
  android:textColor="#ff00ff"
  android:textSize="24sp" />

 <Button
  android:id="@+id/button_readFromPhone"
  android:layout_width="0dp"
  android:layout_height="wrap_content"
  android:layout_weight="1"
  android:text="@string/button_readFromPhone"
  android:textColor="#00ffff"
  android:textSize="24sp" />
 </LinearLayout>

 <LinearLayout
 android:layout_width="match_parent"
 android:layout_height="wrap_content"
 android:orientation="horizontal" >

 <Button
  android:id="@+id/button_saveToSD"
  android:layout_width="0dp"
  android:layout_height="wrap_content"
  android:layout_weight="1"
  android:text="@string/button_saveToSD"
  android:textColor="#ff00ff"
  android:textSize="24sp" />

 <Button
  android:id="@+id/button_readFromSD"
  android:layout_width="0dp"
  android:layout_height="wrap_content"
  android:layout_weight="1"
  android:text="@string/button_readFromSD"
  android:textColor="#00ffff"
  android:textSize="24sp" />
 </LinearLayout>

 <EditText
 android:id="@+id/editText_showResult"
 android:layout_width="match_parent"
 android:layout_height="wrap_content"
 android:gravity="center"
 android:maxLines="3"
 android:minLines="3"
 android:hint="@string/editText_showResult"
 android:textColor="#cccc00"
 android:textSize="30sp" />

</LinearLayout>

網(wǎng)頁題目:Android實現(xiàn)文件存儲并讀取的示例代碼-創(chuàng)新互聯(lián)
瀏覽地址:http://www.yijiale78.com/article48/csighp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供關(guān)鍵詞優(yōu)化品牌網(wǎng)站建設(shè)建站公司外貿(mào)建站ChatGPT網(wǎng)站設(shè)計

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都app開發(fā)公司