<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:background="@drawable/aboutbg"
android:layout_width="fill_parent"
android:gravity="center_horizontal"
android:layout_height="fill_parent">
<ImageView
android:id="@+id/about_img"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:src="@drawable/title"></ImageView>
<TextView
android:id="@+id/about_softversion"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:text="1.1.1.1"
android:layout_centerInParent="true"
android:layout_below="@id/about_img"></TextView>
<TextView
android:id="@+id/about_versionZW"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:text="wwwwwwwwertttttttttttttttttttttttttttttttttttttt"
android:layout_centerInParent="true"
android:layout_below="@id/about_softversion"></TextView>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:text="wwwwwwwwwwwwwwererrtert"
android:layout_centerInParent="true"
android:layout_below="@id/about_versionZW"></TextView>
</RelativeLayout>
--============================================
File file = new File(Environment.getExternalStorageDirectory(), "store.xml");
FileOutputStream outStream = null;
try {
//outStream = new FileOutputStream(file);
outStream = MainActivity.this.openFileOutput("/mnt/sdcard/store.xml", Context.MODE_APPEND);
String content = "测试2;";
outStream.write(content.getBytes());
outStream.close();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
--=====================================================
设置-无线和网络-WLAN设置-点击菜单键出现(高级)-高级-WLAN休眠策略-永不休眠 缺点:比较耗电。