I believe the API for this is system-only. This is not something apps generally do.
On Tue, Mar 22, 2016 at 11:58 AM, Sagar Agrawal <[email protected]> wrote: > I am building a universal security app so I want to enable mobile from > inside my activity is their a proper way to do so as user interaction will > not be possible for manual activiation. > > -- > 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/234529a4-8ec7-4eb3-9bd2-a631b7e16c31%40googlegroups.com > <https://groups.google.com/d/msgid/android-developers/234529a4-8ec7-4eb3-9bd2-a631b7e16c31%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CABrF01Dh9DAkA6oP%2BbUFtj12A9SdwJur5SDW9LK1B1D6Wzm9zw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

