title: Install an android application through another application
body: <p>I need to create an application that will install some apk (the name is myapp.apk) file that I created. (I checked myapp.apk alone and it works fine)</p>
  
  <p>I've created a folder <code>raw</code> inside the <code>res</code> folder and put the myapp.apk file there.
  I added the following code to my application:</p>
  
  <pre><code>Intent intent = new Intent(Intent.ACTION_VIEW);
  intent.setDataAndType(Uri.fromFile(new File("R.raw.myapp")), "application/vnd.android.package-archive");
  </code></pre>
  
  <p>But I'm getting a parse error on the emulator (eclipse android emulator).</p>
  
  <p>I appreciate your help</p>