android n preview
TRANSCRIPT
Android N PreviewGDG Korea Meetup March 30 - Hassan Abid
Android N for DevelopersMultiWindow & Picture-in-PictureActive Notifications
Language and Locale
Direct Boot
Scoped Directory Access2
References for Korean DevelopersGoogle Korea Official Blog post
Kunny’s Weekly blog post
Taehwan’s blog about Android N Preview Multiwindow
3
SURVEY (ANDROID AUTHORITY)
4
MultiWindowSplit Screen ( Mobile)Picture-in-picture (TV)Freeform mode (Large Devices)Drag & Drop
5
MultiWindow - How ?android:resizeableActivity=["true" | "false"]
android:supportsPictureInPicture=["true" | "false"]
<activity android:name=".MyActivity">
<layout android:defaultHeight="500dp"
android:defaultWidth="600dp"
android:gravity="top|end"
android:minimalSize="450dp" />
</activity>
Activity.inMultiWindow()
Activity.inPictureInPicture()
Activity.onMultiWindowChanged()
Activity.onPictureInPictureChanged()
Frament.inMultiWindow
…
6
7
Tips for Multi-window support [ref]1. Use the right Context
2. Handle configuration changes correctly
3. Handle all orientations
4. Build a responsive UI for all screen sizes
5. Activities started by other apps must always support multi-window
8
Active NotificationsInline ReplyBundled NotificationsCustom View
9
Scoped Directory Access
10
Direct BootCredential encrypted:
The default storage location for all apps, available only after the user has entered their pattern/password
Device encrypted:
A new storage location which is always available while the device is booted, both before and after any user credentials are entered
11
Language and Locale
12
Behavioral ChangesPerformance Improvement
Enhanced Doze mode
Project Svelte: Background Optimizations
13
Doze (Android M)
Wakelock,AlarmWifi/Gps works
14
Doze (Android N)
Wakelock,AlarmWifi/Gps works
15
Doze ( Second-Level)
16
Background OptimizationRestrictions on CONNECTIVITY_ACTION
Restrictions on NEW_PICTURE and NEW_VIDEO
17
MoreData Saver TV RecordingFollow this link
18
DEMO19
Reference CodesAndroid MultiWindow [Github]
Active Notifications (Bundle Notificatiosn) [Github]
Inline Reply [Github]
Scoped Directory Access [Github]
Search Restaurant (My own project’s code upgraded to Android N - Checkout branch npreview) [Github]
ExoPlayer upgraded to NPreview [Github]20
FeedbackLink : https://code.google.com/p/android/issues/entry?template=Developer%20preview%20report
21
SURVEY22
About me- Hassan Abid (www.hassanabid.com)
- GDE Since March 2016
- Works at NexStreaming
- Hobbies: Hiking, Cycling & Running
- Twitter : hassanabidpk
23
감사합니다24