Revision 802fbd9e src/com/rackspace/cloud/android/ContainerObjectDetails.java
b/src/com/rackspace/cloud/android/ContainerObjectDetails.java | ||
---|---|---|
56 | 56 |
public class ContainerObjectDetails extends CloudActivity { |
57 | 57 |
|
58 | 58 |
private static final int deleteObject = 0; |
59 |
private final String DOWNLOAD_DIRECTORY = "/RackspaceCloud";
|
|
59 |
private final String DOWNLOAD_DIRECTORY = "/PithosPlus";
|
|
60 | 60 |
|
61 | 61 |
private ContainerObjects objects; |
62 | 62 |
private String containerNames; |
... | ... | |
505 | 505 |
|
506 | 506 |
private boolean fileIsDownloaded(){ |
507 | 507 |
if(storageIsReady()){ |
508 |
String fileName = Environment.getExternalStorageDirectory().getPath() + "/RackspaceCloud/" + objects.getCName();
|
|
508 |
String fileName = Environment.getExternalStorageDirectory().getPath() + "/PithosPlus/" + objects.getCName();
|
|
509 | 509 |
File f = new File(fileName); |
510 | 510 |
return f.isFile(); |
511 | 511 |
} |
... | ... | |
513 | 513 |
} |
514 | 514 |
|
515 | 515 |
private void openFile(){ |
516 |
File object = new File(Environment.getExternalStorageDirectory().getPath() + "/RackspaceCloud/" + objects.getCName());
|
|
516 |
File object = new File(Environment.getExternalStorageDirectory().getPath() + "/PithosPlus/" + objects.getCName());
|
|
517 | 517 |
Intent myIntent = new Intent(android.content.Intent.ACTION_VIEW); |
518 | 518 |
File file = new File(object.getAbsolutePath()); |
519 | 519 |
String extension = android.webkit.MimeTypeMap.getFileExtensionFromUrl(Uri.fromFile(file).toString()); |
Also available in: Unified diff