上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
摘要: KILL问题:1. settings 中stop serviceonDestroy方法中,调用startService进行Service的重启。2.settings中force stop 应用捕捉系统进行广播(action为android.intent.action.PACKAGE_RESTARTE... 阅读全文
posted @ 2013-07-05 15:49 纯洁的坏蛋 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 百度地图 混淆代码 -keep class com.baidu.mapapi.** {*; }-keep class com.baidu.platform.** {*; }-keep class com.baidu.location.** {*; }-keep class com.baidu.vi... 阅读全文
posted @ 2013-06-18 15:14 纯洁的坏蛋 阅读(979) 评论(0) 推荐(0) 编辑
摘要: Android中有时需动态设置控件四周的drawble图片,这个时候就需要调用 setCompoundDrawables(left, top, right, bottom),四个参数类型都是drawableButton继承TextView,所以可以采用相同的设置方法方法一.XML方式方法二.JAVA... 阅读全文
posted @ 2013-06-01 11:08 纯洁的坏蛋 阅读(441) 评论(0) 推荐(0) 编辑
摘要: public class TestHashMap { final String a = "100"; public static void main(String[] args) { TestHashMap testHashMap = new TestHashMap(); int[] res =... 阅读全文
posted @ 2013-05-30 12:20 纯洁的坏蛋 阅读(105) 评论(0) 推荐(0) 编辑
摘要: #include int mylen(char *str);int main(){ char *str = "haha"; printf("len = %d", mylen(str)); return 0;}int mylen(char *str){ if(str == NULL) return 0... 阅读全文
posted @ 2013-05-29 12:18 纯洁的坏蛋 阅读(522) 评论(0) 推荐(0) 编辑
摘要: WebSettings settings = wv_content.getSettings(); DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(... 阅读全文
posted @ 2013-05-27 10:38 纯洁的坏蛋 阅读(179) 评论(0) 推荐(0) 编辑
摘要: package com.cqupt.util;import java.util.LinkedList;import java.util.List;import android.app.Activity;import android.app.Application;public class ExitA... 阅读全文
posted @ 2013-05-19 01:47 纯洁的坏蛋 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 只要在Setting->KeyMap 右边最上面有个地方直接设置 阅读全文
posted @ 2013-05-17 13:08 纯洁的坏蛋 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 在官网下载:http://developer.android.com/sdk/installing/studio.html然后安装 直接下一步 下一步就OK啦安装完后发现打不开?嘿嘿 要设置jdk环境变量JDK_HOME 阅读全文
posted @ 2013-05-16 12:12 纯洁的坏蛋 阅读(192) 评论(0) 推荐(0) 编辑
摘要: Intent i = new Intent(Intent.ACTION_VIEW); //apk String str = "/sdcard/FileTest.apk"; i.setDataAndType(Uri.parse("file://" + str), "application/vn... 阅读全文
posted @ 2013-05-14 16:17 纯洁的坏蛋 阅读(180) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页