title: How to download and view pdf files stored on parse.com on android list view
body: <p>i am currently developing an android app to download and view pdf files from parse.com server in a list or gridview in android there is no requirement to save them just to view them using google docs and a webview, but i unable to figure out how to do that any help is highly appreciated.</p>
  
  <pre><code>ArrayList&lt;ParseObject&gt; list = new ArrayList&lt;ParseObject&gt;();
  ParseQuery&lt;ParseObject&gt; query = new ParseQuery&lt;ParseObject&gt;("Mobiles"); 
  query.findInBackground(new FindCallback&lt;ParseObject&gt;() 
  { 
  @Override public void done(List&lt;ParseObject&gt; objects, ParseException e) 
   { if (e == null) 
   { 
   list = (ArrayList&lt;ParseObject&gt;) objects; 
   mMyadapter = new MyAdapter(context, list); 
   } 
   else { 
       } 
   }); 
  ParseFile pf = (ParseFile) list.get(position).get("pdffiles"); 
  pf.getDataInBackground(new GetDataCallback() 
  { @Override 
  public void done(byte[] bytes, ParseException e) 
  { if (e == null) 
  { //    add to list view } else { Log.d("debug", "bad"); } } });
  }
   }
   }
  }
  </code></pre>