Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Unknown
committed
Apr 9, 2012
1 parent
f62809b
commit fb14c61
Showing
10 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<string name="copyright">SD attribute fixer by maneulyori - alpha version. \nBug report and suggestion: maneulyori@gmail.com</string> | ||
<string name="copyright">SD attribute fixer by maneulyori - alpha version. \nBug report and suggestion: maneulyori@gmail.com\nLicensed under GPL v3</string> | ||
<string name="app_name">SDAttr</string> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.maneulyori.sdattr; | ||
|
||
import java.io.*; | ||
import android.util.Log; | ||
|
||
public class FileCrawler | ||
{ | ||
public String[] listDir(String dirName) | ||
{ | ||
File dir = new File(dirName); | ||
|
||
String dirChildren[] = dir.list(); | ||
|
||
if(dirChildren == null) | ||
{ | ||
//TODO: write a routine for nonpresense of card or dir | ||
Log.i("SDAttr", "Cannot find dir: " + dirName + ". Skipping!"); | ||
} | ||
else | ||
{ | ||
//TODO: write a routine for recursive search. | ||
} | ||
return dirChildren; | ||
} | ||
|
||
public void FileCrawler(String rootDir) | ||
{ | ||
//TODO: add tree and add nodes in it. | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters