How To Return A Result (startactivityforresult) From A Activity To Tabhost Activity?
my Class A calls a startActivityForResult: class A is activitygroup in the one tab of tabactivity Intent intent = new Intent(this, ClassB.class); startActivityForResult(intent, 'ST
Solution 1:
Try using broadcast receivers. You can override onStop() in activity B, broadcast an event from activity B and listen in activity A.
Solution 2:
Don't know if it is a the best method but currently I use a class that I call memory to pass objects between the activities.
publicclassMemory {
publicstaticObjectobjectToPass=null;
}
Solution 3:
I can't found problem exactly without source code, but it could be one of next situation
1) Root activity for tabhost doesn't receive onActivityResult. Then you should call overriden onActivityResult in Activity inside TabHost
2) Another situation: Activity inside tabhost doesn't receive onActivityResult. Only focused activity will receive any actions inside ActivityGroup. You should place focus to some view inside it, then you will receive actions.
Post a Comment for "How To Return A Result (startactivityforresult) From A Activity To Tabhost Activity?"