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
import java.io.FilterInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
public class LazyStartingInputStream extends FilterInputStream { | |
private final byte[] startingAfter; | |
private int foundAlready = 0; | |
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
private String getSdcardFolder() { | |
File externalStorage = Environment.getExternalStorageDirectory(); | |
if (externalStorage.exists() && externalStorage.canWrite()) { | |
File trySubDir1 = new File(externalStorage, "external_sd"); | |
File trySubDir2 = new File(externalStorage, "sd"); | |
if (trySubDir1.exists() && trySubDir1.canWrite()) { | |
return trySubDir1.getAbsolutePath(); | |
} else if (trySubDir2.exists() && trySubDir2.canWrite()) { | |
return trySubDir2.getAbsolutePath(); | |
} else { |
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
<?xml version="1.0" encoding="utf-8"?> | |
<TabHost xmlns:android="http://schemas.android.com/apk/res/android" | |
android:id="@android:id/tabhost" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent"> | |
<LinearLayout | |
android:orientation="vertical" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent"> | |
<TabWidget |
NewerOlder