先来说一说HTTP的异常处理问题。当urlopen不能够处理一个response时,产生urlError。不过通常的Python
APIs异常如ValueError,TypeError等也会同时产生。HTTPError是urlError的子类,通常在特定HTTP
URLs中产生。1.URLError...
分类:
编程语言 时间:
2014-05-26 23:17:09
阅读次数:
341
Intent inten = new Intent(
Intent.ACTION_PICK,MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
startActivityForResult(inte...
分类:
移动开发 时间:
2014-05-26 22:50:19
阅读次数:
369
这题目确实比较杀脑细胞...原题:1 (let* ((yin2 ((lambda (cc)
(display "@") cc) (call-with-current-continuation (lambda (c) c))))3 (yang4
((l...
分类:
其他好文 时间:
2014-05-26 12:13:09
阅读次数:
424
1、Intent intent = new
Intent(Intent.ACTION_GET_CONTENT); intent.setType("image/*");
intent.putExtra("crop", true); in...
分类:
其他好文 时间:
2014-05-26 12:00:15
阅读次数:
230
1、申请权限:2、创建意图(Intent):Intentintent=newIntent();intent.setAction("android.intent.action.CALL");//操作系统会自动为Intent注册类别:android.intent.category.DEFAULT//i....
分类:
移动开发 时间:
2014-05-23 07:07:45
阅读次数:
282
Intent 是一个消息对象,你可以用它向另一个 app 组件发生动作请求。尽管 Intent 在促进组件间沟通的方式有多种,主要有个以下三种基本方式:...
分类:
其他好文 时间:
2014-05-22 23:01:27
阅读次数:
286
1.打电话 可以自己写界面,在button的单击事件中添加如下代码即可: Intent intent
= new Intent(); intent.setAction("android.intent.action.CALL");
intent.setData(Uri.parse("tel:"+ .....
分类:
移动开发 时间:
2014-05-22 16:41:15
阅读次数:
473
/* 播放录音文件 */private void playMusic(File
file){Intent intent = new
Intent();intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);intent.setAction(android.con...
分类:
其他好文 时间:
2014-05-22 15:18:27
阅读次数:
269
package com.ting.textcover;import
java.io.File;import android.app.Activity;import android.content.Intent;import
android.graphics.Bitmap;import android...
分类:
其他好文 时间:
2014-05-22 14:30:14
阅读次数:
321
Django的基础知识,包含urls,view和form。已经model的建立。实际的代码案例...
分类:
编程语言 时间:
2014-05-21 15:08:40
阅读次数:
321