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

推荐订阅源

A
About on SuperTechFans
人人都是产品经理
人人都是产品经理
量子位
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
月光博客
月光博客
T
Tailwind CSS Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
Visual Studio Blog
博客园 - 叶小钗
博客园 - 司徒正美
美团技术团队
博客园_首页
宝玉的分享
宝玉的分享
Apple Machine Learning Research
Apple Machine Learning Research
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Cloudflare Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
有赞技术团队
有赞技术团队
D
DataBreaches.Net
Google DeepMind News
Google DeepMind News

博客园 - 林骄

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);
   }