自定义博客皮肤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)
  • 问答 (8)
  • 收藏
  • 关注

转载 NoClassDefFoundError when Espresso Tests are run

I've solved this problem adding to gradle the following code: configurations { androidTestCompile.exclude group: 'com.android.support', module: 'support-v4' } 0down vote

2016-01-28 16:25:00 332

转载 Data Binding & Espresso: IllegalAccessError: Class ref in pre-verified class resolved to unexpected

You can turn off class verification using following commands: adb shell setprop dalvik.vm.dexopt-flags v=n,o=v adb shell stop installd adb shell start installd It works on an emulator, I do not have

2016-01-28 16:10:52 573

翻译 Resolving conflicts between main and test APK

When instrumentation tests are run, both the main APK and test APK share the same classpath. Gradle build will fail if the main APK and the test APK use the same library (e.g. Guava) but in different

2016-01-27 10:05:59 575

原创 Android客户端中权限的控制

在客户端产品中有一个常见的场景,游客身份可以浏览,当进入需要登录的界面A时,弹出登录框,用户输入用户名密码,客户端跳进界面A。 简单的实现方案是,在点击按钮上实现当前用户身份的判断,如果用户未登录时,跳到登录界面,否则进入目标界面。 但是当越来越多的界面都需要做验证时,这种方案就变得很难维护。 怎样通过不侵入当前代码的方式实现身份的过滤呢? 首先,既然是基础功能,肯定要在B

2016-01-21 13:36:51 492

转载 Https工具类

import java.io.IOException; import java.security.cert.CertificateException; import java.security.cert.X509Certificate; import java.util.HashMap; import java.util.Map; import javax.net.ssl.SSLContext;

2016-01-06 21:01:34 569

空空如也

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

TA关注的人

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