title: Accessing assets of other Android app on Jelly Bean
body: <p>I have a pair of Android apps. One is a free 'reader' app and the other is a paid for 'Data' app with a text file in a sub directory of its assets.</p>
  
  <p>The reader app uses the following code to access the data app's text file:</p>
  
  <pre><code>Intent myIntent = new Intent("myintent");
  List&lt;ResolveInfo&gt; dataPacks = packageManager.queryIntentActivities(myIntent, 0);
  String packageName = dataPacks.get(0).activityInfo.packageName
  Resources res = packageManager.getResourcesForApplication(packageName);
  AssetManager assets = res.getAssets();
  String[] dataFiles = assets.list("Data");
  </code></pre>
  
  <p>This has been working fine but apps downloaded to Jelly Bean using Google Play are not working (datafiles is empty). If the app is installed directly from email it is fine so I suspect my problem is related to the recent security changes to Google Play. However, these have allegedly been undone but I am still having problems.</p>
  
  <p>Can anybody shed light on what is going wrong? (unfortunately I dont have a Jelly Bean device)</p>
  
  <p>Alternatively, can somebody suggest a better mechanism for accessing the data app's txt file?</p>
  
  <p>Thanks</p>