摘要: This book is about writing real-world applications for the Android platform primarily using the Python language and a little bit of JavaScript. While there is nothing wrong with Java, it really is overkill when all you need to do is turn on or off a handful of settings on your Android device. The Sc 阅读全文
posted @ 2014-01-07 15:56 shenjj 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 优化JS代码体积原代码如图:通过闭包的curry技术,优化后:function RegGenerator(reg){ return function(){ return this?reg.test(this):false; }}String.prototype.is_qq=RegGenerator(/^\d{5,15}$/ );"123".is_qq(); //false"123456".is_qq(); //true 阅读全文
posted @ 2014-01-07 11:59 shenjj 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 中文API:2011年更新的https://code.google.com/p/sl4a-chinese/wiki/ApiReference下载两本英文书:下步研究一下"Practical Android Projects"——讲了各种安卓的开发方法and "Pro Android Python with SL4A." ——好像涉及了GUI了。有空要翻译一部分供自己参考吧! 阅读全文
posted @ 2014-01-07 08:59 shenjj 阅读(185) 评论(0) 推荐(0) 编辑