DescriptionYour task is to calculate the sum of
some integers.InputInput contains an integer N in the first line, and then N
lines follow. Each line s...
分类:
其他好文 时间:
2014-05-23 06:41:47
阅读次数:
298
The translation from the Berland language into the Birland language is not an easy task. Those languages are very similar: a berlandish word differs from a birlandish word with the same meaning a litt...
分类:
其他好文 时间:
2014-05-23 02:27:26
阅读次数:
587
布局文件 activity_login.xml
<TextView
...
分类:
移动开发 时间:
2014-05-23 02:08:42
阅读次数:
392
package com.example.android_http;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler...
分类:
其他好文 时间:
2014-05-23 01:41:36
阅读次数:
253
该Demo运行后,会显示所有你sd卡上的音乐文件列表, 并可以点击列表选择某一首歌曲进行播放。
运行效果:
源代码:
activity_audio_browser.xml:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schema...
分类:
移动开发 时间:
2014-05-23 00:34:40
阅读次数:
410
Fragment
生命周期主要体现在以下表中13个方法里,以下是按照Fragment从开始到销毁的先后执行顺序排序。
序号
方法名称
描述
1
public void onInflate(Activity activity, AttributeSet attrs,Bundle
savedInstanceState)...
分类:
其他好文 时间:
2014-05-23 00:18:29
阅读次数:
485
#include "STC12C5A.H"
#define TIMER_RELOAD() {TL0=0x00;TH0=0xC4;}//使能T/C
初始10ms
#define MAX_TASKS 2 //任务槽最大个数.
unsigned char idata task_stack[MAX_TASKS][2];//任务堆栈. PC指针为16位,需2个字节task_st...
分类:
编程语言 时间:
2014-05-23 00:03:19
阅读次数:
341
Cancellation tokenParallel
optionsCancellationTokenSource cancellationTokenSource = new
CancellationTokenSource();Task.Factory.StartNew(() =>{ Thre...
分类:
Web程序 时间:
2014-05-22 16:43:14
阅读次数:
332
/* 播放录音文件 */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