android_pendingIntent/Drawable/ActivityManager

 

 

 

 


  intent英文意思是意图,pending表示即将发生或来临的事情。
  PendingIntent这个类用于处理即将发生的事情。比如在通知Notification中用于跳转页面,但不是马上跳转。
  Intent 是及时启动,intent 随所在的activity 消失而消失。
  PendingIntent 可以看作是对intent的包装,通常通过getActivity,getBroadcast ,getService来得到pendingintent的实例,当前activity并不能马上启动它所包含的intent,而是在外部执行 pendingintent时,调用intent的。正由于pendingintent中保存有当前App的Context,使它赋予外部App一种能力,使得外部App可以如同当前App一样的执行pendingintent里的 Intent, 就算在执行时当前App已经不存在了,也能通过存在pendingintent里的Context照样执行Intent。另外还可以处理intent执行后的操作。常和alermanger 和notificationmanager一起使用。
  Intent一般是用作Activity、Sercvice、BroadcastReceiver之间传递数据,而Pendingintent,一般用在 Notification上,可以理解为延迟执行的intent,PendingIntent是对Intent一个包装。

 

 

 

  eclipse的关联sdk源代码,sdk源文件/压缩的。
  ActivityInfo类:Information you can retrieve about a particular application activity or receiver. This corresponds to information collected from the AndroidManifest.xml's <activity> and <receiver> tags.
  android.content.pm.ActivityInfo --> ComponentInfo --> PackageItemInfo --> Object.
  ActivityManager.MemoryInfo类:Information you can retrieve about the available memory through getMemoryInfo(ActivityManager.MemoryInfo).
  PendingIntent:其他程序操作该应用程序像该应用程序自己操作一样;token的引用,无论该应用进程是否已经关闭;内部会调用mIntent.filterEquals(Intent other)判断某一个是否为同一个PendingIntent。
  A PendingIntent itself is simply a reference to a token maintained by the system describing the original data used to retrieve it.
  mIntent.filterEquals(Intent other):Determine if two intents are the same for the purposes of intent resolution (filtering). That is, if their action, data, type, class, and categories are the same. This does not compare any extra data included in the intents.
  Toast继承Object;
  ActivityManager:Interact with the overall activities running in the system.
  PackageManager:Class for retrieving various kinds of information related to the application packages that are currently installed on the device.
  SurfaceView --> View;Provides a dedicated drawing surface embedded inside of a view hierarchy.
  The surface is Z ordered so that it is behind the window holding its SurfaceView; the SurfaceView punches a hole in its window to allow its surface to be displayed.
  Access to the underlying surface is provided via the SurfaceHolder interface, which can be retrieved by calling getHolder().
  Drawable:draw方法最终是调用没Canvas的draw方法。Unlike a View, a Drawable does not have any facility to receive events or otherwise interact with the user.
  android.graphics.drawable:Provides classes to manage a variety of visual elements that are intended for display only, such as bitmaps and gradients.
  Canvas:The Canvas class holds the "draw" calls.

 

  ContentResolver --> Object:This class provides applications access to the content model.
  IntentSender --> Object:A IntentSender itself is simply a reference to a token maintained by the system describing the original data used to retrieve it.
  Instances of this class can not be made directly, but rather must be created from an existing PendingIntent with PendingIntent.getIntentSender().

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值