Android Question launch another app

Discussion in 'Android Questions' started by giannimaione, Jan 6, 2015.

  1. giannimaione

    giannimaione Well-Known Member Licensed User

    Hi all,

    i have an app named APP1
    now i want launch another app named APP2 from APP1.
    how to do?

    regards
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Code:
    Dim pm As PackageManager
    StartActivity(pm.GetApplicationIntent("your.other.app.package.name"))
     
    giannimaione likes this.
  3. Mahares

    Mahares Well Known Member Licensed User

    I usually use:
    Code:
    MyIntent.Initialize(MyIntent.ACTION_MAIN, "")
      MyIntent.SetComponent(
    "your.other.app.package.name/.main")
      
    StartActivity(MyIntent)
    Is there any preference to which of the two methods to use?
     
  4. DonManfred

    DonManfred Expert Licensed User

    The first will start the app with the activity which the apps author designes in his manifest

    The second will start the apps main activity
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice