摘要: 1.No enclosing instance of type GeoLocation is accessible. Must qualify the allocation with an enclosing instance of type GeoLocation (e.g. x.new A() where x is an instance of GeoLocation).解决办法1:This error happens because you're trying to create an instance of an inner classservice.submit(new Th 阅读全文
posted @ 2013-12-13 17:10 自由飞翔2012 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 菜单System---->Administration---->languageSupport打开之后点Install/RemoveLanguages...这个按钮再后在列表里找到Chinese(simplified)这一项,把它选上,点ApplyChanges,安装完成后在Languageformenusandwindows:的列表中把汉语拉到第一项,然后注销一下,重新登录就是汉语的界面了。 阅读全文
posted @ 2013-12-09 15:44 自由飞翔2012 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 1.增加混淆文件proguard.cfg(具体内容在最后)2.project.properties 增加proguard.config=proguard.cfg3.如果有第三方lib,progurad.config需要添加如下代码:-libraryjars *.jar (声明lib文件)-dontwarn com.xx.aa.** (不提示警告)-keep class com.xx.aa.**{*;} (不进行混淆)常见问题:1.Android工程路径名内不能有空格,否则会出现错误:Proguard returned with error code 1. See consoleErro... 阅读全文
posted @ 2013-11-18 19:04 自由飞翔2012 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1.看图工具,psd图也能搞定:Gwenview 阅读全文
posted @ 2013-11-18 17:02 自由飞翔2012 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1.注册intentfilterIntentFilter filter = new IntentFilter();filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);registerReceiver(receiver, filter);2.设置receiver if (WifiManager.NETWORK_STATE_CHANGED_ACTION.equals(action)) { NetworkInfo info = (NetworkInfo) intent ... 阅读全文
posted @ 2013-11-05 14:43 自由飞翔2012 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1.个人对onBind(Intent intent)的理解 多个client可以同时连接到同一个service,但是只有第一次连接的时候会调用onBind(),其他的client调用BindService时,不再调用onBind(),只会返回IBinder,onServiceConnected仍然会被多次调用。当所有的clientunbind,service 将会被destroyed。Multiple clients can connect to the service at once. However, the system calls your service's onBind() 阅读全文
posted @ 2013-10-31 17:40 自由飞翔2012 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1、通过Android SDK Tools/SDK Manager.exe打开Android SDK Manager2、在SDK Manager窗口中,Tools-->Options...-->打开Settings 1) 在Others下选中Force https://...sources to be fetched using http://...(原来默认使用https,现在强制使用http)3、打开hosts文件:Windows在C:\WINDOWS\system32\drivers\etc目录下,Linux用户打开/etc/hosts文件在文件末尾默认添加星号行内代码:** 阅读全文
posted @ 2013-10-28 23:01 自由飞翔2012 阅读(214) 评论(0) 推荐(0) 编辑
摘要: ubuntu LTS 安装Java 6方法,Package sun-java6-jdk is not available 出错 阅读全文
posted @ 2012-03-21 15:21 自由飞翔2012 阅读(277) 评论(0) 推荐(0) 编辑