![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
移动开发,编程开发
冯可乐同学
纸上得来终觉浅,绝知此事要躬行。
仰望星空,脚踏实地
展开
-
Android中实现返回桌面的代码
Intent home = new Intent(Intent.ACTION_MAIN); home.addCategory(Intent.CATEGORY_HOME); startActivity(home);原创 2017-03-06 19:45:55 · 3237 阅读 · 0 评论 -
第一章:Kotlin入门 -- 初次见面
一、 开发环境: IntelliJ IDEA二、 HelloWorld程序1. 代码如下:fun main(args: Array<String>){ println("Helle World ! ") // 这个会换行 print("Helle Kotlin ! ") // 这个不会换行}2. 初步感受:(1). 句尾不需要分号(2). Kotlin的文件和类是不同的(3)....原创 2018-05-22 20:17:55 · 277 阅读 · 0 评论 -
Android Support库——support annotations
本文转载自:http://blog.csdn.net/maosidiaoxian/article/details/50452706 Android Support库是官方出的支持扩展库,包含了丰富的组件、工具类等,通过在Android SDK Manager中勾选以下两项来获取到。 其中,Android Support Library下载的是对应的源码或jar包,在使用Ecli转载 2018-01-09 19:15:48 · 477 阅读 · 0 评论 -
记录一次File.createNewFile()报错的解决方法
文章装载自:http://blog.csdn.net/moyuxueyi/article/details/39153725 出现异常: 04-16 17:58:52.714: W/System.err(23703): Caused by: libcore.io.ErrnoException: open failed: EINVAL (Invalid argument) 04-16转载 2017-12-04 11:23:35 · 6551 阅读 · 0 评论 -
Mac中第一次使用Android Studio出现unable to access android sdk add-on list的解决方法
最近从Windows转手到了Mac,Mac中第一次使用Android Studio也和在Windows中一样出现了unable to access android sdk add-on list的问题。当然了解决方法也是Windows中的相同:打开bin\idea.properties这个文件,末尾添加一行disable.android.first.run=true就行了。 但是,现在有原创 2017-11-11 12:06:22 · 12148 阅读 · 0 评论 -
mac下的androidstudio的快捷键
原文链接:http://blog.csdn.net/wqb1319856391/article/details/48264073 因为mac下的androidstudio的快捷键和windows下的不怎么相同,又要重新熟悉一遍,整理记录一下常用的快捷键,也方便自己查找: 上下行移动: alt+shift +up/down 上下移动整个方法: cmd+shift + up/do转载 2017-07-15 10:35:48 · 378 阅读 · 0 评论 -
Android Studio使用Button等控件的英文内容字符串默认大写
在Android Studio中xml里面添加一个Button、EditText等控件后,内容为英文时候,总是会显示大写,即使你输入的字符串是小写也不行。 View中控制字符串大小写的属性是 android:textAllCaps, 设置true 或者 false。查看了一下Themes.xml文件,在设置样式的时候,默认是把所有的字符串显示大写true。 【解决办法】 1.原创 2017-05-03 22:15:11 · 469 阅读 · 0 评论 -
Android中报错:threadid=1: thread exiting with uncaught exception
今天写代码时遇到一个问题,在启动Activity时闪退,并且报错如下:threadid=1: thread exiting with uncaught exception (group=0x416298c8)。 1. 因为我在界面中用到了Switch组件,查资料说使用Switch时的版本最小要14。但是我改为android:minSdkVersion="14"后还是会老样子闪退。 2.原创 2017-03-14 09:57:08 · 4032 阅读 · 0 评论 -
第二章: Kotlin基础
一、数字类型:Long 长整数 64位Int 整数 32位Short 短整数 16位Byte 字节 8位Double 双精度小数 64位Float 浮点数 32位(1). 和Java的区别:首字母是大写的。二、 声明和初始化1. var 变量名: Int = 3Kotlin会自动推断...原创 2018-05-22 20:24:25 · 652 阅读 · 0 评论