- 博客(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关注的人