Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 25 2016 22:36

    yongjhih on master

    update sdk (compare)

  • Oct 25 2016 22:34

    yongjhih on master

    Support serialize pendingIntent (compare)

  • Oct 25 2016 22:25

    yongjhih on master

    Support serialize pendingIntent (compare)

  • Apr 11 2016 17:34
    yongjhih closed #5
  • Apr 11 2016 17:33
    yongjhih labeled #5
  • Nov 03 2015 03:13
    yongjhih added as member
  • Nov 03 2015 03:13
    changyuheng added as member
  • Nov 03 2015 03:11
    yongjhih added as member
  • Oct 10 2015 19:00
    changyuheng added as member
  • Oct 10 2015 19:00
    yongjhih added as member
  • Oct 10 2015 18:59
    yongjhih added as member
  • Oct 10 2015 16:36
    yongjhih added as member
  • Oct 10 2015 16:30
    yongjhih added as member
  • Sep 11 2015 15:19

    yongjhih on master

    Invoke SystemServices (compare)

  • Sep 08 2015 22:32
    yongjhih commented #5
  • Sep 08 2015 22:23
    gustavomc opened #5
  • Sep 03 2015 17:18
    yongjhih commented #4
  • Sep 03 2015 17:16

    yongjhih on master

    app: Use vibrate (compare)

  • Sep 03 2015 16:07
    gustavomc commented #4
  • Sep 03 2015 15:42
    yongjhih closed #4
Andrew Chen
@yongjhih
{
   "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
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)
Andrew Chen
@yongjhih
測試 serialization:
D/json2notification-app( 4390): json:{   "android": {       "notification": {           "contentTitle": "json2notification",           "contentText": "JSON to Android Notification",           "contentInfo": "json2notification.Json2Notification.from(context).with(json).notification();",           "largeIcon": "http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png",           "smallIcon": "R.drawable.ic_launcher",           "contentIntent": {               "getActivity": true,               "intent": {                    "action" : "android.intent.action.VIEW",                    "uri" : "https://github.com/8tory/json2notification"               }           },           "bigPictureStyle": {               "contentTitle": "json2notification",               "summaryText": "JSON to Android Notification",               "bigLargeIcon": "http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png",               "bigPicture": "http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png"           },           "autoCancel": true       }   }}
D/json2notification( 4390): action:android.intent.action.VIEW
D/json2notification( 4390): uri:https://github.com/8tory/json2notification
D/json2notification( 4390): getActivity:true
D/json2notification( 4390): intent:Intent { act=android.intent.action.VIEW dat=https://github.com/8tory/json2notification }
D/json2notification( 4390): requestCode:null
D/json2notification( 4390): flags:null
D/json2notification( 4390): BigPictureStyle:bigLargeIcon:http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png
I/WindowManager(  653): Screen frozen for +221ms due to Window{3f0bae61 u0 json2notification.app/json2notification.app.MainActivity}
D/json2notification( 4390): BigPictureStyle:bigLargeIcon:bitmap:android.graphics.Bitmap@1ee09f94
D/json2notification( 4390): BigPictureStyle:bigPicture:http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png
D/json2notification( 4390): BigPictureStyle:bigPicture:bitmap:android.graphics.Bitmap@16bb3a3d
D/json2notification( 4390): BigPictureStyle:contentTitle:json2notification
D/json2notification( 4390): BigPictureStyle:summaryText:JSON to Android Notification
D/json2notification( 4390): autoCancel:true
D/json2notification( 4390): contentTitle:json2notification
D/json2notification( 4390): contentInfo:json2notification.Json2Notification.from(context).with(json).notification();
D/json2notification( 4390): contentIntent:PendingIntent{1a49232: android.os.BinderProxy@34db1564}
D/json2notification( 4390): contentText:JSON to Android Notification
D/json2notification( 4390): largeIcon:http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png
D/json2notification( 4390): smallIcon:R.drawable.ic_launcher
D/json2notification( 4390): bigPictureStyle:android.support.v4.app.NotificationCompat$BigPictureStyle@1c49ab83
D/json2notification-app( 4390): notify:Notification(pri=0 contentView=json2notification.app/0x1090078 vibrate=null sound=null defaults=0x0 flags=0x10 color=0x00000000 vis=PRIVATE)
D/json2notification( 4390): fieldName:notification
D/json2notification( 4390): notification:Notification(pri=0 contentView=json2notification.app/0x1090078 vibrate=null sound=null defaults=0x0 flags=0x10 color=0x00000000 vis=PRIVATE)
D/json2notification( 4390): autoCancel:true
D/json2notification( 4390): simpleNotification.smallIcon2130837555
D/json2notification( 4390): writeFieldNameForObject:true
D/json2notification( 4390): BigPictureStyleConverter:serialize
D/json2notification( 4390): PendingIntentConverter:serialize
D/json2notification( 4390): IntentConverter:serialize
D/json2notification-app( 4390): serialize:null