mzestars / alogcat

Automatically exported from code.google.com/p/alogcat
0 stars 0 forks source link

Saving of the log fails #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Press Menu -> Save
2. The message about file creation appears.
3. The log record:
java.io.IOException: Parent directory of file is not writable: /sdcard/alogcat
appears.
4. No file is created.

What is the expected output? What do you see instead?
The file should be created. No error messages in logs should appear.

What version of the product are you using? On what operating system?
aLogcat v.1.5.1 on Android 2.1 on HTC Hero.

Please provide any additional information below.
I suppose the AndroidManifest.xml contains some wrong information:

1. You changed the minSdkVersion from 3 to 4 in the r18.
The correct tag should be:
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4"/>

2. Since SDK version 4 you should add a permission to write to SD card. Please 
add:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

Original issue reported on code.google.com by DNelubin on 24 Sep 2010 at 11:59

GoogleCodeExporter commented 8 years ago
thanks for the feedback. save to SD should be fixed, and i took your suggestion 
on the SDK version settings.

Original comment by jeffrey.blattman@gmail.com on 24 Sep 2010 at 3:16

GoogleCodeExporter commented 8 years ago
I confirm the fix for the application downloaded from Market.
But I don't see the changes in the source code here ;)

Original comment by DNelubin on 24 Sep 2010 at 4:47

GoogleCodeExporter commented 8 years ago
yes, i behind a firewall here and can't commit it yet, but i will. diffs pasted 
below.

Index: release/alogcat-1.5.2.apk
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: release/alogcat-1.5.2.apk
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Index: AndroidManifest.xml
===================================================================
--- AndroidManifest.xml (revision 18)
+++ AndroidManifest.xml (working copy)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
-       package="org.jtb.alogcat" android:versionCode="19" 
android:versionName="1.5.1">
+       package="org.jtb.alogcat" android:versionCode="20" 
android:versionName="1.5.2">
        <application android:icon="@drawable/icon" android:label="@string/app_name">
                <activity android:name=".LogActivity" android:label="@string/app_name">
                        <intent-filter>
@@ -8,8 +8,9 @@
                                <category android:name="android.intent.category.LAUNCHER" />
                        </intent-filter>
                </activity>
-               <activity android:name=".PrefsActivity" 
android:label="@string/app_prefs"/>
+               <activity android:name=".PrefsActivity" 
android:label="@string/app_prefs" />
        </application>
-       <uses-sdk android:minSdkVersion="4"/>
+       <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4" />
        <uses-permission android:name="android.permission.READ_LOGS" />
+       <uses-permission 
android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
 </manifest> 

Original comment by jeffrey.blattman@gmail.com on 24 Sep 2010 at 4:51

GoogleCodeExporter commented 8 years ago
Good. Thank you.

Original comment by DNelubin on 24 Sep 2010 at 4:56