摘要:
第一个activity 1 package good.go; 2 3 import android.app.Activity; 4 import android.content.Intent; 5 import android.os.Bundle; 6 import android.view.View; 7 import android.widget.Button; 8 import android.widget.Toast; 9 10 public class TestProcActivity extends Activity {11 /** Called when the act... 阅读全文
posted @ 2012-06-27 13:54
熊猫基地
阅读(205)
评论(0)
推荐(0)
摘要:
思想:普通intent直接启动一个activity, 调用startActivity方法然后 startActivityForResult这个方法会在调用完毕之后从后启动的activity中返回 一些结果给调用者,当然这个传递就得通过Intent的extra来传递了。下面对着具体的参数来看。活动A中:Intent intent = new Intent();intent.setClass(this, B.calss);//这里还可以添加要传递给B的数据//比较小的数据直接传数据类型//比较多的话可以用bundle类来传递startActivityForResult(intent, 10); / 阅读全文
posted @ 2012-06-27 12:53
熊猫基地
阅读(280)
评论(0)
推荐(0)