Uri uri = Uri.parse("com.dynamixsoftware.printershare.print");
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setData(uri);
intent.setPackage("com.dynamixsoftware.printershare.print");
intent.setType("application/pdf");
startActivity(intent);
return true;
這是我用來從我的應用程序中調用另一個應用程序的代碼。我認爲我提到的uri是不正確的。在那種情況下,我不知道如何找到合適的人。否則,我不知道發生了什麼問題。我在logcat中沒有錯誤,並且應用程序關閉。uri調用安裝在設備中的應用程序
這裏的答案可以幫助你找到一個解決方案,http://stackoverflow.com/questions/2923265/android-how-do-i-open-another-app-from -My應用內 :) – 2012-01-10 12:28:11