Launching unknown activities from an android application.
        Posted  
        
            by oscarello
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by oscarello
        
        
        
        Published on 2010-04-05T15:29:00Z
        Indexed on 
            2010/04/05
            15:33 UTC
        
        
        Read the original article
        Hit count: 504
        
Hi, I want to make an android application that shows a listing of applications (downloaded from the android market) and launches the one that the user selects. From what I've read, I'd have to use intents like this:
  Intent intent = new Intent();
  intent.setClassName(packageName, className);
  startActivity(intent);
I just want to be able to launch the applications, not a specific activity that they could have.
My question is: how could I launch these applications if I don't know their packageName or className? or maybe, how could I get to know their className and packageName, if it's a closed source application that I didn't develop.
Thanks.
© Stack Overflow or respective owner