android Programming Glossary: fullpath
Android - Unzip a folder? http://stackoverflow.com/questions/5028421/android-unzip-a-folder String getFilePath return mFilePath public String getDestinationPath return mDestinationPath public void unzip String fullPath mFilePath mFileName .zip Log.d TAG unzipping mFileName to mDestinationPath new UnZipTask .execute fullPath mDestinationPath.. String fullPath mFilePath mFileName .zip Log.d TAG unzipping mFileName to mDestinationPath new UnZipTask .execute fullPath mDestinationPath private class UnZipTask extends AsyncTask String Void Boolean @SuppressWarnings rawtypes @Override protected..
Built-in Camera, using the extra MediaStore.EXTRA_OUTPUT stores pictures twice (in my folder, and in the default) http://stackoverflow.com/questions/6341329/built-in-camera-using-the-extra-mediastore-extra-output-stores-pictures-twice if imageCursor.moveToFirst int id imageCursor.getInt imageCursor.getColumnIndex MediaStore.Images.Media._ID String fullPath imageCursor.getString imageCursor.getColumnIndex MediaStore.Images.Media.DATA Log.d TAG getLastImageId id id Log.d TAG getLastImageId.. imageCursor.getColumnIndex MediaStore.Images.Media.DATA Log.d TAG getLastImageId id id Log.d TAG getLastImageId path fullPath imageCursor.close return id else return 0 And to remove the file private void removeImage int id ContentResolver cr getContentResolver..
Get Path and Filename from Camera intent result http://stackoverflow.com/questions/7636697/get-path-and-filename-from-camera-intent-result if imageCursor.moveToFirst int id imageCursor.getInt imageCursor.getColumnIndex MediaStore.Images.Media._ID String fullPath imageCursor.getString imageCursor.getColumnIndex MediaStore.Images.Media.DATA Log.d TAG getLastImageId id id Log.d TAG getLastImageId.. imageCursor.getColumnIndex MediaStore.Images.Media.DATA Log.d TAG getLastImageId id id Log.d TAG getLastImageId path fullPath imageCursor.close return id else return 0 This sample was based on post Deleting a gallery image after camera intent photo..
|