上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
摘要: 错误弹窗如图: Installation failed with message Failed to finalize session: INSTALL_FAILED_TEST_ONLY:installPackageLI. It is possible that this issue is reso 阅读全文
posted @ 2017-10-23 23:55 第壹时间 阅读(7568) 评论(1) 推荐(1) 编辑
摘要: 从github上下载的项目遇到一个问题:Error:This Gradle plugin requires Studio 3.0 minimum 意思就是说studio版本不高,导入的项目的版本是3.0,而我的版本是2.3.3,但是官网的就是2.3.3啊,原来3.0是预览版的。 如果不想使用预览版的 阅读全文
posted @ 2017-10-23 18:46 第壹时间 阅读(673) 评论(0) 推荐(0) 编辑
摘要: ctivity的四种启动模式: standard、singleTop、singleTask、singleInstance 为了打印方便,定义一个基础Activity,在其onCreate方法和onNewIntent方法中打印出当前Activity的日志信息,主要包括所属的task,当前类的hashc 阅读全文
posted @ 2017-10-21 19:09 第壹时间 阅读(549) 评论(0) 推荐(0) 编辑
摘要: 一、开发环境配置: 1、Android Studio 2.3.3 2、android-ndk-r14b-windows-x86_64 二、创建项目 1、新建android项目 2、新建文件 3、编译生成.class文件 4、生成.h文件 (1)、首先进入打开Terminal,进入对应的工程目录下,访 阅读全文
posted @ 2017-10-20 15:09 第壹时间 阅读(1784) 评论(0) 推荐(0) 编辑
摘要: Intent intent = new Intent(); // 为Intent设置Action、Category属性 intent.setAction(Intent.ACTION_MAIN);// "android.intent.action.MAIN" intent.addCategory(Intent.CATEGORY_HOME); //"android.intent.category.H... 阅读全文
posted @ 2017-05-16 17:33 第壹时间 阅读(12275) 评论(0) 推荐(1) 编辑
摘要: 1、TextView首先添加android:ellipsize="marquee" android:marqueeRepeatLimit="marquee_forever" 然后再设置android:singleLine="true";不要加android:focusable="true"; 2、L 阅读全文
posted @ 2017-05-08 17:37 第壹时间 阅读(768) 评论(0) 推荐(0) 编辑
摘要: 有时由于Eclipse卡死,强制关闭之后会出现打不开的情况。弹窗提示: 查看log文件,发现有这样的信息: !MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace 阅读全文
posted @ 2017-05-08 17:29 第壹时间 阅读(50639) 评论(0) 推荐(0) 编辑
摘要: android studio提供的主题是不能修改字体和字体大小的,如果要修改大小就的另存一份自定义的主题了。 1、启动Android Studio,菜单"File"-"Setting...",如图: 2、在左边的菜单中选择"Editor"-"Colors & Fonts"-"Font",如图: 3、 阅读全文
posted @ 2017-05-08 11:40 第壹时间 阅读(15903) 评论(0) 推荐(1) 编辑
摘要: win7系统自带截图工具,重装win7系统后打开截图工具,显示“截图工具当前未在计算机上运行。请重新启动计算机,然后重试”,也不知道怎么回事,网上查询发现一种可行的方式,有需要的用户可以一起动手设置。 具体方法如下: 1、首先在C盘中搜索tpcps.dll; 2、将数据最大那个tpcps.dll文件 阅读全文
posted @ 2017-05-08 11:02 第壹时间 阅读(1600) 评论(0) 推荐(0) 编辑
摘要: 对SharedPreference的使用做了建议的封装,对外公布出put,get,remove,clear等等方法; 注意一点,里面所有的commit操作使用了SharedPreferencesCompat.apply进行了替代,目的是尽可能的使用apply代替commit 首先说下为什么,因为co 阅读全文
posted @ 2017-05-07 11:13 第壹时间 阅读(858) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页