0

意图问题

这是我的问题:假设我有 3 个活动 A、B 和 C。

我在 A 的拳头,调用 startActivity*ForResult*(..) 跳转到 B。但我希望当 B 返回时,将启动 C 而不是 A。

有可能吗?我该怎么做?

实际上,int A,我调用 startActivity*ForResult*() 来启动 Camera Activity 拍照,并将数据返回给 C。

谢谢你的回答!

A extends Activity{
   startActivity();//jump to B
}
B extends Activity{
   takePhoto();//this is a camera program of android system for taking photos
}
C extends Activity{
   getIntent();//i wish photo data would delivered here.
}
4

1 回答 1

0

我想你可以这样做:

A extends Activity{
  startActivity();//jump to C
}
B extends Activity{
  takePhoto();//this is a camera program of android system for taking photos
}
C extends Activity{
  onCreate() {
    startActivity(); // jump to B
  }
  startactivityforresult() {
    getIntent();//i wish photo data would delivered here.
  }
}
于 2012-10-17T08:24:55.457 回答