来源:http://blog.sina.com.cn/s/blog_6de000c20102v3o0.html今天终于为我的Macbook Pro Retina搭建好了Android开发环境,几经折磨,差点放弃了:总结如下:1、最好选择ADT Bundle,这里面已经集成好了Eclipse、ADT、...
分类:
移动开发 时间:
2015-01-26 11:44:39
阅读次数:
201
网上又不少方法,均告失败,最终找到以下的方法:// 隐藏系统键盘 public void hideSoftInputMethod(EditText ed) { getWindow().setSoftInputMode( WindowManager.L...
分类:
移动开发 时间:
2015-01-24 20:04:52
阅读次数:
120
英文地址:http://developer.android.com/sdk/installing/migrate.html翻译:Android Studio 中文组(大锤译)如果你之前有用Eclipse做过安卓开发,现在想要把Eclipse中的项目导入到Android Studio的环境中,那么首先...
分类:
移动开发 时间:
2015-01-24 18:46:25
阅读次数:
125
在安卓开发的过程中 连接真机的时候 连接不上 提示The connection to adb is down, and a severe error has occured.[2015-01-22 21:38:42 - 品] You must restart adb and Eclipse.[201...
分类:
数据库 时间:
2015-01-22 23:02:53
阅读次数:
295
下载安装开发插件ADT
1. http://dl.google.com/android/ADT-22.3.0.zip
后面是对应版本就可以。可以根据自己需求下载
我用的是15.0.0 百度网盘下载链接:http://pan.baidu.com/s/1nt4zsut 密码:5o2d
2. 我使用的是eclipse luna/Kepler,Help→Install N...
分类:
移动开发 时间:
2015-01-21 22:34:08
阅读次数:
278
使在layout 中实现文字滚动效果 也就是走马灯的效果只需要在响应控件里面加上这几行代码就可以 android:singleLine="true" android:ellipsize="marquee" android:marqueeRepeatLimit="marquee_forever" an...
分类:
移动开发 时间:
2015-01-21 22:15:43
阅读次数:
231
android开发最常用例子整理----(1)自定义按钮实现
一、Activity
MainActivity.java源码:
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCre...
分类:
移动开发 时间:
2015-01-19 00:19:03
阅读次数:
190
(一)调用相机拍照保存至指定文件夹,intent.putExtra(file)可将拍到的照片直接保存到文件夹 但此方法不可用于拍摄视频,同样的在摄像时,如果传入路径的话,会出现画面卡死不动,而同时在传入的路径下面会有一个为空的文件,文件名是对的,但没有数据,而在回调函数onActivityRe...
分类:
移动开发 时间:
2015-01-15 21:50:40
阅读次数:
230
1.点击File->New->Project2.选择Android->Android Application Project,建立新的安卓应用工程3.Application Name : 应用名称;Project Name : eclipse 里的工程名称;Package Name : 存储代码的包...
分类:
移动开发 时间:
2015-01-14 00:38:30
阅读次数:
351
安卓开发关于手机手机联系人:添加联系人,删除联系人,查找联系人等,,在网上找了一些资料,如下:public class Lianxiren { Context context; public Lianxiren(Context context){ this.context = context; }....
分类:
移动开发 时间:
2015-01-12 14:33:38
阅读次数:
201