Enable built-in alarm and installed application settings for Android

Source: Internet
Author: User

Enable the built-in alarm:

Intent intent = new intent ();

Intent. setaction ("android. Intent. Action. set_alarm ");

Startactivity (intent );

 

Enable all programs:

Startactivity (new intent ("android. provider. settings. action_manage_all_application_settings "));

 

Enable the details of a specified program:

// Obtain all packagename

Packagemanager PM = getpackagemanager ();

List <packageinfo> packanames = PM. getinstalledpackage (packagemanager. get_activities );

For (INT I = 0; I <packanames. Size (); I ++ ){
String packagename = packanames. Get (I). packagename;
}

// Here, packagename is the packagename above, which specifies the name of the activity package. Of course, because not all of them are specified, we recommend that you select the specified method.

Intent intent = new intent ("android. provider. settings. action_application_details_settings, Uri. parse (" package: "+ packagename )");

Startactivity (intent );

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.