- 浏览: 10300 次
- 性别:
- 来自: 西安
-
文章分类
最新评论
-
wkj52719:
感谢你的更正,我试了下,确实是的
Your content must have a ListView whose id attribute is android.R.id.list' -
icanfly:
错,后面的名字不能随便取的,@android:id/list是 ...
Your content must have a ListView whose id attribute is android.R.id.list'
android2.2 docs中的permission权限表
String | ACCESS_CHECKIN_PROPERTIES |
Allows read/write access to the "properties" table in the checkin database, to change values that get uploaded. 允许读写系统的properties表在checkin数据库中 |
String | ACCESS_COARSE_LOCATION |
Allows an application to access coarse (e.g., Cell-ID, WiFi) location
允许得到手机的一般位置信息:如Cell-ID, WiFi |
String | ACCESS_FINE_LOCATION |
Allows an application to access fine (e.g., GPS) location 允许得到手机精确的位置信息 如GPS |
String | ACCESS_LOCATION_EXTRA_COMMANDS |
Allows an application to access extra location provider commands 允许使用额外的(位置信息提供者的)命令 |
String | ACCESS_MOCK_LOCATION |
Allows an application to create mock location providers for testing 允许模拟位置测试 |
String | ACCESS_NETWORK_STATE |
Allows applications to access information about networks 可获取网络状态 |
String | ACCESS_SURFACE_FLINGER |
Allows an application to use SurfaceFlinger's low level features 可使用 SurfaceFlinger的低级别特征 |
String | ACCESS_WIFI_STATE |
Allows applications to access information about Wi-Fi networks 获取WIFI网络的信息 |
String | ACCOUNT_MANAGER |
Allows applications to call into AccountAuthenticators. 获取用户联系人 |
String | AUTHENTICATE_ACCOUNTS |
Allows an application to act as an AccountAuthenticator for the AccountManager允许管理用户联系人 |
String | BATTERY_STATS |
Allows an application to collect battery statistics 获取电池电量状态 |
String | BIND_APPWIDGET |
Allows an application to tell the AppWidget service which application can access AppWidget's data. 告诉系统应用程序可access哪个AppWidget的数据 |
String | BIND_DEVICE_ADMIN |
Must be required by device administration receiver, to ensure that only the system can interact with it. 只有系统的设备管理器才可以得到此权限,应该是获取各种设备的信息的 |
String | BIND_INPUT_METHOD |
Must be required by an to ensure that only the system can bind to it. 只有系统才有的 |
String | BIND_WALLPAPER |
Must be required by a to ensure that only the system can bind to it. 只有系统才有的 |
String | BLUETOOTH |
Allows applications to connect to paired bluetooth devices 访问已配对的蓝牙设备 ( perform any Bluetooth communication, such as requesting a connection, transferring data) |
String | BLUETOOTH_ADMIN |
Allows applications to discover and pair bluetooth devices 扫描和配对蓝牙设备,有此权限必须同时拥有BLUETOOTH权限 (initiate device discovery or manipulate Bluetooth settings) |
String | BRICK |
Required to be able to disable the device (very dangerous!). 使设备变成无用,禁用设备(不知道是整个手机还是部分设备),危险!!!其实也不是那么危险~~~ |
String | BROADCAST_PACKAGE_REMOVED |
Allows an application to broadcast a notification that an application package has been removed. 未知 |
String | BROADCAST_SMS |
Allows an application to broadcast an SMS receipt notification
|
String | BROADCAST_STICKY | Allows an application to broadcast sticky intents. |
String | BROADCAST_WAP_PUSH | Allows an application to broadcast a WAP PUSH receipt notification |
String | CALL_PHONE |
Allows an application to initiate a phone call without going through the Dialer user interface for the user to confirm the call being placed. |
String | CALL_PRIVILEGED |
Allows an application to call any phone number, including emergency numbers, without going through the Dialer user interface for the user to confirm the call being placed. |
String | CAMERA |
Required to be able to access the camera device. 获取摄像头,拍照或录像时需要 |
String | CHANGE_COMPONENT_ENABLED_STATE |
Allows an application to change whether an application component (other than its own) is enabled or not. |
String | CHANGE_CONFIGURATION | Allows an application to modify the current configuration, such as locale. |
String | CHANGE_NETWORK_STATE | Allows applications to change network connectivity state |
String | CHANGE_WIFI_MULTICAST_STATE | Allows applications to enter Wi-Fi Multicast mode |
String | CHANGE_WIFI_STATE | Allows applications to change Wi-Fi connectivity state |
String | CLEAR_APP_CACHE |
Allows an application to clear the caches of all installed applications on the device. 允许情况所有的应用程序的缓存 |
String | CLEAR_APP_USER_DATA | Allows an application to clear user data |
String | CONTROL_LOCATION_UPDATES | Allows enabling/disabling location update notifications from the radio. |
String | DELETE_CACHE_FILES | Allows an application to delete cache files. |
String | DELETE_PACKAGES | Allows an application to delete packages. |
String | DEVICE_POWER |
Allows low-level access to power management 允许底层管理电源 |
String | DIAGNOSTIC | Allows applications to RW to diagnostic resources. |
String | DISABLE_KEYGUARD | Allows applications to disable the keyguard |
String | DUMP | Allows an application to retrieve state dump information from system services. |
String | EXPAND_STATUS_BAR | Allows an application to expand or collapse the status bar. |
String | FACTORY_TEST | Run as a manufacturer test application, running as the root user. |
String | FLASHLIGHT |
Allows access to the flashlight 闪光灯功能 |
String | FORCE_BACK | Allows an application to force a BACK operation on whatever is the top activity. |
String | GET_ACCOUNTS | Allows access to the list of accounts in the Accounts Service |
String | GET_PACKAGE_SIZE | Allows an application to find out the space used by any package. |
String | GET_TASKS |
Allows an application to get information about the currently or recently running tasks: a thumbnail representation of the tasks, what activities are running in it, etc. |
String | GLOBAL_SEARCH |
This permission can be used on content providers to allow the global search system to access their data. |
String | HARDWARE_TEST | Allows access to hardware peripherals. |
String | INJECT_EVENTS |
Allows an application to inject user events (keys, touch, trackball) into the event stream and deliver them to ANY window. |
String | INSTALL_LOCATION_PROVIDER |
Allows an application to install a location provider into the Location Manager |
String | INSTALL_PACKAGES | Allows an application to install packages. |
String | INTERNAL_SYSTEM_WINDOW | Allows an application to open windows that are for use by parts of the system user interface. |
String | INTERNET |
Allows applications to open network sockets. 允许应用程序访问网络 |
String | KILL_BACKGROUND_PROCESSES |
Allows an application to call 结束后台程序/进程 |
String | MANAGE_ACCOUNTS | Allows an application to manage the list of accounts in the AccountManager |
String | MANAGE_APP_TOKENS |
Allows an application to manage (create, destroy, Z-order) application tokens in the window manager. |
String | MASTER_CLEAR | |
String | MODIFY_AUDIO_SETTINGS |
Allows an application to modify global audio settings
|
String | MODIFY_PHONE_STATE | Allows modification of the telephony state - power on, mmi, etc. |
String | MOUNT_FORMAT_FILESYSTEMS |
Allows formatting file systems for removable storage. 允许格式化外接存储设备 |
String | MOUNT_UNMOUNT_FILESYSTEMS |
Allows mounting and unmounting file systems for removable storage. 允许对外部存储设备做mount和unmount文件系统操作 |
String | PERSISTENT_ACTIVITY | Allow an application to make its activities persistent. |
String | PROCESS_OUTGOING_CALLS | Allows an application to monitor, modify, or abort outgoing calls. |
String | READ_CALENDAR |
Allows an application to read the user's calendar data. 读用户calendar信息 |
String | READ_CONTACTS |
Allows an application to read the user's contacts data. 读联系人信息 |
String | READ_FRAME_BUFFER |
Allows an application to take screen shots and more generally get access to the frame buffer data |
String | READ_HISTORY_BOOKMARKS |
Allows an application to read (but not write) the user's browsing history and bookmarks. |
String | READ_INPUT_STATE | Allows an application to retrieve the current state of keys and switches. |
String | READ_LOGS | Allows an application to read the low-level system log files. |
String | READ_OWNER_DATA | Allows an application to read the owner's data. |
String | READ_PHONE_STATE | Allows read only access to phone state. |
String | READ_SMS | Allows an application to read SMS messages. |
String | READ_SYNC_SETTINGS | Allows applications to read the sync settings |
String | READ_SYNC_STATS | Allows applications to read the sync stats |
String | REBOOT |
Required to be able to reboot the device. 重新启动手机 |
String | RECEIVE_BOOT_COMPLETED |
Allows an application to receive the 接受启动成功的广播 |
String | RECEIVE_MMS |
Allows an application to monitor incoming MMS messages, to record or perform processing on them. 监视彩信情况,记录和展示它们 |
String | RECEIVE_SMS |
Allows an application to monitor incoming SMS messages, to record or perform processing on them. 监视短信情况,记录和展示它们 |
String | RECEIVE_WAP_PUSH |
Allows an application to monitor incoming WAP push messages. 接受WAP push的消息(在我的印象中wappush应该算作是彩信中的一部分 吧?) |
String | RECORD_AUDIO |
Allows an application to record audio 录音功能 |
String | REORDER_TASKS | Allows an application to change the Z-order of tasks |
String | RESTART_PACKAGES |
This constant is deprecated. The 此设置已经无效用 |
String | SEND_SMS |
Allows an application to send SMS messages. 发送文本短消息 |
String | SET_ACTIVITY_WATCHER |
Allows an application to watch and control how activities are started globally in the system. |
String | SET_ALWAYS_FINISH |
Allows an application to control whether activities are immediately finished when put in the background. |
String | SET_ANIMATION_SCALE | Modify the global animation scaling factor. |
String | SET_DEBUG_APP | Configure an application for debugging. |
String | SET_ORIENTATION |
Allows low-level access to setting the orientation (actually rotation) of the screen. 底层设置旋转屏幕(横竖屏幕的设置) |
String | SET_PREFERRED_APPLICATIONS |
This constant is deprecated. No longer useful, see 此设置已经无效用 |
String | SET_PROCESS_LIMIT |
Allows an application to set the maximum number of (not needed) application processes that can be running.
设置最大进程数 |
String | SET_TIME |
Allows applications to set the system time 设置系统时间 |
String | SET_TIME_ZONE |
Allows applications to set the system time zone 设置时区 |
String | SET_WALLPAPER |
Allows applications to set the wallpaper 设置墙纸(桌面背景) |
String | SET_WALLPAPER_HINTS | Allows applications to set the wallpaper hints |
String | SIGNAL_PERSISTENT_PROCESSES | Allow an application to request that a signal be sent to all persistent processes |
String | STATUS_BAR | Allows an application to open, close, or disable the status bar and its icons. |
String | SUBSCRIBED_FEEDS_READ | Allows an application to allow access the subscribed feeds ContentProvider. |
String | SUBSCRIBED_FEEDS_WRITE | |
String | SYSTEM_ALERT_WINDOW |
Allows an application to open windows using the type
shown on top of all other applications. |
String | UPDATE_DEVICE_STATS | Allows an application to update device statistics. |
String | USE_CREDENTIALS | Allows an application to request authtokens from the AccountManager |
String | VIBRATE |
Allows access to the vibrator 振动功能 |
String | WAKE_LOCK |
Allows using PowerManager WakeLocks to keep processor from sleeping or screen from dimming 可使用PowerManager WakeLocks 类对屏幕亮度和进程sleep进行管理 |
String | WRITE_APN_SETTINGS |
Allows applications to write the apn settings 设置网络接入点,(电信联通移动或NET和WAP连接) |
String | WRITE_CALENDAR | Allows an application to write (but not read) the user's calendar data. |
String | WRITE_CONTACTS | Allows an application to write (but not read) the user's contacts data. |
String | WRITE_EXTERNAL_STORAGE |
Allows an application to write to external storage 读写外部存储器,sdcard |
String | WRITE_GSERVICES | Allows an application to modify the Google service map. |
String | WRITE_HISTORY_BOOKMARKS |
Allows an application to write (but not read) the user's browsing history and bookmarks. |
String | WRITE_OWNER_DATA | Allows an application to write (but not read) the owner's data. |
String | WRITE_SECURE_SETTINGS |
Allows an application to read or write the secure system settings. 读/更改系统安全设置 |
String | WRITE_SETTINGS |
Allows an application to read or write the system settings. 读写系统设置 |
String | WRITE_SMS | Allows an application to write SMS messages. |
String | WRITE_SYNC_SETTINGS | Allows applications to write the sync settings |
相关推荐
在Android 2.2版本中,`MediaRecorder`已经相当成熟,可以支持多种音频编码格式,如AMR_NB(窄带)和AAC等。 首先,我们需要在AndroidManifest.xml文件中添加必要的权限,以便应用能够访问麦克风进行录音: ```xml...
总的来说,Android 2.2后台发送彩信的源码分析涵盖了Android服务、`SmsManager` API、权限管理、多媒体数据处理等多个方面,这些都是Android开发中的重要知识点。通过学习和理解这些内容,开发者可以构建出高效且...
2. **权限声明**:在AndroidManifest.xml中,需要添加`<uses-permission>`标签来请求使用相机的权限,如`<uses-permission android:name="android.permission.CAMERA" />`。 3. **处理拍照事件**:`Camera....
6. **权限管理**:在Android 2.2中,系统级别的操作需要相应的权限,如`android.permission.READ_FRAME_BUFFER`,以允许访问屏幕缓冲区。确保在AndroidManifest.xml中添加这些权限。 7. **线程安全**:由于...
本文将详细介绍在Android2.2版本中如何使用`forceStopPackage()`方法来结束进程,并探讨该方法与`restartPackage()`以及`killBackgroundProcesses()`等方法的区别。 #### 一、forceStopPackage()方法概述 `...
在Android系统中,权限分为两种类型:Permission权限和Runtime Permission(运行时权限)。本文将详细介绍Permission权限机制及其在Android系统中的使用。 首先,Permission权限机制是Android系统为了防止恶意软件...
- **权限管理**:为了访问摄像头和麦克风,需要在AndroidManifest.xml中声明相应的权限,如`<uses-permission android:name="android.permission.CAMERA" />`和`<uses-permission android:name="android.permission....
在Android平台上实现FLV视频播放,特别是在Android 2.2版本中,通常涉及到与Adobe Flash Player的集成。本文将深入探讨如何在Eclipse环境中构建一个能够播放FLV文件的Android应用,同时也会提及所需的插件和测试代码...
本文将详细介绍Android权限列表中的部分常见权限,以及如何获取模拟器的电话号码代码。 #### 1. BROADCAST_PACKAGE_REMOVED - **定义**:此权限允许应用接收广播通知,当一个包被卸载时会触发这个事件。 - **权限...
- 注意:从Android 6.0(API级别23)开始,应用需要在运行时请求`CALL_PHONE`权限,即使在AndroidManifest.xml中已经声明了该权限。 4. 添加权限到AndroidManifest.xml - 在AndroidManifest.xml中,确保添加了...
由于`AccessibilityService` 可以获取到用户的所有交互,因此需要在应用的权限声明中添加`android.permission.BIND_ACCESSIBILITY_SERVICE`。此外,用户必须手动在系统设置中启用该服务,以确保隐私安全。 **6. ...
在AndroidManifest.xml中添加`<uses-permission android:name="android.permission.INTERNET" />`,确保应用有进行网络操作的权限。 4. **问题四:兼容性问题** Mina库可能与某些Android 2.2的API不兼容。在集成时...
- 因为涉及到系统级别的操作,所以应用需要在AndroidManifest.xml中声明`android.permission.ACCESS_SUPERUSER`和`android.permission.REBOOT`权限。但是,`REBOOT`权限在非系统应用中通常是不允许的,所以该功能...
6. **权限管理**:使用相机功能需要在AndroidManifest.xml文件中声明`<uses-permission>`标签,添加`android.permission.CAMERA`权限。 7. **Activity生命周期**:由于相机可能会与其他应用共享,开发者需要注意...
在AndroidManifest.xml中添加`<uses-feature>`标签声明使用相机功能,并在`<uses-permission>`中添加`android.permission.CAMERA`以获取相机访问权限。 3. **创建相机预览界面** 实现相机功能通常涉及到创建一个...
在Android系统中,照相应用是用户日常使用的重要部分,特别是在Android 2.2(Froyo)版本中。这个版本的照相程序源码包含了关于Camera、SurfaceView和SurfaceHolder等多个关键组件的实现,这些都是Android图形显示和...
通过学习这个基于Android 2.2的照相机Demo,开发者可以深入理解如何在Android应用中集成照相机功能,包括硬件权限管理、相机参数设置、预览和拍照的实现,以及资源的正确释放。这将为进行移动开发App的毕业设计或...
7. **权限管理**:在AndroidManifest.xml文件中添加`<uses-feature android:name="android.hardware.camera" />`声明相机使用需求,并在权限部分添加`<uses-permission android:name="android.permission.CAMERA" />...
1. **AndroidManifest.xml配置**:要使用照相机功能,需要在AndroidManifest.xml文件中添加权限声明,如`<uses-feature android:name="android.hardware.camera" />`和`<uses-permission android:name="android....