Couldn't someone using this library call it from within an Activity,
passing "this" to that code and using "this" create the activity at that
point when it's needed?

On Thu, Jan 10, 2013 at 1:19 PM, Mark Murphy <mmur...@commonsware.com>wrote:

> On Thu, Jan 10, 2013 at 4:12 PM, Monty Jain <montyj...@gmail.com> wrote:
> > Basically I want to develop a library which perform certain task which
> > involves running certain series of steps.
> > one of the steps can be involve starting an activity(UI to get input) and
> > use that data to finish that step.
> >
> > So is this bad design that a library starting an activity.. from android
> > perspective
> >
> > From scenario perspective we should be able to do that right?
>
> No, unless the library is defining an activity which the app using the
> library perhaps is subclassing, and then only if the library's
> activity is the one executing these "steps" and collecting data from
> the user via startActivityForResult().
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Aqui estão alguns sites onde você pode perguntar ou responder dúvidas
> sobre desenvolvimento de aplicações para Android:
> http://www.andglobe.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to