白小绿

班级

TA还未加入任何班级

在教课程

3万+浏览/ 204学员/ 5评分

笔记

来自Android开发视频教程5(2)

一个Intent对象包含了一组信息:Component nameActionDataCatagoryExtras----都是键值对Flags 可以启动另一个Activiy:Activity02.this.startActivity(intent);视频中有句代码应改为class MyButtonListener implements android.view.View.OnClickListener{}activity02.java中的代码应该为package bxl.activity_02;import android.os.Bundle;import android.app.Activity;import android.content.Intent;import android.view.View;import android.widget.Button;public class Activity02 extends Activity { private Button myButton = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_activity02); myButton = (Button)findViewById(R.id.myButton); myButton.setText(R.string.app_name);myButton.setOnClickListener(new MyButtonListener()); } class MyButtonListener implements android.view.View.OnClickListener{@Overridepublic void onClick(View v) { // TODO Auto-generated method stub //生成一个Intent对象 Intent intent = new Intent(); intent.setClass(Activity02.this, OtherActivity.class);Activity02.this.startActivity(intent); } }} Intent可以调用不同应用程序中的Activity发短信:Uri uri=Uri.parse("smsto://18086241796"); Intent intent=new Intent(Intent.ACTION_SENDTO,uri); intent.putExtra("sms_body", "The SMS text"); startActivity(intent); 

来自诺曼人入侵(1)

The History of English in Ten Minuteschapter 2 The Norman Conquest or excuse my English1066 True to his name, William the Conqueror invades Britain, bringing new concepts from across the channel like the French language, the Doomsday book and the duty free Galois's multipack.French was de rigeur for all official business, with words like 'judge', 'jury', 'evidence' and 'justice' coming in and giving John Grisham's career a kick-start. Latin was still used ad nauseam in Church, and the common man spoke English able to communicate only by speaking more slowly and loudly until the others understood him. Words like 'cow', 'sheep' and 'swine' come from the English-speaking farmers, while the a la carte versions - 'beef', 'mutton' and 'pork' come from the French-speaking toffs beginning a long running trend for restaurants having completely indecipherable menus.All in all, the English have enrolled about 10,000 new words from the Norman. But they still couldn't draft the Lord with...The bonhomie all ended when the English nation took their new warlike lingo of 'armies', 'navies' and 'soldiers' and began the Hundred Years War against France. It actually lasted 116 years, but by the point on one could count any higher in French and English took over as the language of power.

来自莎士比亚(1)

chapter 3 Shakespeare or a plaque on both his housesAs the dictionary tell us, about 2000 new words and phrases were invented by Shakespeare. He gave us handy words like 'eyeball', 'puppy-dog' and 'anchovy' and more show-offy words like 'dauntless', 'besmirch' and 'lacklustre'. He came up with the word 'alligator' soon after he ran out of things to rhyme with 'crocodile'.And a nation of tea-drinkers finally took him to their hearts when he invented the 'hobnob'. Shakespeare knew the power of catchphrases as well as biscuits. Without him we would never eat our 'flesh and blood' 'out of house and home' we'd have to say 'good riddance' to 'the green-eyed monster' and 'breaking the ice' would be 'as dead as a doornail'.If you tried to get your 'money''s worth' you'd be given 'short shrift' and anyone who 'laid it on with a 'trowel' could be 'hoist with his own petard'. Of course it's possible other people used these words first, but the dictionary writers liked looking them up in Shakespeare because there was more cross-dressing and people poking each other's eyes out.Shakespeare's poetry showed the world that English was a language as rich vibrant  language with limitless expressive and emotional power. And he still had time to open all those tearooms in Stratford.

来自Java4Android 41 Java中类集框架-1(1)

类集框架是一组类和接口,位于java.util包中,主要用于存储和管理对象,主要分为集合、列表和映射三大类。集合(Set):对象不按特定方式排序且没有重复对象列表(List):对象按照索引位置排序,可以有重复对象映射(Map):每个元素包含一个键对象和一个值对象,键不可以重复,值可以重复 

留言

功能维护升级中,维护完成完后将再次开放,非常抱歉给您学习造成的不便。