how can i get a resultcode when i use 'startActivity' to install an apk
<p>I installed an apk which was saved in directory of <code>/data/data/package_name/files</code> with codes below:</p>

<pre><code>Uri uri = Uri.fromFile(new File(apkSavingPath));
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(uri,"application/vnd.android.package-archive");
mContext.startActivity(intent);
</code></pre>

<p>I want it to return a resultcode to tell me whether the apk installed successfully or not, and  I have tried method of <code>startActivityForResult</code>, but it didn't work. </p>

<p>On method of <code>onActivityResult</code>, it's resultCode is always <code>0(zero)</code> whether apk installed successfully or not. Can I get such a resultcode?</p>
