friedger / android-analyzer

Automatically exported from code.google.com/p/android-analyzer
0 stars 0 forks source link

[PATCH] Save reports to SD CARD on Android 1.6+ devices #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Start application
2.Press the "Analyze" button
3.Press the "Save Report" button

What is the expected output? What do you see instead?
I would expect the report to be saved to my external SD card.
It instead saves the report to an inaccessible location.

What version of the product are you using? On what operating system?
Latest version on Android 4.1.2. Problem likely occurs on all Android 1.6 and 
later devices.

Please provide any additional information below.
See attached patch to fix the problem.
Changes include:
1. Added targetSDK and set to API level 4 to reference WRITE_EXTERNAL_STORAGE 
permission in AndroidManifest.xml. Verified app works as expected on 1.5 
emulator.
2. Moved uses-permissions to before application element. Fixes lint warnings.
3. Added new WRITE_EXTERNAL_STORAGE permission.
4. Removed hard coded paths which were incorrect when storing to SD Card on 
modern devices.

Original issue reported on code.google.com by gab...@gmail.com on 12 Oct 2012 at 11:07

Attachments: