上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: 1、Failed to import new Gradle project: Could not install Gradle distribution from'http://services.gradle.org/distributions/gradle-1.6-bin.zip'.问题原因:中国连接gradle的地址被强了解决方案:修改android studio设置Http Proxy->Auto-detect proxy settings2、编译时报错“Compilation completed with 2 errors and 0 warnings in 9 阅读全文
posted @ 2013-07-18 13:04 BicycleBoy 阅读(2456) 评论(0) 推荐(0) 编辑
摘要: Activity实现 1 import android.app.Activity; 2 import android.os.Bundle; 3 import android.view.MotionEvent; 4 import android.view.View; 5 import android.view.Window; 6 import android.view.animation.AnimationUtils; 7 import android.widget.Gallery; 8 import android.widget.ImageSwitcher; 9 import... 阅读全文
posted @ 2013-07-18 12:51 BicycleBoy 阅读(2049) 评论(0) 推荐(0) 编辑
摘要: 快捷键用途描述Alt+回车导入包,自动修正Ctrl+N查找类Ctrl+Shift+N查找文件Ctrl+Alt+L格式化代码Ctrl+Alt+O优化导入的类和包Alt+Insert生成代码(如get,set方法,构造函数等)Ctrl+E Alt+Shift+C最近更改的代码 Ctrl+R替换文本 Ctrl+F查找文本 Ctrl+Shift+Space自动补全代码 Ctrl+空格代码提示 Ctrl+Alt+Space类名或接口名提示 Ctrl+P方法参数提示 Ctrl+Shift+Alt+N查找类中的方法或变量 Alt+Shift+C对比最近修改的代码 Shift+F6重构-重命名 C... 阅读全文
posted @ 2013-07-11 12:47 BicycleBoy 阅读(6098) 评论(1) 推荐(1) 编辑
摘要: 1、IIS7运行时访问报错,先安装VS,再启用的IIS,那么需要为IIS进行注册,在VS工具命令行中执行“aspnet_regiis.exe -ir -enable”即可2、错误“未能加载文件或程序集“System.Data.SQLite”或它的某一个依赖项。试图加载格式不正确的程序” 解决方法:将此DLL程序换成与系统位数(32或64)一样即可 阅读全文
posted @ 2013-07-11 08:59 BicycleBoy 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 将下载压缩包解压到任意目录配置安装文件:# For advice on how to change settings please see# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the# *** default location during install, and will be replaced if you# *** upgrade 阅读全文
posted @ 2013-07-09 11:06 BicycleBoy 阅读(242) 评论(0) 推荐(0) 编辑
摘要: Runnable SonThread=new Runnable() { @Override public void run() { // TODO Auto-generated method stub String tem = GetInfoExec(); //Log.i("suerinfo",tem); Message mes = new Message(); mes.obj = tem; //handler.sendMessage(mes); mHandler.sendMessage(mes); } }; private static clas... 阅读全文
posted @ 2013-07-05 09:28 BicycleBoy 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 1、在Activity中创建SharedPreferences对象及操作方法SharedPreferencespre=getSharedPreferences("User", MODE_PRIVATE);//获取到SharedPreferences,(MODE_PRIVATE或0表示本程序可用)为本程序可读写。pre.edit().putInt("UserId", UserId).commit();//向本地存储对象中写入数据pre.getInt("UserId", 0);//从本地存储对象中获取数据(0表示所取值为空时返回的默认值) 阅读全文
posted @ 2013-06-27 08:58 BicycleBoy 阅读(608) 评论(0) 推荐(0) 编辑
摘要: 创建新项目自动执行时报错:Failed to import new Gradle project: failed to find Build Tools revision 17.0.0Consult IDE log for more details (Help | Show Log)可能是创建项目时Android Studio会连网下载Gradle进行项目配置,但在中国好像连接站点被强所以会报错,将Android Studio代理设置为自动,并将C:\Users\yourname\.gradle\wrapper\dists\gradle-1.6-bin\72srdo3a5eb3bic159ka 阅读全文
posted @ 2013-06-17 13:39 BicycleBoy 阅读(2257) 评论(0) 推荐(0) 编辑
摘要: 1、隐藏模型面板中的定界线Tools->Display Preferences->General->Organization unit swimlane项下:Horizontal水平Vertical垂直2、将活动图导出成图片Edit->Export Image 阅读全文
posted @ 2013-06-01 09:55 BicycleBoy 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 首先在VS2010中创建一个cocos2dx项目,确保其能正常编译运行然后在HelloWorld头文件中申明重载虚方法:添加引用【#include "cocos2d.h"】和【USING_NS_CC;】,并在public中添加下列申明:virtual void registerWithTouchDispatcher();//注册触屏事件监听 virtual bool ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent);// 必须实现virtual void ccTouchMoved(CCTouch *pTouch, CCEvent 阅读全文
posted @ 2013-05-30 09:37 BicycleBoy 阅读(1638) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页