上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页
摘要: PART1:Make Android2.1 Support ActionBarLast evening I learnt how to make android2.1 support actionbar from Android Developers.The page is HERE,Click.To sum up , I briefy illustrate the main steps:1.Add thev7 appcompatlibrary , which is not just a jar file but a library with resources.2.Let the Activ 阅读全文
posted @ 2014-04-07 09:24 LarryLawrence 阅读(262) 评论(0) 推荐(0) 编辑
摘要: Just now when I imported the "android-support-v7-appcompat" to ADT,the console pointed out "Unable to resolve target 'android-16'".I double clicked the project.properties file, change the target = android-17attribute to target = android-19, android api level 19 is my ADT& 阅读全文
posted @ 2014-04-06 21:20 LarryLawrence 阅读(701) 评论(0) 推荐(0) 编辑
摘要: This blog was opened 5 months ago and it has 57 posts now,but the poor thing is by now no one has commented on any articles by now..How miserable and ... 阅读全文
posted @ 2014-04-05 15:40 LarryLawrence 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Recently I've been contemplating to create a new App with the true "Android Design",new Android Design does not mean Theme.holo(which was added it api level 14,android 4.0), and I found a website in which android design is carefully talked about thoroughly:Phonekr.com.Now look at the p 阅读全文
posted @ 2014-04-05 14:43 LarryLawrence 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 今天丹伟兄让我尝试一下RC4算法加密解密。之前AES解密出来各种「锟斤拷」我已接近崩溃。 这个RC4相比AES就轻量多了,不用导入各种类,连keygen的步骤也没有,只经过一系列可见的数学运算,而且加密解密用一套算法。轻车熟路地把代码弄过来,又出现了直接在内存中读取加密数据并且解密能够成功,但是先「落地」写到文件里再读取解密就不行的情况。 丹伟兄建议我用把内存中的东西弄出来跟读取的东西对比一下。 但是刚才遇到一个需要注意的地方: String line = null ; // String content = null ; String content ... 阅读全文
posted @ 2014-03-27 21:58 LarryLawrence 阅读(5527) 评论(0) 推荐(0) 编辑
摘要: 1.Unicode,ANSI在android中显示中文比较正常。UTF-8会乱码。2.Java中用OutputStreamWriter的Charset.forName()指定输出编码的时候,ASCII=ANSI,GBK=ANSI。意思是Charset.forName("ASCII")或者Charset.forName("GBK")在记事本中打开都会显示ANSI。 阅读全文
posted @ 2014-03-24 08:55 LarryLawrence 阅读(394) 评论(0) 推荐(0) 编辑
摘要: AES是对称加密算法,秘钥是相同的。这里参考了CSDN上的一篇文章(点击这里)。与之不同的是我需要先把加密后的密文保存成一个TXT文件,再读取并解密。按理说应该是很简单的但我却就被这个保存——读取的中间环节弄得晕头转向花费了大量时间。因为保存之后再读取解密的时候总是出现提示:Input length must be multiple of 16 when decrypting with padded cipher.解密时的输入长度必须是16(字节?比特?)的倍数。那篇文章的作者也提到了:「加密后的byte数组是不能强制转换成字符串的,换言之:字符串和byte数组在这种情况下不是互逆的;要避免这 阅读全文
posted @ 2014-03-23 22:02 LarryLawrence 阅读(3394) 评论(0) 推荐(0) 编辑
摘要: 设备管理器有个特点,你注册了之后如果不解除注册就会难以卸载带有设备管理器的应用,目前4.3版本仍未提示用户如何卸载,maybe later.在「设定-安全」你可以看见「设备管理器」,它提供一些高级功能,如下: 这个XML文件由你自己定义,这些权限写在这个文件里。你可以选择其中的权限。下面这个例子是,在打开的时候判断有没有注册设备管理器,没有注册则提示注册,否则Toast「已经注册」。1.MainActivity.java 1 package com.example.wannauninstall; 2 3 import an... 阅读全文
posted @ 2014-03-20 13:59 LarryLawrence 阅读(3120) 评论(0) 推荐(0) 编辑
摘要: 经过测试,intent-filter标签中的:1.代表这是程序的入口Activity。如果没有Activity有这个声明,程序将没有图标。2.引用API:Should be displayed in the top-level launcher.代表这个Activity的category是LAUNCHER类型。LAUNCHER类型的Activity会显示在程序列表中,如果没有Activity有这个声明,程序将没有图标,但在「已安装列表」中会有。3.原理类似,在2.3的系统上使用如下代码会使得用户在卸载程序列表中找到这个Activity的选项。 ... 阅读全文
posted @ 2014-03-19 16:33 LarryLawrence 阅读(4043) 评论(0) 推荐(0) 编辑
摘要: 以前在Windows中配置Java环境变量的时候初次遇到要配置环境变量,当时并不知道那是干什么用的,只知道配置了之后,在任何一个文件夹都可以使用"javac"命令来编译java文件。后来配置TOMCAT环境变量同样一知半解。 昨天用到了APKTOOL和Dex2Jar这两个工具,苛刻地要求在它们的根目录下启用CMD才能使用它们的命令。于是想到了环境变量。 经过「百度知道」(又是百度知道,我爱你。。)网友的帮助,我稍微摸索了一下。 比如「APKTOOL」这个工具,他的目录下有三个文件,分别是apktool.jar,apktool.bat和aapt.exe。没有去研究它们各自的用 阅读全文
posted @ 2014-03-11 13:36 LarryLawrence 阅读(538) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页