Middle
What is the difference between Android 10 and Android 11?
sobes.tech AI
Answer from AI
The main differences between Android 10 and Android 11 concern privacy, notification management, dialogues, and multitasking.
| Feature | Android 10 | Android 11 |
|---|---|---|
| Location permissions | "Allow all the time", "Allow only while using the app", "Deny" | Added "Allow only this time" (for one-time access). |
| Data access permissions | Managed through app settings. | Automatic reset of permissions for unused apps. Improved Scoped Storage (restricted access storage area). |
| Notifications | Grouped by app type, prioritization. | Added "Conversations" category for chat prioritization. Improved notification management in the shade. |
| Dialogs | Not categorized separately. | Separate "Conversations" section in the notification shade for quick access to chats. |
| Multitasking | Split-screen mode, gestures. | Improved media management, quick device switching for playback. Enhanced app power management. |
| Screen recording | Requires third-party apps. | Built-in screen recording feature. |
| File access | Broader access to the file system. | Stricter file access control via Scoped Storage. Complex access to shared directories without explicit permissions. |
Example of using Scoped Storage:
// Example of accessing media files using MediaStore and Scoped Storage
Uri collection = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY);
ContentResolver contentResolver = getContentResolver();
String[] projection = new String[] {
MediaStore.Images.Media._ID,
MediaStore.Images.Media.DISPLAY_NAME,
MediaStore.Images.Media.DURATION,
MediaStore.Images.Media.SIZE
};
try (Cursor cursor = contentResolver.query(
collection,
projection,
null, // selection
null, // selectionArgs
null // sortOrder
)) {
// Handling cursor data
}