startActivivityForResult and onResult From a view

by TreKing » Tue, 20 Jul 2010 09:20:32 GMT

Sponsored Links

Based on the posted code, I'm guessing he has a custom view which he's
getting his context (activity) from and calling startActivityForResult from.

No, nor should you be calling startActivity from a View, you should be
calling it from the parent activity of that view and handling the result
there as well. If your view is what cares about the result, delegate the
result to the view from the activity (which should know about the View).

TreKing <> ; - Chicago
transit tracking app for Android-powered devices


Other Threads

1. Android market ilang

To suhu suhu and all
Setelah di root dan di restart x8 android marketnya hilang?
Gimana cara nya bier bisa ada lagi ya.

Terima kasih
Maaf bila tidak berkenan
Powered by robot hijo
devil like angel


2. Ndak bisa reboot recovery

Juragan semua, boss n biss...
Mohon sedikit pencerahan, saya pakai clockworkmod dan cyanogen 6.1.3
di desire hd. Kenapa tidak bisa reboot ke recovery clockwork ya? Selalu
stuck di layar htc saja, baik via rom manager maupun via reboot tombol power
juga pake kombinasi power dan volume down, kenapa ya kira2 gan? Terimakasih


3. GMail App bundle data

4. Is AlarmManager to be caused a serious security hole?

5. Is it possible to upload?

6. How to Launch Tab activity by using Intent

7. Count of activities in App's stack