1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Donation with Paypal!!!

    Go to your paypal account and send directly donation to [email protected]

    1 month - 10 $ - Standart VIP

    6 months - 20 $- Standart VIP

    1 year - 30 $- Standart VIP

    2 years - 50 $- Standart VIP

    Gold member for life - 150 $- Standart VIP

    High Vip (Standart VIP include) group please send PM or email to [email protected] for info

    After Donation please send email to [email protected]

  3. Donation Ways 2020


    Paysend
  4. Telegram

  5. Delphifan Magazine
Dismiss Notice

Donation with Paypal!!!

Go to your paypal account and send directly donation to [email protected]

1 month - 10 $ - Standart VIP

6 months - 20 $- Standart VIP

1 year - 30 $- Standart VIP

2 years - 50 $- Standart VIP

Gold member for life - 150 $- Standart VIP

High Vip (Standart VIP include) group please send PM or email to [email protected] for info

After Donation please send email to [email protected]

Dismiss Notice
For open hidden message no need write thanks, thank etc. Enough is click to like button on right side of thread.

How to start a specific Activity

Discussion in 'Delphi Android And IOS' started by AdminDF, Aug 26, 2014.

  1. AdminDF
    Online

    AdminDFAdminDF is a Verified Member Delphifan Staff Member DF Staff

    Hi developer!
    In this article I will show you how to start a specific Activity by specific name or package.
    For this, I used Explicit Intent and Extras.
    An Explicit Intent is an intent that specify the class to load.
    By the PackageManager I have retrieved Intent for a specific package:


    Code:
    Intent LaunchIntent = getPackageManager().getLaunchIntentForPackage("com.package.address");
    

    Then I put some extras within:


    Code:
    LaunchIntent.putExtra("isdebug", true);
    startActivity(LaunchIntent);
    


    A specific use of this app is to create an Intent within particular Extras to pass to your activity for determinate specific feature in yuor application.
    For example if you want to run your app with "debug features" you can pass a boolean into the Extras so in your app you can manage this choice. 
    Another specific use is to create an application that can launch other app or "app launcher".
    Amazing!!
     

Share This Page