+ Start a Discussion
Denis BrownDenis Brown 

Salesforce One: can I call another Android App by startActivityForResult from HTML5 (JS)?

Hi!

I want my Salesforce1 App uses another Android App seamlessly. It is easy if we have access to App code, but with Salesforce1 we have not.

So, can I call another Android App by startActivityForResult from HTML5 (JS) and get a result back?

Thank you a lot for any piece of advice.
Ashish_SFDCAshish_SFDC
Hi , 


This has to be done in Android development, 

Something like this:

Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setClassName("com.example.package", "com.example.package.ActivityToStart");
startActivity(intent);
Another (better) option is to use the PackageManager to get an Intent for the package:

PackageManager pm = getPackageManager();
Intent intent = pm.getLaunchIntentForPackage("com.example.package");
startActivity(intent);

http://stackoverflow.com/questions/4674391/calling-an-app-from-another-app


Regards,
Ashish