摘要:
Problem:When a notification is selected, Tabs activity is called passing the intent. I want to access the unique notificationId of the notification that was selected in Tabs. I tried intent.putExtra() to save the notificationId in the intent. But, for multiple notifications its overwriting the notif 阅读全文
posted @ 2011-03-18 14:33
S.Kei.Cheung
阅读(304)
评论(0)
推荐(0)
摘要:
前面说到intent的另外一种赋值方式:这个就是指定其component属性(调用setComponent(ComponentName)或者setClass(Context, Class)来指定)。通过这种方式的赋值的intent,其实就直接指出了activity类,这样就没有必要到androidmanfest.xml找provider,然后通过provider的gettype返回加上action来找activity了,而是直接创建activity类的实例。其实android还提供了一种创建activity的方式,那就是动态menu的方式,通过 1 public boolean onCreat 阅读全文
posted @ 2011-03-18 14:19
S.Kei.Cheung
阅读(674)
评论(0)
推荐(0)


浙公网安备 33010602011771号