摘要:
如何进行Android单元测试 Menifest.xml中加入:中加入:外面加入:编写单元测试代码:必须继承自AndroidTestCase类package name.feisky.android.test; import android.test.AndroidTestCase;import junit.framework.Assert; public class MyTest extends AndroidTestCase {private static final String Tag="MyTest"; public void testSave() throws T 阅读全文
posted @ 2013-08-23 11:22
wanghongwin
阅读(1497)
评论(0)
推荐(0)
摘要:
1 2 3 这个是App判断是pad还是手机的代码: 4 5 6 public boolean isTabletDevice() { 7 TelephonyManager telephony = (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE); 8 int type = telephony.getPhoneType(); 9 if (type == TelephonyManager.PHONE... 阅读全文
posted @ 2013-08-23 10:30
wanghongwin
阅读(276)
评论(0)
推荐(0)
浙公网安备 33010602011771号