自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

转载 android 网络协议

android各种网络协议,mark一下下次不用再翻以前的工程 Soap协议 [java] view plaincopy public static Doctor doctorLogin(String loginName, String password, String terminal) throws AppException {  

2015-02-27 22:07:00 592

原创 Android 判断app是否在前台还是在后台运行

Android 判断app是否在前台还是在后台运行,直接看代码,可直接使用。 public static boolean isBackground(Context context) { ActivityManager activityManager = (ActivityManager) context .getSystemService(Context.ACTIVITY_SERVI

2015-02-14 16:59:03 4931 1

转载 android设置Activity背景色为透明的3种方

方法一:这种方法比较简单,只有一个步骤,只需要在配置文件中把需要设置为透明的activity的样式设置为 android:theme="@android:style/Theme.Translucent" 即可,这种方式只改变背景的颜色,对其他控件没有影响。但是它只能把背景设置为完全透明。如果要设置为半透明或者要设置透明的程度无法实现。 方法二:这种方法也比较简单,只需

2015-02-10 16:25:49 4292

转载 去掉android的屏幕上的titlebar

在进行android开发时,每个Activity会默认带上一个title bar用以显示程序名,有时为了扩大屏幕的显示区域需要去掉这个titlebar,去掉屏幕上的title bar有3个方法, 第一个方法是在代码去掉title bar 在Activity的onCreate中加入如下代码: [java] view plaincopy

2015-02-10 16:21:18 624

转载 Caused by: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity

很多人使用startActivity时候,会碰到如下异常: Caused by: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really wha

2015-02-10 11:45:53 535

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除