惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
博客园_首页
H
Help Net Security
博客园 - Franky
V
Visual Studio Blog
Jina AI
Jina AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
V2EX
宝玉的分享
宝玉的分享
酷 壳 – CoolShell
酷 壳 – CoolShell
J
Java Code Geeks
L
LangChain Blog
腾讯CDC
Engineering at Meta
Engineering at Meta
D
DataBreaches.Net
爱范儿
爱范儿
Google DeepMind News
Google DeepMind News
C
Check Point Blog
博客园 - 聂微东
罗磊的独立博客
量子位
M
MIT News - Artificial intelligence
F
Fortinet All Blogs

博客园 - 林骄

Android note 2010.08.02 v2 Android Note 2010.08.02 Android Note 2011.08.01 [Biztalk]问题集 - 林骄 - 博客园 Winform导出Excel Excel单元格颜色 判断系统版本 ListView && XmlReader How to open a folder with explorer - 林骄 Print Can't open Infragistics help document How to get local machine date format.如何获取本机时间格式 cannot open user default database WebService Tips 中文全半角转换 Windows Service 装机备忘 Db2中的时间
2010.08.03 Android note
林骄 · 2011-08-02 · via 博客园 - 林骄

*Touch Evnet实验
如果回调是按时间触发的,所以不停的进入这个方法,即使event一直是Move
@Override
   public boolean onTouchEvent(MotionEvent event){
  super.onTouchEvent(event); 
  view.setText(view.getText()+";"+event.getAction());
  return true;
   }
  
*Notify
public void Notify(String msg){
    NotificationManager manager=(NotificationManager)this.getSystemService(Context.NOTIFICATION_SERVICE);
    Notification not=new Notification(R.drawable.icon,"SHow",System.currentTimeMillis());
    PendingIntent intent= PendingIntent.getActivity(this, 0, new Intent(this,ImageActivity.class), 0);
    not.setLatestEventInfo(this, "title", msg, intent);
    manager.notify(1,not);
   }