1. 如何使用Intent来跳转页面?
Intent intent=new Intent(当前类.this, 目标类.class);
当前类.this.startActivity( intent);
6. 发短信.
a. <uses-permission android:name="android.permission.SEND_SMS"/>
b.
SmsManager.getDefault();
sm.divideMessage();
sendTextMessage();
7. android中信息提示方案?
notification: 通知,
Toasts: 吐司
Dialog: 对话框
Toasts.makeText().show();
新 技 术 - 存储技术
1. 文件 -> j2se -> 掌握
2. SharePreferences: 参数 -> 注册表 ->掌握
3. SQLite 数据库
4. ContentProvider:内容提供者
5. 云技术 -> 网络 -> 重点
一。文件存储: 与j2se完全一样. 手机内容.
Activity类: openFileOutput() -> 输出, 取出输出流.
openFileInput()
权限:
Operating mode. Use 0 or MODE_PRIVATE for the default operation, MODE_APPEND to append to an existing file, MODE_WORLD_READABLE and MODE_WORLD_WRITEABLE to control permissions.
二。存SDCard:
a. 是否有手机card?
b. 权限. 手机ka加载?
手机可以写入吗?
Environment类. 环境类
getExternalStorageState(): 判断外存储设备的状态 MEDIA_MOUNTED
getExternalStorageDirectory() : 外存储设备的路径
Intent intent=new Intent(当前类.this, 目标类.class);
当前类.this.startActivity( intent);
6. 发短信.
a. <uses-permission android:name="android.permission.SEND_SMS"/>
b.
SmsManager.getDefault();
sm.divideMessage();
sendTextMessage();
7. android中信息提示方案?
notification: 通知,
Toasts: 吐司
Dialog: 对话框
Toasts.makeText().show();
新 技 术 - 存储技术
1. 文件 -> j2se -> 掌握
2. SharePreferences: 参数 -> 注册表 ->掌握
3. SQLite 数据库
4. ContentProvider:内容提供者
5. 云技术 -> 网络 -> 重点
一。文件存储: 与j2se完全一样. 手机内容.
Activity类: openFileOutput() -> 输出, 取出输出流.
openFileInput()
权限:
Operating mode. Use 0 or MODE_PRIVATE for the default operation, MODE_APPEND to append to an existing file, MODE_WORLD_READABLE and MODE_WORLD_WRITEABLE to control permissions.
二。存SDCard:
a. 是否有手机card?
b. 权限. 手机ka加载?
手机可以写入吗?
Environment类. 环境类
getExternalStorageState(): 判断外存储设备的状态 MEDIA_MOUNTED
getExternalStorageDirectory() : 外存储设备的路径