Two Heads Are Often Better Than OneAdrian WiblePROGRAMMING REQUIRES DEEP THOUGHT, and deep thought requires soli- tude. So goes the programmer stereotype.
This “lone wolf ” approach to programming has...
分类:
其他好文 时间:
2015-07-11 09:07:36
阅读次数:
123
在Activity中使用startActivity()方法不会有任何限制,因为Activity重载了Context的startActivity()方法。但是如果是在其他地方(如Widget或Service、BroadcastReceiver中)使用startActivity()方法,就会报错:and...
分类:
其他好文 时间:
2015-07-11 09:02:09
阅读次数:
158
错误原因:
Activity打开别的Activity的时候会默认把新的Activity放到自己的task中,所以不用指定,但是别的地方就得指定了。
解决办法:intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
***********************************************以下属于了解学习******...
分类:
其他好文 时间:
2015-07-08 19:07:31
阅读次数:
145
1. 新建Python环境变量配置文件:
vim ~/.pystartup
# Add auto-completion and a stored history file of commands to your Python
# interactive interpreter. Requires Python 2.0+, readline. Autocomplete is
# ...
分类:
编程语言 时间:
2015-07-07 23:03:47
阅读次数:
482
[INFO] Scanning for projects...[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] -------------...
分类:
其他好文 时间:
2015-07-06 13:46:12
阅读次数:
140
在学习android的过程中,出现这个错误的是否,可以build clean解决
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (D:\). Please verify you invoked Maven from the cor...
分类:
其他好文 时间:
2015-06-30 12:45:29
阅读次数:
102
使用$provide中的provider方法定义服务前面已经知道了module的定义为angular.module(name,[requires],configFn);configFn参数是配置服务的。ng供服务的过程涉及它的依赖注入机制。AngularJS是用$provider对象来实现自动依赖注入机制的。$provide.provider是一种定义服务的方法..
分类:
Web程序 时间:
2015-06-27 19:59:16
阅读次数:
121
emulator: ERROR: x86 emulation currently requires hardware acceleration!Please ensure Intel HAXM is properly installed and usable.CPU acceleration sta...
分类:
其他好文 时间:
2015-06-26 23:33:21
阅读次数:
194
重装操作系统之后,或者破坏了Android的开发环境之后,需要重新配置好Android的开发环境。但是配置好后,导入原有的项目时,报错:Android requires compiler compliance level 5.0 or 6.0. Found '1.8' instead. Please...
分类:
移动开发 时间:
2015-06-26 16:16:29
阅读次数:
528