title: Is it possible to ask for runtime permissions from a library?
body: <p>We make some libraries that clients implement in their apps and now we are looking to update them to support Android 6.0 new permissions model.</p>
  
  <p>My question is if there is any way to request dangerous permissions in runtime from our libraries (mostly static classes) instead of asking the client to request those permissions prior to using our libraries.</p>
  
  <p>I have been messing with it but it just seems not possible for me, looks like it has to be made from an Activity which we do not have.</p>
  
  <p>Am I right or is there any way to do it?</p>
  
  <p>Thanks in advance.</p>