上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 47 下一页
摘要: 本文转自:http://www.chenwg.com/android/maven%E7%AE%A1%E7%90%86android%E9%A1%B9%E7%9B%AE.html现在很多Android项目都使用Maven管理了,看看github上都有不少源码是用Maven管理的,很多公司的项目也都是用Maven,可以说现在使用Maven来管理项目是非常流行的,如何在eclipse IDE下使用Maven管理Android项目呢?1.首先要安装插件,在eclipse的market里搜索”android m2e”,然后安装即可;2.安装完后,就可以创建一个Maven项目了,如下:输入de.akqui 阅读全文
posted @ 2013-05-16 17:38 似水流云 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 本文转自http://www.chenwg.com/android/actionbarsherlock%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B.html注:目前自己将ActionBarSherlock和所要添加的应用放到同一目录下Android3.0开始就提供了ActionBar,这让Android的用户体验强了好多,但是这个ActionBar在Android3.0以下是不支持的,谷歌也没推出什么解决方案,不过呢,没有什么是实现不了的,有github上有牛人放出了开源的ActionBarSherlock,可以在Android2.x上实现ActionBar,如果你 阅读全文
posted @ 2013-05-16 16:15 似水流云 阅读(1830) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://blog.csdn.net/fireofstar/article/details/7567189语法(SYNTAX):<meta-dataandroid:name="string" android:resource="resource specification" android:value="string"/>被包含于(CONTAINED IN):<activity><activity-alias><service><receiver>说明(DESCR 阅读全文
posted @ 2013-05-15 15:24 似水流云 阅读(625) 评论(0) 推荐(0) 编辑
摘要: 根据手机设备的IMEI、设备序列号、MAC地址经过MD5加密,得到手机专有的序号;import android.content.Context;import android.net.wifi.WifiInfo;import android.net.wifi.WifiManager;import android.os.Build;import android.telephony.TelephonyManager;import java.lang.reflect.InvocationTargetException;import java.lang.reflect.Method;import jav 阅读全文
posted @ 2013-05-15 14:40 似水流云 阅读(6216) 评论(0) 推荐(0) 编辑
摘要: 本文转载自:http://xiangqianppp-163-com.iteye.com/blog/1473540ImageView的属性android:scaleTypeImageView的属性android:scaleType,即 ImageView.setScaleType(ImageView.... 阅读全文
posted @ 2013-05-15 09:51 似水流云 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 不确实描述是否有误,只是觉得格式舒服public final class TableContanst { public static final String STUDENT_TABLE = "student"; public static final class StudentColumns { public static final String ID = "_id"; public static final String NAME = "name"; public static final String AGE = " 阅读全文
posted @ 2013-05-14 17:00 似水流云 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 我们写程序的时候经常要全屏显示或者不显示标题。比如我们做地图导航的时候就不要标题了,下面介绍三种方法来实现Android 去掉标题第一种:也一般入门的时候经常使用的一种方法在setContentView()方法的前面插入代码:requestWindowFeature(Window.FEATURE_NO_TITLE);//去掉标题栏第二种:在AndroidManifest.xml文件中定义去掉整个应用的标题栏:不过有时候不需要去掉整个程序的应用,只想去掉一个的时候就在Activity中。第三种:在res/values目录下面新建一个style.xml的文件这种方法是有经验的开发者最喜欢的方法,因 阅读全文
posted @ 2013-05-13 18:50 似水流云 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 本文转载自:http://blog.sina.com.cn/s/blog_4e345ce70100v8ut.html在AndroidMenifest.xml中,常常会有下面的语句:<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="10" android:maxSdkVersion="10" /> 在default.properties中,会看到下面的语句:target=android-10 如果是使用Eclipse的话,还可能会看到这样的警告: At 阅读全文
posted @ 2013-05-09 17:13 似水流云 阅读(240) 评论(0) 推荐(0) 编辑
摘要: public class CustomToast{ Context mContext; Toast mToast; public CustomToast(Context paramContext) { this.mContext = paramContext; this.mToast = Toast.makeText(paramContext, "", 0); } public void cancel() { this.mToast.cancel(); } public void show(int paramInt1, int paramInt2) { ... 阅读全文
posted @ 2013-05-08 17:54 似水流云 阅读(272) 评论(0) 推荐(0) 编辑
摘要: public class CustomLog{ public static final String LOGTAG = "有信"; public static boolean SHOW_LOG = true; public static void d(String paramString) { if (!SHOW_LOG) return; Log.d("有信", paramString); } public static void d(String paramString1, String paramString2) { if (!SHOW_LOG) . 阅读全文
posted @ 2013-05-08 15:46 似水流云 阅读(222) 评论(0) 推荐(0) 编辑
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 47 下一页