摘要: public class MainActivity extends Activity { private ImageView imageView; //传感器管理器 private SensorManager manager; //传感器监听器 private SensorListener listener = new SensorListener(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState... 阅读全文
posted @ 2014-01-13 21:57 天之涯0204 阅读(224) 评论(0) 推荐(0) 编辑
摘要: public class MainActivity extends Activity { private ViewFlipper viewFlipper; private float startX; private Animation in_lefttoright; private Animation out_lefttoright; private Animation in_righttoleft; private Animation out_righttoleft; @Override public void onCreate(Bun... 阅读全文
posted @ 2014-01-13 20:46 天之涯0204 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-01-13 19:39 天之涯0204 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-01-13 15:03 天之涯0204 阅读(160) 评论(0) 推荐(0) 编辑
摘要: //通知图标 int icon = android.R.drawable.stat_notify_chat; //创建通知对象,icon通知图标,tickerText摘要,System.currentTimeMillis()通知时间 Notification notification = new Notification(icon, tickerText, System.currentTimeMillis()); Intent intent = new Intent(Intent.ACTION_CALL, Uri.pars... 阅读全文
posted @ 2014-01-13 14:22 天之涯0204 阅读(359) 评论(0) 推荐(0) 编辑