Submit Search
Upload
Notifications for Android L & wear
•
7 likes
•
1,630 views
Taeho Kim
Follow
2014 GDG 안드로이드 컨퍼런스에서 진행된 'Notifications for Android L & wear' 세션 프리젠테이션입니다.
Read less
Read more
Education
Report
Share
Report
Share
1 of 32
Download now
Download to read offline
Recommended
Recyclerview in action
Recyclerview in action
Pratama Nur Wijaya
Android crashcourse
Android crashcourse
Alexey Buzdin
Material design for everyone
Material design for everyone
Taeho Kim
[Hello World 천안아산] 안드로이드 입문
[Hello World 천안아산] 안드로이드 입문
Taeho Kim
Support Design Library
Support Design Library
Taeho Kim
(안드로이드 개발자를 위한) 오픈소스 라이브러리 사용 가이드
(안드로이드 개발자를 위한) 오픈소스 라이브러리 사용 가이드
Taeho Kim
How to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & Tricks
SlideShare
Getting Started With SlideShare
Getting Started With SlideShare
SlideShare
Recommended
Recyclerview in action
Recyclerview in action
Pratama Nur Wijaya
Android crashcourse
Android crashcourse
Alexey Buzdin
Material design for everyone
Material design for everyone
Taeho Kim
[Hello World 천안아산] 안드로이드 입문
[Hello World 천안아산] 안드로이드 입문
Taeho Kim
Support Design Library
Support Design Library
Taeho Kim
(안드로이드 개발자를 위한) 오픈소스 라이브러리 사용 가이드
(안드로이드 개발자를 위한) 오픈소스 라이브러리 사용 가이드
Taeho Kim
How to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & Tricks
SlideShare
Getting Started With SlideShare
Getting Started With SlideShare
SlideShare
Android Wear – IO Extended
Android Wear – IO Extended
Douglas Drumond
Android wear (coding)
Android wear (coding)
Douglas Drumond
Local Notification Tutorial
Local Notification Tutorial
Ketan Raval
Getting Ready For Android Wear
Getting Ready For Android Wear
Raveesh Bhalla
Introduction to Android Wear
Introduction to Android Wear
Peter Friese
Androidppt 1
Androidppt 1
edwardyangey
Session #8 adding magic to your app
Session #8 adding magic to your app
Vitali Pekelis
GDG GeorgeTown Devfest 2014 Presentation: Android Wear: A Developer's Perspec...
GDG GeorgeTown Devfest 2014 Presentation: Android Wear: A Developer's Perspec...
mharkus
Introduction to Android Wear - Peter Friese
Introduction to Android Wear - Peter Friese
JAXLondon2014
Slightly Advanced Android Wear ;)
Slightly Advanced Android Wear ;)
Alfredo Morresi
That’s My App - Running in Your Background - Draining Your Battery
That’s My App - Running in Your Background - Draining Your Battery
Michael Galpin
Android workshop
Android workshop
Michael Galpin
Introduction to Android Wear
Introduction to Android Wear
Peter Friese
F2
F2
Saber LAJILI
NB Explain Every Line Of Code public class MainActivity.pdf
NB Explain Every Line Of Code public class MainActivity.pdf
aceindustriesjal
create-netflix-clone-04-server-continued.pdf
create-netflix-clone-04-server-continued.pdf
ShaiAlmog1
Developing for android wear
Developing for android wear
Thomas Oldervoll
Why SOLID matters - even for JavaScript
Why SOLID matters - even for JavaScript
martinlippert
Android Wear Development
Android Wear Development
Takahiro (Poly) Horikawa
Android Wearables ii
Android Wearables ii
Ketan Raval
Kotlin: Let's Make Android Great Again
Kotlin: Let's Make Android Great Again
Taeho Kim
레진코믹스가 코틀린으로 간 까닭은?
레진코믹스가 코틀린으로 간 까닭은?
Taeho Kim
More Related Content
Similar to Notifications for Android L & wear
Android Wear – IO Extended
Android Wear – IO Extended
Douglas Drumond
Android wear (coding)
Android wear (coding)
Douglas Drumond
Local Notification Tutorial
Local Notification Tutorial
Ketan Raval
Getting Ready For Android Wear
Getting Ready For Android Wear
Raveesh Bhalla
Introduction to Android Wear
Introduction to Android Wear
Peter Friese
Androidppt 1
Androidppt 1
edwardyangey
Session #8 adding magic to your app
Session #8 adding magic to your app
Vitali Pekelis
GDG GeorgeTown Devfest 2014 Presentation: Android Wear: A Developer's Perspec...
GDG GeorgeTown Devfest 2014 Presentation: Android Wear: A Developer's Perspec...
mharkus
Introduction to Android Wear - Peter Friese
Introduction to Android Wear - Peter Friese
JAXLondon2014
Slightly Advanced Android Wear ;)
Slightly Advanced Android Wear ;)
Alfredo Morresi
That’s My App - Running in Your Background - Draining Your Battery
That’s My App - Running in Your Background - Draining Your Battery
Michael Galpin
Android workshop
Android workshop
Michael Galpin
Introduction to Android Wear
Introduction to Android Wear
Peter Friese
F2
F2
Saber LAJILI
NB Explain Every Line Of Code public class MainActivity.pdf
NB Explain Every Line Of Code public class MainActivity.pdf
aceindustriesjal
create-netflix-clone-04-server-continued.pdf
create-netflix-clone-04-server-continued.pdf
ShaiAlmog1
Developing for android wear
Developing for android wear
Thomas Oldervoll
Why SOLID matters - even for JavaScript
Why SOLID matters - even for JavaScript
martinlippert
Android Wear Development
Android Wear Development
Takahiro (Poly) Horikawa
Android Wearables ii
Android Wearables ii
Ketan Raval
Similar to Notifications for Android L & wear
(20)
Android Wear – IO Extended
Android Wear – IO Extended
Android wear (coding)
Android wear (coding)
Local Notification Tutorial
Local Notification Tutorial
Getting Ready For Android Wear
Getting Ready For Android Wear
Introduction to Android Wear
Introduction to Android Wear
Androidppt 1
Androidppt 1
Session #8 adding magic to your app
Session #8 adding magic to your app
GDG GeorgeTown Devfest 2014 Presentation: Android Wear: A Developer's Perspec...
GDG GeorgeTown Devfest 2014 Presentation: Android Wear: A Developer's Perspec...
Introduction to Android Wear - Peter Friese
Introduction to Android Wear - Peter Friese
Slightly Advanced Android Wear ;)
Slightly Advanced Android Wear ;)
That’s My App - Running in Your Background - Draining Your Battery
That’s My App - Running in Your Background - Draining Your Battery
Android workshop
Android workshop
Introduction to Android Wear
Introduction to Android Wear
F2
F2
NB Explain Every Line Of Code public class MainActivity.pdf
NB Explain Every Line Of Code public class MainActivity.pdf
create-netflix-clone-04-server-continued.pdf
create-netflix-clone-04-server-continued.pdf
Developing for android wear
Developing for android wear
Why SOLID matters - even for JavaScript
Why SOLID matters - even for JavaScript
Android Wear Development
Android Wear Development
Android Wearables ii
Android Wearables ii
More from Taeho Kim
Kotlin: Let's Make Android Great Again
Kotlin: Let's Make Android Great Again
Taeho Kim
레진코믹스가 코틀린으로 간 까닭은?
레진코믹스가 코틀린으로 간 까닭은?
Taeho Kim
RxJava in Action
RxJava in Action
Taeho Kim
Android Studio 2.2 - What's new in Android development tools
Android Studio 2.2 - What's new in Android development tools
Taeho Kim
Multi Window in Android N
Multi Window in Android N
Taeho Kim
Material Design with Support Design Library
Material Design with Support Design Library
Taeho Kim
More from Taeho Kim
(6)
Kotlin: Let's Make Android Great Again
Kotlin: Let's Make Android Great Again
레진코믹스가 코틀린으로 간 까닭은?
레진코믹스가 코틀린으로 간 까닭은?
RxJava in Action
RxJava in Action
Android Studio 2.2 - What's new in Android development tools
Android Studio 2.2 - What's new in Android development tools
Multi Window in Android N
Multi Window in Android N
Material Design with Support Design Library
Material Design with Support Design Library
Recently uploaded
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
Ramakrishna Reddy Bijjam
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Pooja Bhuva
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA! .
Colégio Santa Teresinha
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
httgc7rh9c
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
Sandeep D Chaudhary
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
Celine George
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
Nirmal Dwivedi
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
Marc Dusseiller Dusjagr
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
stareducators107
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Pooja Bhuva
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
Dr. Mazin Mohamed alkathiri
Our Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdf
Vivekanand Anglo Vedic Academy
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
Elizabeth Walsh
Play hard learn harder: The Serious Business of Play
Play hard learn harder: The Serious Business of Play
Pooky Knightsmith
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
Jisc
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
Jisc
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
akanksha16arora
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Dr Vijay Vishwakarma
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
Celine George
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
Amil baba
Recently uploaded
(20)
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA! .
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
Our Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdf
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
Play hard learn harder: The Serious Business of Play
Play hard learn harder: The Serious Business of Play
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
Notifications for Android L & wear
1.
2.
3.
4.
5.
6.
7.
builder.setContentTitle("Private notification") .setContentText("Private notification
content") .setVisibility(Notification.VISIBILITY_PRIVATE) .setColor(Color.argb(1, 204, 0, 0)) .setPublicVersion( new Notification.Builder(this) .setColor(Color.argb(1, 0, 153, 204)) .setSmallIcon(R.drawable.ic_action_web_site) .setContentText("Public version of private content") .setContentTitle("Public version") .build());
8.
9.
10.
11.
builder.setPriority(Notification.PRIORITY_HIGH) .setContentTitle("High priority") .setDefaults(Notification.DEFAULT_VIBRATE); mng.notify(1, builder.build());
12.
PendingIntent pi =
PendingIntent.getActivity(this, 0, new Intent(Intent.ACTION_VIEW).setData(Uri.parse("http://android.com")), 0); builder.setFullScreenIntent(pi, true) .setContentIntent(pi) .setContentTitle("Notification with Fullscreen Intent") .setContentText("Content text");
13.
14.
15.
16.
Notification notification = new
Notification.Builder(BridgeActivity.this) .setSmallIcon(R.drawable.ic_launcher) .setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.bg_wear_notes)) .setContentTitle("Android.com") .setContentText("Check out news from android.com!") .setLocalOnly(!cbBridgeNotification.isChecked()) .setAutoCancel(true) .build();
17.
18.
19.
20.
// Create wear
only action PendingIntent piw = PendingIntent.getActivity(this, 0, new Intent(Intent.ACTION_VIEW).setData(Uri.parse("http://android.com/wear")), PendingIntent.FLAG_UPDATE_CURRENT); Notification.Action wearOnlyAction = new Notification.Action.Builder(R.drawable.ic_action_web_site, "Wear only", piw).build(); ! builder.extend(new Notification.WearableExtender().addAction(wearOnlyAction));
21.
22.
23.
24.
remoteInput = new
RemoteInput.Builder(VoiceInputResultActivity.KEY_VOICE_INPUT) .setLabel("Say message") .setChoices(getResources().getStringArray(R.array.reply_choices)) .build(); ! // 중략 ! Notification.Action replyAction = new Notification.Action.Builder(R.drawable.ic_action_web_site, "Reply", pi) .addRemoteInput(remoteInput).build(); ! Notification.Builder builder = new Notification.Builder(this) .setSmallIcon(R.drawable.ic_action_web_site) .setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.img_gaejugi)) .setAutoCancel(true) .setContentTitle("John Doe") .setContentText("Lunch?") .extend(new Notification.WearableExtender().addAction(replyAction));
25.
26.
Notification.Builder builder =
new Notification.Builder(this); builder.setSmallIcon(R.drawable.ic_action_web_site) //… 생략 ! Notification secondPage = new Notification.Builder(this) // 생략 ! Notification thirdPage = new Notification.Builder(this) // 생략 ! Notification pagingNotification = new Notification.WearableExtender() .addPage(secondPage) .addPage(thirdPage) .extend(builder).build();
27.
28.
29.
Notification noti1 =
new Notification.Builder(this).setGroup(GROUP_MESSAGE) // 생략 ! Notification noti2 = new Notification.Builder(this).setGroup(GROUP_MESSAGE) // 생략 ! NotificationManager mng = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); mng.notify(0, noti1); mng.notify(1, noti2); ! Notification summary = new Notification.Builder(this) // 생략 .setGroup(GROUP_MESSAGE) .setGroupSummary(true) .extend(new Notification.WearableExtender() .setBackground(BitmapFactory.decodeResource( getResources(), R.drawable.img_gaejugi))) .build(); ! mng.notify(3, summary);
Download now