These are chat archives for 8tory/json2notification

14th
Jul 2015
Andrew Chen
@yongjhih
Jul 14 2015 04:24
{
   "android": {
       "notification": {
           "contentTitle": "contentTitle",
D/json2notification(28686): contentTitle:contentTitle
           "contentText": "contentText",
D/json2notification(28686): contentText:contentText
           "contentInfo": "contentInfo",
D/json2notification(28686): contentInfo:contentInfo
           "largeIcon": "http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png",
D/json2notification(28686): largeIcon:http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png
           "smallIcon": "R.drawable.ic_launcher",
D/json2notification(28686): smallIcon:R.drawable.ic_launcher

           "contentIntent": {
D/json2notification(28686): contentIntent:PendingIntent{c6acfc5: android.os.BinderProxy@c26ad1a}
               "getActivity": true,
D/json2notification(28686): getActivity:true

               "intent": {
D/json2notification(28686): intent:Intent { act=android.intent.action.VIEW dat=http://wikimedia.org/ }
                    "action" : "android.intent.action.VIEW",
D/json2notification(28686): action:android.intent.action.VIEW
                    "uri" : "http://wikimedia.org/"
D/json2notification(28686): uri:http://wikimedia.org/
               }

D/json2notification(28686): requestCode:null
D/json2notification(28686): flags:null
           },

           "bigPictureStyle": {
D/json2notification(28686): bigPictureStyle:android.support.v4.app.NotificationCompat$BigPictureStyle@3151d04b
               "contentTitle": "contentTitle",
D/json2notification(28686): BigPictureStyle:contentTitle:contentTitle
               "summaryText": "summaryText",
D/json2notification(28686): BigPictureStyle:summaryText:summaryText
               "bigLargeIcon": "http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png",
D/json2notification(28686): BigPictureStyle:bigLargeIcon:http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png
               "bigPicture": "http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png"
D/json2notification(28686): BigPictureStyle:bigPicture:http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png
           },

           "autoCancel": true
D/json2notification(28686): autoCancel:true
       }
   }
}
我把印出來的 log 插入 輸入的 json 。看起來都有爬到阿..
Andrew Chen
@yongjhih
Jul 14 2015 04:55
Notification instance 看起來一模一樣:
D/json2notification-app( 8708): notify:Notification(pri=0 contentView=com.infstory.notification.sample/0x1090078 vibrate=null sound=null defaults=0x0 flags=0x10 color=0x00000000 vis=PRIVATE)