I am trying to read a file.
I do not mind the location, so I have tried various locations and ways to do this:

```
File file = new File("DFirstPdf.pdf");
File file = new File("C:/DFirstPdf.pdf");
File file = new File("C:\\DFirstPdf.pdf");

```

But I always get that file does not exist. I am working whit Eclipse and a simulator and I do not have more ideas.

What I want to do is:
 if (file.exists())
 {
 Uri path = Uri.fromFile(file);
 Intent intent = new Intent(Intent.ACTION\_VIEW);
 intent.setDataAndType(path, "application/pdf");
 intent.setFlags(Intent.FLAG\_ACTIVITY\_CLEAR\_TOP);

```
PackageManager pm = getPackageManager();

List<ResolveInfo> activities = pm.queryIntentActivities(intent, 0);

if (activities.size() > 0) 
{
startActivity(intent);
}
else
{
// Do something else here. Maybe pop up a Dialog or Toast
}

```