Android Hello World
来源:互联网 发布:软件开发行业利润率 编辑:程序博客网 时间:2024/05/21 06:36
布局文件
<EditText android:id="@+id/factorOne"android:layout_width="fill_parent" android:layout_height="wrap_content" />
id 控件的ID ,在ACTIVITY 中可以通过R.id.myid得到控件
textView = (TextView)findViewById(R.id.myResultTextView);
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.result); textView = (TextView)findViewById(R.id.myResultTextView); Intent intent = getIntent(); String a =intent.getStringExtra("f1"); String b =intent.getStringExtra("f2"); Long result = Long.valueOf(a)*Long.valueOf(b); textView.setText(String.valueOf(result)); }
setContentView(R.layout.result); 制定该ACTIVITY要使用的布局文件
- 10.2 Hello World! Hello Android!
- Android的Hello World
- android入门--hello world
- android之Hello World!
- android--hello world
- Android Hello World
- Android之Hello World
- android--Hello,World教程
- Android Hello World
- Android入门-Hello World
- Hello Android World!
- Android hello world
- android ndk hello,world!
- phonegap android hello world
- android hello world
- android的Hello world
- Android Hello World
- android: hello world
- batis 错误 Mapped Statements collection does not contain value for
- 设置YUM源
- java.io 递归拷贝
- 第五项修炼--学习型组织的艺术与实践
- JTextPane学习总结
- Android Hello World
- 算法学习 - Hash Table (Separate Chaining)
- 什么是常量?
- 整理的微软面试题
- SqlParameter 学习笔记
- java 回调机制示例
- Windows 用来定位 DLL 的搜索路径
- Linux下c开发 之 线程通信(转)
- hdu 2899