forked from cory/tildefriends
Fix executable choosing for my phone, and fix broadcasting to each interface.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4232 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -47,8 +47,10 @@ public class MainActivity extends Activity {
|
||||
ZipInputStream zip = new ZipInputStream(new BufferedInputStream(new FileInputStream(getPackageResourcePath().toString())));
|
||||
ZipEntry entry = null;
|
||||
String lookup = String.format("lib/%s/tildefriends", arch);
|
||||
Log.w("tildefriends", "Looking for " + lookup);
|
||||
while ((entry = zip.getNextEntry()) != null) {
|
||||
if (entry.getName().equals(lookup)) {
|
||||
Log.w("tildefriends", "Extracting " + entry.getName());
|
||||
FileOutputStream out = new FileOutputStream(getFilesDir().toString().concat("/tildefriends"));
|
||||
byte[] buffer = new byte[32768];
|
||||
int count;
|
||||
|
Reference in New Issue
Block a user