![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
surefan
享受生活的人
展开
-
Android的滑动手势处理
Android SDK提供了一个listener类来侦测各种不同的手势: SimpleOnGestureListener. 你只需要实现自己所关心的手势就可以了. Swipe在android里面是叫Fling 首先创建自己的一个手势detector类: Java代码 class MyGestureDetector extends SimpleOnGestureListener { ...原创 2009-07-10 09:13:45 · 177 阅读 · 0 评论 -
Android中调用系统的安装程序
//mainFile是需要安装的File类型文件 Uri data = Uri.fromFile(mainFile); //调用系统的安装方法Intent intent = new Intent(Intent.ACTION_VIEW);intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);intent.setDataAndType(data, "appl...2009-07-10 09:17:31 · 180 阅读 · 0 评论