title: Android best way to open big files ~3-6 mb - out of memory
body: <p>I get always out of memory error. </p>
  
  <p>my code was:</p>
  
  <pre><code>public static String openAssetFile(Context ctx) {
  BufferedReader br=new BufferedReader(new InputStreamReader(ctx.getResources().openRawResource(R.raw.allx)));
  StringBuilder text = new StringBuilder();
  try {
      String line;
  
      while ((line = br.readLine()) != null) {
          text.append(line);
          text.append('\n');
      }
  }
  catch (IOException e) {
      Log.e("IOErr", "IOErr");
  }
  
  return text.toString();
  }
  </code></pre>
  
  <p>it is good for little files, but what can i do when i d like to open a bigger file? like 3-6 mb. </p>
  
  <p>thanks</p>