that's not what he meant Justin. He meant behavior, not look and feel. The idea is that the thread that calls the new activity will be on wait \sleep state until the new activity returns the resualt, ok or cancel. The questions is there an easy way to so this ? Thread.sleep() or mMyWaitObj.wait() will cause the android OS to try and kill the app since it's not responsive, which makes me thing that a small thread on the side should open the side activity and be it's listener and the main one should be in a while look of sleep on and off untill it's notified.
that's an ugly hack, i hope there's a better way to do it. On Mar 9, 11:31 pm, Justin Anderson <[email protected]> wrote: > You can set the activity theme to look like a dialog... > > ---------------------------------------------------------------------- > There are only 10 types of people in the world... > Those who know binary and those who don't. > ---------------------------------------------------------------------- > > On Tue, Mar 9, 2010 at 10:33 AM, valentin popa > <[email protected]>wrote: > > > Hi, > > I'm trying to start an activity, calling startActivityForResults(...) > > from a method which doesn't belong to the parent(the one who start the > > new one) activity, and make sure this method doesn't return a result > > before the child activity finish (providing the results). There is a > > simple way to transform this activity into modal one? or I have to > > rewrite the code puting all the views on a dialog? (I've tried with > > thread syncronization using wait() and notify() but no success). > > Thanks! > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Beginners" group. > > > NEW! Try asking and tagging your question on Stack Overflow at > >http://stackoverflow.com/questions/tagged/android > > > To unsubscribe from this group, send email to > > [email protected]<android-beginners%[email protected]> > > For more options, visit this group at > >http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

