摘要: 默认情况下无法通用因为默认的填充方式不同。做以下处理能够到达一致:android:Cipher cipher = Cipher.getInstance("RSA/None/NoPadding");sun java:Cipher cipher = Cipher.getInstance("RSA", ... 阅读全文
posted @ 2014-09-25 20:44 z.cejay 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 1、下载adt-bundle-linux-x86-201407022、下载android-ndk-r103、路径如下:/opt/adt-bundle-linux-x86-20140702/opt/adt-bundle-linux-x86-20140702/sdk/opt/adt-bundle-lin... 阅读全文
posted @ 2014-08-31 17:25 z.cejay 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.ArrayList; 2 import java.util.List; 3 4 import android.content.Context; 5 import android.telephony.TelephonyManager; 6 import android.widget.Toast; 7 8 public class getImei { 9 Context context = null; 10 11 public getImei(Context _context) { 12 context... 阅读全文
posted @ 2014-02-25 12:03 z.cejay 阅读(2996) 评论(1) 推荐(0) 编辑
摘要: 同步://创建多层文件夹 同步function mkdirsSync(dirpath, mode) { if (!fs.existsSync(dirpath)) { var pathtmp; dirpath.split(path.sep).forEach(function(dirname) { if (pathtmp) { pathtmp = path.join(pathtmp, dirname); } else { pathtmp ... 阅读全文
posted @ 2014-02-20 10:53 z.cejay 阅读(1190) 评论(2) 推荐(1) 编辑