mirror of
https://github.com/go-i2p/i2p-android-sam.git
synced 2025-07-13 16:53:25 -04:00
much refinement
This commit is contained in:
BIN
app/libs/sam.jar
BIN
app/libs/sam.jar
Binary file not shown.
@ -23,6 +23,7 @@ import java.io.File;
|
|||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
import java.util.Random;
|
||||||
|
|
||||||
public class MainActivity extends AppCompatActivity {
|
public class MainActivity extends AppCompatActivity {
|
||||||
/**
|
/**
|
||||||
|
@ -136,18 +136,6 @@ public class SAMForegroundService extends Service {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Uri resToURI(int resourceId) {
|
|
||||||
Resources resources = getResources();
|
|
||||||
Log.i("Foreground", "Getting the default properties");
|
|
||||||
Uri uri = new Uri.Builder()
|
|
||||||
.scheme(ContentResolver.SCHEME_ANDROID_RESOURCE)
|
|
||||||
.authority(resources.getResourcePackageName(resourceId))
|
|
||||||
.appendPath(resources.getResourceTypeName(resourceId))
|
|
||||||
.appendPath(resources.getResourceEntryName(resourceId))
|
|
||||||
.build();
|
|
||||||
return uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Properties SAM_PROPERTIES() throws IOException {
|
public Properties SAM_PROPERTIES() throws IOException {
|
||||||
Log.i("Foreground", "Getting the default properties");
|
Log.i("Foreground", "Getting the default properties");
|
||||||
Properties sam_properties = new Properties();
|
Properties sam_properties = new Properties();
|
||||||
|
Reference in New Issue
Block a user