摘要: SQLite数据库进行CRUD的时候,用到了ContentValues类,负责存储名值对,名都是String类型,值都是基本类型。例子:1 ContentValues values=new ContentValues();2 values.put("name","Jerome");3 values.... 阅读全文
posted @ 2015-06-10 15:33 熠然 阅读(1493) 评论(0) 推荐(0)
摘要: 1.向下一个activity传递数据activity1 1 Button button=(Button) findViewById(R.id.button1); 2 button.setOnClickListener(new OnClickListener() { 3... 阅读全文
posted @ 2015-06-06 22:48 熠然 阅读(2069) 评论(0) 推荐(0)
摘要: android.content.ActivityNotFoundException: No Activity found to handle Intent做Android开发中,使用隐式intent,Manifest中设置了action和category,如下: ... 阅读全文
posted @ 2015-06-06 22:37 熠然 阅读(20474) 评论(0) 推荐(0)
摘要: 今天学习service,然后遇到了一个force close,log中存在这个一句话:05-23 14:13:26.408: E/AndroidRuntime(17616): android.content.ActivityNotFoundException: Unable to find expl... 阅读全文
posted @ 2015-05-23 14:43 熠然 阅读(398) 评论(0) 推荐(0)
摘要: 学习android的过程中,尝试新功能,结果出现了这个一个error:05-21 15:38:52.745: E/AndroidRuntime(17608): java.lang.RuntimeException: Unable to start activity ComponentInfo{com... 阅读全文
posted @ 2015-05-21 16:00 熠然 阅读(1686) 评论(0) 推荐(0)
摘要: Android开发EditText属性 EditText 官网链接 EditText继承关系:View-->TextView-->EditText EditText 部分属性: XML 设置 android:hint="请输入数字!" //设置显示在空间上的提示信息 android:singleLi 阅读全文
posted @ 2015-05-19 10:26 熠然 阅读(458) 评论(0) 推荐(0)
摘要: java.util.Scanner类,这是一个用于扫描输入文本的新的实用程序 阅读全文
posted @ 2015-05-07 17:05 熠然 阅读(165) 评论(0) 推荐(0)
摘要: public class Test { public static void main(String[] args) { // 1、左移( > ) 高位补符号位 // 0000 0000 0000 0000 0000 0000 0000 0101 然后右移2位,高位... 阅读全文
posted @ 2015-05-07 11:38 熠然 阅读(373) 评论(0) 推荐(0)
摘要: urllib和urllib2都是处理url请求的两个模块,但是相互之间存在不同,不能相互取代urllib2可以接受一个Reuqest类的实例来设置URL请求的headers,urllib仅可以接受URL。意味着urllib不可以伪装你的user_agent等urllib提供urlencode方法用来... 阅读全文
posted @ 2015-04-28 11:09 熠然 阅读(207) 评论(0) 推荐(0)
摘要: Scrapy,一个网络爬虫的框架,首先第一步肯定是安装。参考网上的文章。安装过程中需要用到pip工具,请自行安装。1.安装python这个是必须的,既然都用到scrapy了,肯定已经安装了python,这个略过。2.安装pywin32下载地址:http://sourceforge.net/proje... 阅读全文
posted @ 2015-04-24 23:08 熠然 阅读(2046) 评论(0) 推荐(0)