Skip to content

Commit

Permalink
Merge pull request #1171 from chet0xhenry/feature/enable_sdcard
Browse files Browse the repository at this point in the history
Make app relocatable to sdcard and make files readable by default
  • Loading branch information
liversedge committed Nov 26, 2014
2 parents e8bee5c + 8925bc2 commit 56a07f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 5 additions & 3 deletions contrib/RideLogger/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE AndroidXML>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
android:installLocation="auto"
package="com.ridelogger"
android:versionCode="030100"
android:versionName="3.1.0" >
android:versionCode="040000"
android:versionName="4.0" >
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
Expand Down
4 changes: 4 additions & 0 deletions contrib/RideLogger/src/com/ridelogger/RideService.java
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,13 @@ protected void startRide() {
fileName
);


try {
dir.mkdirs();
file.createNewFile();
file.setReadable(true);
file.setWritable(true);

OutputStream bufWriter = new BufferedOutputStream(new FileOutputStream(file));
buf = new GzipWriter(bufWriter);

Expand Down

0 comments on commit 56a07f8

Please sign in to comment.