On Mon, Apr 25, 2016 at 7:42 PM, Dante Zhang <[email protected]> wrote:
> But for my library I only have Context, so how could I request permissions > in this case? > Change your library API to require passing an Activity / Fragment? > I want my library to ask for permissions by itself, but not the other > coders to request permissions instead of me. > Why? If an app needs permissions from the user, even if it's to pass them along to a library they're using, the onus is on the app developer to request and explain this need in the context of their app, is it not? ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/CANCScgh4P3_%3DiUg47ysuG5S1H4KQqS2TGMw-Wi7jX_rx-WF1KA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

