上一页 1 2 3 4 5 6 ··· 14 下一页
摘要: 正常退出System.exit(0);暴力退出Process.killProcess(Process.myPid()); 阅读全文
posted @ 2015-04-16 15:39 小菜希 阅读(180) 评论(0) 推荐(0) 编辑
摘要: public class ZhengZe { public static void main(String[] args) { String b = "postData{1,2,3}"; System.out.println(b+"\t"+b.length()); ... 阅读全文
posted @ 2015-04-16 14:29 小菜希 阅读(4256) 评论(0) 推荐(0) 编辑
摘要: 配置清单文件加上权限private String getLocalIpAddress() { int paramInt = ((WifiManager) getSystemService("wifi")).getConnectionInfo().getIpAddress(); ... 阅读全文
posted @ 2015-04-16 08:37 小菜希 阅读(1903) 评论(0) 推荐(0) 编辑
摘要: class MyView extends View { float phase; PathEffect[] effects = new PathEffect[7]; int[] colors; private Paint paint; Path path; pub... 阅读全文
posted @ 2015-04-15 20:35 小菜希 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 懒得打字/** * 发送post请求传递Json */ public void jieXi() { new Thread(new Runnable() { public void run() { // Json中... 阅读全文
posted @ 2015-04-15 17:37 小菜希 阅读(4020) 评论(0) 推荐(0) 编辑
摘要: 懒得打字了,直接把这个类的代码贴上来public class MainActivity extends Activity { private TextView tv_shuju; private ListView listView; private ArrayAdapter ada... 阅读全文
posted @ 2015-04-15 17:31 小菜希 阅读(1502) 评论(0) 推荐(0) 编辑
摘要: private void saveFullImage(String str) { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); // 文件夹aaaa File path1 =... 阅读全文
posted @ 2015-04-15 17:28 小菜希 阅读(659) 评论(0) 推荐(0) 编辑
摘要: 服务类,一定要在清单文件中注册public class lightService extends Service { private boolean ifrun = false; @Override public IBinder onBind(Intent intent) { ... 阅读全文
posted @ 2015-04-15 16:58 小菜希 阅读(1274) 评论(0) 推荐(0) 编辑
摘要: // 判断sd卡是否存在 boolean sdCardExist = Environment.getExternalStorageState().equals( android.os.Environment.MEDIA_MOUNTED); /... 阅读全文
posted @ 2015-04-14 13:54 小菜希 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 1 public class OneJsonActivity extends Activity { 2 3 String JsonData = "[{\"id\":[\"386\",\"381\",\"379\",\"377\"],\"num\":[\"386\",\"381\",\"3... 阅读全文
posted @ 2015-04-14 09:42 小菜希 阅读(284) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 14 下一页