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

推荐订阅源

V
V2EX
小众软件
小众软件
GbyAI
GbyAI
B
Blog RSS Feed
月光博客
月光博客
A
About on SuperTechFans
Microsoft Security Blog
Microsoft Security Blog
Blog — PlanetScale
Blog — PlanetScale
U
Unit 42
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Vercel News
Vercel News
F
Fortinet All Blogs
Apple Machine Learning Research
Apple Machine Learning Research
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
雷峰网
雷峰网
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
Engineering at Meta
Engineering at Meta
aimingoo的专栏
aimingoo的专栏
博客园_首页
G
Google Developers Blog

博客园 - 林骄

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