andriod学习
peterour
这个作者很懒,什么都没留下…
展开
-
android双击视频全屏
事情:双击视频的view,原创 2014-05-14 18:04:47 · 1732 阅读 · 0 评论 -
android保持屏幕常亮--FLAG_KEEP_SCREEN_ON
只在某个窗体下,让屏幕保持常亮原创 2014-05-09 11:08:39 · 9059 阅读 · 0 评论 -
android/源码编译
事情: 准备编译android源码,网上搜了好多别人到经验,实验总不得成功。找到了最权威到地方:android官网得教程。在此记下了。解决: 官方编译教程地址:http://source.android.com/source/building.html原创 2014-03-24 10:44:59 · 510 阅读 · 0 评论 -
编程资料:SQLite的日期时间函数
编程资料:SQLite的日期时间函数!http://www.enorth.com.cn 2008-06-17 18:18这篇文章是根据SQLite官方WIKI里的内容翻译,SQLite 包括以下五个时间函数: 1.date(日期时间字符串,修正符,修正符, ……) 2.time(日期时间字符串,修正符,修正符, ……) 3.datetime(转载 2014-03-11 11:15:54 · 578 阅读 · 0 评论 -
android源代码下载地址包含example
事情:冲浪的时候,突然碰到了源代码,在此收藏了。记下:android源代码地址:http://grepcode.com/snapshot/repository.grepcode.com/java/ext/com.google.android/android-apps/4.2.1_r1.2/结构图为:原创 2014-03-04 11:45:16 · 745 阅读 · 0 评论 -
Notification通知未显示
事情:今天练练手,搞搞android里面的通知Notification。搞了好久通知一直发不出。解决:新SDK通知,使用了NotificationCompat.Builder类,创建代码如下: NotificationCompat.Builder builder = new NotificationCompat.Builder(getApplicationContext());原创 2014-03-05 15:00:51 · 1483 阅读 · 0 评论 -
android提供的systemSevice
事情: 今天看android提供的systemService源码时,在注释中看到了很多service。在此记下了。内容: 大家一看就能明白,就不解释了。调用方式:context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); * @see #WINDOW_SERVICE *原创 2014-02-28 14:43:32 · 753 阅读 · 1 评论 -
android中调用系统日期对话框
事情:今天需要调用系统的日期弹出框,之前搞过,没做记录,忘了。毁的肠子都青了。百度..了一下.,十多篇文章皆出自一人之手,但是SDK提示已过期。继续找百度,找到一篇比较符合我的情况的。改吧改吧效果还行。解决: 1. 弹出框设置 /* * 弹出日期选择框 */ private void showDateDialog() { //阻止软键盘弹出框 birth原创 2014-01-20 18:07:43 · 1260 阅读 · 0 评论 -
adb查看内存使用情况报error: more than one device and emulator
问题 :运行adb命令报错error: more than one device and emulator事情:今天想通过adb命令查看一下应用的内存使用情况,使用命令:adb shell dumpsys meminfo。结果报错。E:\Software\andriod_eclipse\sdk\platform-tools>adb shell dumpsys mem原创 2013-12-20 15:54:40 · 952 阅读 · 0 评论 -
模拟器启动不起来:Failed to allocate memory: 8
问题:Failed to allocate memory: 8事情:今天eclipse的模拟器突然起不来了,报下面的错误.google了一下,在http://stackoverflow.com/questions/7222906/failed-to-allocate-memory-8看到帖子,大致浏览了一下,明白了大致原因:内存爆了(分配内存失败),建议模拟器内存分配1G以下。原创 2013-12-20 15:19:17 · 962 阅读 · 0 评论 -
Error performing 'load adapter data' on view 'Animations or transitions are enabled on the target de
Android espresso 单元测试报错: 现在百度已经百度不出来答案了。记下来以备后用。android.support.test.espresso.PerformException: Error performing 'load adapter data' on view 'Animations or transitions are enabled on the targe原创 2017-05-17 14:13:40 · 2335 阅读 · 0 评论