summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Robinson <joe@lc8n.com>2013-01-31 22:17:03 +0000
committerJoe Robinson <joe@lc8n.com>2013-01-31 22:17:03 +0000
commit6ef031b66061629dc814c786521cb182b628f346 (patch)
treee2f8b35587fa61167b6f92a318e91ee7fa95183f
parent559305e42e1ea09b8d26085e8f8355bdb6ba0352 (diff)
I'm a bad person who doesn't commit to git
-rw-r--r--AndroidManifest.xml136
-rw-r--r--bin/blauploader.apkbin67718 -> 0 bytes
-rw-r--r--bin/classes.dexbin112452 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/FileBrowser$1.classbin1914 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/FileBrowser.classbin5635 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/FileShare$1.classbin991 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/FileShare$2.classbin1126 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/FileShare$3.classbin1131 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/FileShare$4.classbin3711 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/FileShare$5.classbin2851 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/FileShare.classbin6734 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/FileUpload.classbin3670 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/HomeScreen$1.classbin1089 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/HomeScreen$2.classbin1091 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/HomeScreen$3.classbin1092 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/HomeScreen.classbin1332 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/ProgressInputStream.classbin2124 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/R$attr.classbin346 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/R$drawable.classbin438 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/R$id.classbin849 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/R$layout.classbin565 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/R$menu.classbin387 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/R$string.classbin463 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/R.classbin593 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/SoundRecorder$1.classbin1111 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/SoundRecorder$2.classbin1108 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/SoundRecorder$3.classbin1939 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/SoundRecorder.classbin5110 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/UploadLocation$1.classbin1948 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/UploadLocation$2.classbin1941 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/UploadLocation$MyLocationListener.classbin2113 -> 0 bytes
-rw-r--r--bin/com/lc8n/blauploader/UploadLocation.classbin3617 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/DatagramSocketClient.classbin2475 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/DatagramSocketFactory.classbin380 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/DefaultDatagramSocketFactory.classbin976 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/DefaultSocketFactory.classbin1934 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/MalformedServerReplyException.classbin506 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/PrintCommandListener.classbin1016 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ProtocolCommandEvent.classbin1296 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ProtocolCommandListener.classbin294 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ProtocolCommandSupport.classbin2226 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/SocketClient.classbin5762 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/Configurable.classbin202 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/FTP.classbin12068 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/FTPClient.classbin19032 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/FTPClientConfig.classbin5286 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/FTPCommand.classbin2776 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/FTPConnectionClosedException.classbin511 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/FTPFile.classbin3444 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/FTPFileEntryParser.classbin499 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/FTPFileEntryParserImpl.classbin1496 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/FTPListParseEngine.classbin3788 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/FTPReply.classbin4278 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/FTPSClient.classbin8942 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/FTPSCommand.classbin991 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/FTPSSocketFactory.classbin2344 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/FTPSTrustManager.classbin1014 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/parser/CompositeFileEntryParser.classbin1148 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/parser/ConfigurableFTPFileEntryParserImpl.classbin1646 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactory.classbin4783 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/parser/EnterpriseUnixFTPEntryParser.classbin2537 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/parser/FTPFileEntryParserFactory.classbin473 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/parser/FTPTimestampParser.classbin409 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/parser/FTPTimestampParserImpl.classbin5391 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/parser/MVSFTPEntryParser.classbin5338 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/parser/NTFTPEntryParser.classbin2451 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/parser/NetwareFTPEntryParser.classbin2508 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/parser/OS2FTPEntryParser.classbin2433 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/parser/OS400FTPEntryParser.classbin2810 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/parser/ParserInitializationException.classbin759 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/parser/RegexFTPFileEntryParserImpl.classbin2404 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/parser/UnixFTPEntryParser.classbin4032 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/parser/VMSFTPEntryParser.classbin4700 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser$NameVersion.classbin756 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser.classbin3550 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/io/CopyStreamAdapter.classbin1814 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/io/CopyStreamEvent.classbin917 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/io/CopyStreamException.classbin817 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/io/CopyStreamListener.classbin267 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/io/DotTerminatedMessageReader.classbin2598 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/io/DotTerminatedMessageWriter.classbin2131 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/io/FromNetASCIIInputStream.classbin2061 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/io/FromNetASCIIOutputStream.classbin1548 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/io/SocketInputStream.classbin701 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/io/SocketOutputStream.classbin925 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/io/ToNetASCIIInputStream.classbin1526 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/io/ToNetASCIIOutputStream.classbin1051 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/io/Util.classbin3033 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/util/ListenerList.classbin1307 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/util/SubnetUtils$SubnetInfo.classbin3124 -> 0 bytes
-rw-r--r--bin/org/apache/commons/net/util/SubnetUtils.classbin4745 -> 0 bytes
-rw-r--r--bin/resources.ap_bin14832 -> 0 bytes
-rw-r--r--gen/com/lc8n/blauploader/BuildConfig.java6
-rw-r--r--gen/com/lc8n/blauploader/R.java70
-rw-r--r--res/layout/share.xml110
-rw-r--r--res/layout/soundrecorder.xml1
-rw-r--r--res/values-v11/strings.xml6
-rw-r--r--res/values-v11/themes.xml6
-rw-r--r--res/values-v14/strings.xml6
-rw-r--r--res/values-v14/themes.xml6
-rw-r--r--res/values/strings.xml17
-rw-r--r--res/values/themes.xml6
-rw-r--r--src/com/lc8n/blauploader/FileShare.java668
-rw-r--r--src/com/lc8n/blauploader/FileUpload.java34
-rw-r--r--src/com/lc8n/blauploader/SoundRecorder.java10
105 files changed, 732 insertions, 350 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index ea526c3..a6b1c56 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -1,65 +1,85 @@
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.lc8n.blauploader"
- android:versionCode="1"
- android:versionName="1.0">
- <application android:icon="@drawable/icon" android:label="@string/app_name">
-
- <activity android:name=".HomeScreen"
- android:label="@string/app_name">
- <intent-filter>
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.lc8n.blauploader"
+ android:versionCode="1"
+ android:versionName="1.0" >
+
+ <uses-sdk
+ android:minSdkVersion="8"
+ android:targetSdkVersion="14" />
+
+ <application
+ android:icon="@drawable/icon"
+ android:label="@string/app_name"
+ android:theme="@style/LightTheme" >
+ <activity
+ android:name="com.lc8n.blauploader.HomeScreen"
+ android:label="@string/app_name" >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ <activity
+ android:name="com.lc8n.blauploader.FileBrowser"
+ android:label="@string/app_name" >
+
+ <!--
+ <intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
- </intent-filter></activity>
-
- <activity android:name=".FileBrowser"
- android:label="@string/app_name">
- <!--<intent-filter>
+ </intent-filter>
+ -->
+
+ </activity>
+ <activity
+ android:name="com.lc8n.blauploader.FileShare"
+ android:label="Blaupload File"
+ android:windowSoftInputMode="stateAlwaysVisible" >
+ <intent-filter>
+ <action android:name="android.intent.action.SEND" />
+
+ <category android:name="android.intent.category.DEFAULT" />
+
+ <data android:mimeType="image/*" />
+ </intent-filter>
+ </activity>
+ <activity
+ android:name="com.lc8n.blauploader.SoundRecorder"
+ android:label="@string/app_name" >
+
+ <!--
+ intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>-->
-
- </activity>
-
- <activity android:name=".FileShare"
- android:label="Blaupload File">
+ </intent-filter>
+ -->
+ </activity>
+ <activity
+ android:name="com.lc8n.blauploader.UploadLocation"
+ android:label="@string/app_name" >
+
+ <!--
<intent-filter>
- <action android:name="android.intent.action.SEND" />
- <category android:name="android.intent.category.DEFAULT" />
- <data android:mimeType="image/*" />
- </intent-filter>
-
- </activity>
-
-
-
- <activity android:name=".SoundRecorder"
- android:label="@string/app_name">
- <!-- intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter> -->
- </activity>
-
-
- <activity android:name=".UploadLocation"
- android:label="@string/app_name">
- <!-- <intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
- </intent-filter> -->
- </activity>
-
- </application>
- <uses-sdk android:minSdkVersion="7" />
- <uses-permission android:name="android.permission.INTERNET"></uses-permission>
- <uses-permission android:name="android.permission.RECORD_AUDIO" />
- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
- <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
- <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
- <uses-permission android:name="android.permission.SEND_SMS" />
- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
-
-
-
-</manifest> \ No newline at end of file
+ </intent-filter>
+ -->
+ </activity>
+ <activity
+ android:name="com.lc8n.blauploader.MainActivity"
+ android:label="@string/title_activity_main" >
+ </activity>
+ </application>
+
+ <uses-permission android:name="android.permission.INTERNET" >
+ </uses-permission>
+ <uses-permission android:name="android.permission.RECORD_AUDIO" />
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
+ <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
+ <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
+ <uses-permission android:name="android.permission.SEND_SMS" />
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
+
+</manifest> \ No newline at end of file
diff --git a/bin/blauploader.apk b/bin/blauploader.apk
deleted file mode 100644
index 4d11658..0000000
--- a/bin/blauploader.apk
+++ /dev/null
Binary files differ
diff --git a/bin/classes.dex b/bin/classes.dex
deleted file mode 100644
index 3900f28..0000000
--- a/bin/classes.dex
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/FileBrowser$1.class b/bin/com/lc8n/blauploader/FileBrowser$1.class
deleted file mode 100644
index 76b9015..0000000
--- a/bin/com/lc8n/blauploader/FileBrowser$1.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/FileBrowser.class b/bin/com/lc8n/blauploader/FileBrowser.class
deleted file mode 100644
index db356c6..0000000
--- a/bin/com/lc8n/blauploader/FileBrowser.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/FileShare$1.class b/bin/com/lc8n/blauploader/FileShare$1.class
deleted file mode 100644
index b03e124..0000000
--- a/bin/com/lc8n/blauploader/FileShare$1.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/FileShare$2.class b/bin/com/lc8n/blauploader/FileShare$2.class
deleted file mode 100644
index 91d4a68..0000000
--- a/bin/com/lc8n/blauploader/FileShare$2.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/FileShare$3.class b/bin/com/lc8n/blauploader/FileShare$3.class
deleted file mode 100644
index a3d2d3c..0000000
--- a/bin/com/lc8n/blauploader/FileShare$3.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/FileShare$4.class b/bin/com/lc8n/blauploader/FileShare$4.class
deleted file mode 100644
index 3e774df..0000000
--- a/bin/com/lc8n/blauploader/FileShare$4.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/FileShare$5.class b/bin/com/lc8n/blauploader/FileShare$5.class
deleted file mode 100644
index 90755fc..0000000
--- a/bin/com/lc8n/blauploader/FileShare$5.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/FileShare.class b/bin/com/lc8n/blauploader/FileShare.class
deleted file mode 100644
index 2370629..0000000
--- a/bin/com/lc8n/blauploader/FileShare.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/FileUpload.class b/bin/com/lc8n/blauploader/FileUpload.class
deleted file mode 100644
index 2854498..0000000
--- a/bin/com/lc8n/blauploader/FileUpload.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/HomeScreen$1.class b/bin/com/lc8n/blauploader/HomeScreen$1.class
deleted file mode 100644
index 274682b..0000000
--- a/bin/com/lc8n/blauploader/HomeScreen$1.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/HomeScreen$2.class b/bin/com/lc8n/blauploader/HomeScreen$2.class
deleted file mode 100644
index bfbc125..0000000
--- a/bin/com/lc8n/blauploader/HomeScreen$2.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/HomeScreen$3.class b/bin/com/lc8n/blauploader/HomeScreen$3.class
deleted file mode 100644
index 47719f9..0000000
--- a/bin/com/lc8n/blauploader/HomeScreen$3.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/HomeScreen.class b/bin/com/lc8n/blauploader/HomeScreen.class
deleted file mode 100644
index 1899b6d..0000000
--- a/bin/com/lc8n/blauploader/HomeScreen.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/ProgressInputStream.class b/bin/com/lc8n/blauploader/ProgressInputStream.class
deleted file mode 100644
index 758c06b..0000000
--- a/bin/com/lc8n/blauploader/ProgressInputStream.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/R$attr.class b/bin/com/lc8n/blauploader/R$attr.class
deleted file mode 100644
index b463ed9..0000000
--- a/bin/com/lc8n/blauploader/R$attr.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/R$drawable.class b/bin/com/lc8n/blauploader/R$drawable.class
deleted file mode 100644
index 0dea56c..0000000
--- a/bin/com/lc8n/blauploader/R$drawable.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/R$id.class b/bin/com/lc8n/blauploader/R$id.class
deleted file mode 100644
index 84999bb..0000000
--- a/bin/com/lc8n/blauploader/R$id.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/R$layout.class b/bin/com/lc8n/blauploader/R$layout.class
deleted file mode 100644
index ae76dce..0000000
--- a/bin/com/lc8n/blauploader/R$layout.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/R$menu.class b/bin/com/lc8n/blauploader/R$menu.class
deleted file mode 100644
index 12ba949..0000000
--- a/bin/com/lc8n/blauploader/R$menu.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/R$string.class b/bin/com/lc8n/blauploader/R$string.class
deleted file mode 100644
index 2e6d248..0000000
--- a/bin/com/lc8n/blauploader/R$string.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/R.class b/bin/com/lc8n/blauploader/R.class
deleted file mode 100644
index 72da9ab..0000000
--- a/bin/com/lc8n/blauploader/R.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/SoundRecorder$1.class b/bin/com/lc8n/blauploader/SoundRecorder$1.class
deleted file mode 100644
index a5440c0..0000000
--- a/bin/com/lc8n/blauploader/SoundRecorder$1.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/SoundRecorder$2.class b/bin/com/lc8n/blauploader/SoundRecorder$2.class
deleted file mode 100644
index 1edcefc..0000000
--- a/bin/com/lc8n/blauploader/SoundRecorder$2.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/SoundRecorder$3.class b/bin/com/lc8n/blauploader/SoundRecorder$3.class
deleted file mode 100644
index b1b926f..0000000
--- a/bin/com/lc8n/blauploader/SoundRecorder$3.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/SoundRecorder.class b/bin/com/lc8n/blauploader/SoundRecorder.class
deleted file mode 100644
index 41f0b58..0000000
--- a/bin/com/lc8n/blauploader/SoundRecorder.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/UploadLocation$1.class b/bin/com/lc8n/blauploader/UploadLocation$1.class
deleted file mode 100644
index e5e5dc3..0000000
--- a/bin/com/lc8n/blauploader/UploadLocation$1.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/UploadLocation$2.class b/bin/com/lc8n/blauploader/UploadLocation$2.class
deleted file mode 100644
index 62ea06c..0000000
--- a/bin/com/lc8n/blauploader/UploadLocation$2.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/UploadLocation$MyLocationListener.class b/bin/com/lc8n/blauploader/UploadLocation$MyLocationListener.class
deleted file mode 100644
index 997a177..0000000
--- a/bin/com/lc8n/blauploader/UploadLocation$MyLocationListener.class
+++ /dev/null
Binary files differ
diff --git a/bin/com/lc8n/blauploader/UploadLocation.class b/bin/com/lc8n/blauploader/UploadLocation.class
deleted file mode 100644
index aaa8c0e..0000000
--- a/bin/com/lc8n/blauploader/UploadLocation.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/DatagramSocketClient.class b/bin/org/apache/commons/net/DatagramSocketClient.class
deleted file mode 100644
index 9962b0c..0000000
--- a/bin/org/apache/commons/net/DatagramSocketClient.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/DatagramSocketFactory.class b/bin/org/apache/commons/net/DatagramSocketFactory.class
deleted file mode 100644
index e745d32..0000000
--- a/bin/org/apache/commons/net/DatagramSocketFactory.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/DefaultDatagramSocketFactory.class b/bin/org/apache/commons/net/DefaultDatagramSocketFactory.class
deleted file mode 100644
index ce94e85..0000000
--- a/bin/org/apache/commons/net/DefaultDatagramSocketFactory.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/DefaultSocketFactory.class b/bin/org/apache/commons/net/DefaultSocketFactory.class
deleted file mode 100644
index 0214912..0000000
--- a/bin/org/apache/commons/net/DefaultSocketFactory.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/MalformedServerReplyException.class b/bin/org/apache/commons/net/MalformedServerReplyException.class
deleted file mode 100644
index 1029ea6..0000000
--- a/bin/org/apache/commons/net/MalformedServerReplyException.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/PrintCommandListener.class b/bin/org/apache/commons/net/PrintCommandListener.class
deleted file mode 100644
index 14175f9..0000000
--- a/bin/org/apache/commons/net/PrintCommandListener.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ProtocolCommandEvent.class b/bin/org/apache/commons/net/ProtocolCommandEvent.class
deleted file mode 100644
index 348bc9b..0000000
--- a/bin/org/apache/commons/net/ProtocolCommandEvent.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ProtocolCommandListener.class b/bin/org/apache/commons/net/ProtocolCommandListener.class
deleted file mode 100644
index febe5f7..0000000
--- a/bin/org/apache/commons/net/ProtocolCommandListener.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ProtocolCommandSupport.class b/bin/org/apache/commons/net/ProtocolCommandSupport.class
deleted file mode 100644
index b5e8190..0000000
--- a/bin/org/apache/commons/net/ProtocolCommandSupport.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/SocketClient.class b/bin/org/apache/commons/net/SocketClient.class
deleted file mode 100644
index cdb687b..0000000
--- a/bin/org/apache/commons/net/SocketClient.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/Configurable.class b/bin/org/apache/commons/net/ftp/Configurable.class
deleted file mode 100644
index ccf792a..0000000
--- a/bin/org/apache/commons/net/ftp/Configurable.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/FTP.class b/bin/org/apache/commons/net/ftp/FTP.class
deleted file mode 100644
index 8da8080..0000000
--- a/bin/org/apache/commons/net/ftp/FTP.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/FTPClient.class b/bin/org/apache/commons/net/ftp/FTPClient.class
deleted file mode 100644
index 3d5c9b4..0000000
--- a/bin/org/apache/commons/net/ftp/FTPClient.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/FTPClientConfig.class b/bin/org/apache/commons/net/ftp/FTPClientConfig.class
deleted file mode 100644
index 2d37625..0000000
--- a/bin/org/apache/commons/net/ftp/FTPClientConfig.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/FTPCommand.class b/bin/org/apache/commons/net/ftp/FTPCommand.class
deleted file mode 100644
index 1ab8bdc..0000000
--- a/bin/org/apache/commons/net/ftp/FTPCommand.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/FTPConnectionClosedException.class b/bin/org/apache/commons/net/ftp/FTPConnectionClosedException.class
deleted file mode 100644
index 3b32606..0000000
--- a/bin/org/apache/commons/net/ftp/FTPConnectionClosedException.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/FTPFile.class b/bin/org/apache/commons/net/ftp/FTPFile.class
deleted file mode 100644
index 1d34b1b..0000000
--- a/bin/org/apache/commons/net/ftp/FTPFile.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/FTPFileEntryParser.class b/bin/org/apache/commons/net/ftp/FTPFileEntryParser.class
deleted file mode 100644
index 2b7ae2e..0000000
--- a/bin/org/apache/commons/net/ftp/FTPFileEntryParser.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/FTPFileEntryParserImpl.class b/bin/org/apache/commons/net/ftp/FTPFileEntryParserImpl.class
deleted file mode 100644
index b85c462..0000000
--- a/bin/org/apache/commons/net/ftp/FTPFileEntryParserImpl.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/FTPListParseEngine.class b/bin/org/apache/commons/net/ftp/FTPListParseEngine.class
deleted file mode 100644
index ac3e453..0000000
--- a/bin/org/apache/commons/net/ftp/FTPListParseEngine.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/FTPReply.class b/bin/org/apache/commons/net/ftp/FTPReply.class
deleted file mode 100644
index 3e3be4a..0000000
--- a/bin/org/apache/commons/net/ftp/FTPReply.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/FTPSClient.class b/bin/org/apache/commons/net/ftp/FTPSClient.class
deleted file mode 100644
index 27b495e..0000000
--- a/bin/org/apache/commons/net/ftp/FTPSClient.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/FTPSCommand.class b/bin/org/apache/commons/net/ftp/FTPSCommand.class
deleted file mode 100644
index 82e168d..0000000
--- a/bin/org/apache/commons/net/ftp/FTPSCommand.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/FTPSSocketFactory.class b/bin/org/apache/commons/net/ftp/FTPSSocketFactory.class
deleted file mode 100644
index 3ad4aa5..0000000
--- a/bin/org/apache/commons/net/ftp/FTPSSocketFactory.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/FTPSTrustManager.class b/bin/org/apache/commons/net/ftp/FTPSTrustManager.class
deleted file mode 100644
index 3e62487..0000000
--- a/bin/org/apache/commons/net/ftp/FTPSTrustManager.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/parser/CompositeFileEntryParser.class b/bin/org/apache/commons/net/ftp/parser/CompositeFileEntryParser.class
deleted file mode 100644
index 2bc05ed..0000000
--- a/bin/org/apache/commons/net/ftp/parser/CompositeFileEntryParser.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/parser/ConfigurableFTPFileEntryParserImpl.class b/bin/org/apache/commons/net/ftp/parser/ConfigurableFTPFileEntryParserImpl.class
deleted file mode 100644
index 13da0a8..0000000
--- a/bin/org/apache/commons/net/ftp/parser/ConfigurableFTPFileEntryParserImpl.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactory.class b/bin/org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactory.class
deleted file mode 100644
index d755cd7..0000000
--- a/bin/org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactory.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/parser/EnterpriseUnixFTPEntryParser.class b/bin/org/apache/commons/net/ftp/parser/EnterpriseUnixFTPEntryParser.class
deleted file mode 100644
index 9b94242..0000000
--- a/bin/org/apache/commons/net/ftp/parser/EnterpriseUnixFTPEntryParser.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/parser/FTPFileEntryParserFactory.class b/bin/org/apache/commons/net/ftp/parser/FTPFileEntryParserFactory.class
deleted file mode 100644
index 9eb116e..0000000
--- a/bin/org/apache/commons/net/ftp/parser/FTPFileEntryParserFactory.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/parser/FTPTimestampParser.class b/bin/org/apache/commons/net/ftp/parser/FTPTimestampParser.class
deleted file mode 100644
index 25ecea6..0000000
--- a/bin/org/apache/commons/net/ftp/parser/FTPTimestampParser.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/parser/FTPTimestampParserImpl.class b/bin/org/apache/commons/net/ftp/parser/FTPTimestampParserImpl.class
deleted file mode 100644
index ff3bd50..0000000
--- a/bin/org/apache/commons/net/ftp/parser/FTPTimestampParserImpl.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/parser/MVSFTPEntryParser.class b/bin/org/apache/commons/net/ftp/parser/MVSFTPEntryParser.class
deleted file mode 100644
index 4ccb95c..0000000
--- a/bin/org/apache/commons/net/ftp/parser/MVSFTPEntryParser.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/parser/NTFTPEntryParser.class b/bin/org/apache/commons/net/ftp/parser/NTFTPEntryParser.class
deleted file mode 100644
index b422f44..0000000
--- a/bin/org/apache/commons/net/ftp/parser/NTFTPEntryParser.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/parser/NetwareFTPEntryParser.class b/bin/org/apache/commons/net/ftp/parser/NetwareFTPEntryParser.class
deleted file mode 100644
index 33a7d50..0000000
--- a/bin/org/apache/commons/net/ftp/parser/NetwareFTPEntryParser.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/parser/OS2FTPEntryParser.class b/bin/org/apache/commons/net/ftp/parser/OS2FTPEntryParser.class
deleted file mode 100644
index 10fc1bb..0000000
--- a/bin/org/apache/commons/net/ftp/parser/OS2FTPEntryParser.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/parser/OS400FTPEntryParser.class b/bin/org/apache/commons/net/ftp/parser/OS400FTPEntryParser.class
deleted file mode 100644
index 1fa8d0e..0000000
--- a/bin/org/apache/commons/net/ftp/parser/OS400FTPEntryParser.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/parser/ParserInitializationException.class b/bin/org/apache/commons/net/ftp/parser/ParserInitializationException.class
deleted file mode 100644
index 2608c80..0000000
--- a/bin/org/apache/commons/net/ftp/parser/ParserInitializationException.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/parser/RegexFTPFileEntryParserImpl.class b/bin/org/apache/commons/net/ftp/parser/RegexFTPFileEntryParserImpl.class
deleted file mode 100644
index 6908382..0000000
--- a/bin/org/apache/commons/net/ftp/parser/RegexFTPFileEntryParserImpl.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/parser/UnixFTPEntryParser.class b/bin/org/apache/commons/net/ftp/parser/UnixFTPEntryParser.class
deleted file mode 100644
index c274ea7..0000000
--- a/bin/org/apache/commons/net/ftp/parser/UnixFTPEntryParser.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/parser/VMSFTPEntryParser.class b/bin/org/apache/commons/net/ftp/parser/VMSFTPEntryParser.class
deleted file mode 100644
index fa5c9ba..0000000
--- a/bin/org/apache/commons/net/ftp/parser/VMSFTPEntryParser.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser$NameVersion.class b/bin/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser$NameVersion.class
deleted file mode 100644
index 968e617..0000000
--- a/bin/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser$NameVersion.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser.class b/bin/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser.class
deleted file mode 100644
index a58fdd2..0000000
--- a/bin/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/io/CopyStreamAdapter.class b/bin/org/apache/commons/net/io/CopyStreamAdapter.class
deleted file mode 100644
index 1f71724..0000000
--- a/bin/org/apache/commons/net/io/CopyStreamAdapter.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/io/CopyStreamEvent.class b/bin/org/apache/commons/net/io/CopyStreamEvent.class
deleted file mode 100644
index 94a6a08..0000000
--- a/bin/org/apache/commons/net/io/CopyStreamEvent.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/io/CopyStreamException.class b/bin/org/apache/commons/net/io/CopyStreamException.class
deleted file mode 100644
index a85cd86..0000000
--- a/bin/org/apache/commons/net/io/CopyStreamException.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/io/CopyStreamListener.class b/bin/org/apache/commons/net/io/CopyStreamListener.class
deleted file mode 100644
index 319b76b..0000000
--- a/bin/org/apache/commons/net/io/CopyStreamListener.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/io/DotTerminatedMessageReader.class b/bin/org/apache/commons/net/io/DotTerminatedMessageReader.class
deleted file mode 100644
index 1e67304..0000000
--- a/bin/org/apache/commons/net/io/DotTerminatedMessageReader.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/io/DotTerminatedMessageWriter.class b/bin/org/apache/commons/net/io/DotTerminatedMessageWriter.class
deleted file mode 100644
index 124e517..0000000
--- a/bin/org/apache/commons/net/io/DotTerminatedMessageWriter.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/io/FromNetASCIIInputStream.class b/bin/org/apache/commons/net/io/FromNetASCIIInputStream.class
deleted file mode 100644
index 288992a..0000000
--- a/bin/org/apache/commons/net/io/FromNetASCIIInputStream.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/io/FromNetASCIIOutputStream.class b/bin/org/apache/commons/net/io/FromNetASCIIOutputStream.class
deleted file mode 100644
index b8524d5..0000000
--- a/bin/org/apache/commons/net/io/FromNetASCIIOutputStream.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/io/SocketInputStream.class b/bin/org/apache/commons/net/io/SocketInputStream.class
deleted file mode 100644
index 6c215b4..0000000
--- a/bin/org/apache/commons/net/io/SocketInputStream.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/io/SocketOutputStream.class b/bin/org/apache/commons/net/io/SocketOutputStream.class
deleted file mode 100644
index b83a385..0000000
--- a/bin/org/apache/commons/net/io/SocketOutputStream.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/io/ToNetASCIIInputStream.class b/bin/org/apache/commons/net/io/ToNetASCIIInputStream.class
deleted file mode 100644
index 13bf861..0000000
--- a/bin/org/apache/commons/net/io/ToNetASCIIInputStream.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/io/ToNetASCIIOutputStream.class b/bin/org/apache/commons/net/io/ToNetASCIIOutputStream.class
deleted file mode 100644
index bee2c00..0000000
--- a/bin/org/apache/commons/net/io/ToNetASCIIOutputStream.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/io/Util.class b/bin/org/apache/commons/net/io/Util.class
deleted file mode 100644
index ebfa4f1..0000000
--- a/bin/org/apache/commons/net/io/Util.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/util/ListenerList.class b/bin/org/apache/commons/net/util/ListenerList.class
deleted file mode 100644
index 835ef3e..0000000
--- a/bin/org/apache/commons/net/util/ListenerList.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/util/SubnetUtils$SubnetInfo.class b/bin/org/apache/commons/net/util/SubnetUtils$SubnetInfo.class
deleted file mode 100644
index f064e4f..0000000
--- a/bin/org/apache/commons/net/util/SubnetUtils$SubnetInfo.class
+++ /dev/null
Binary files differ
diff --git a/bin/org/apache/commons/net/util/SubnetUtils.class b/bin/org/apache/commons/net/util/SubnetUtils.class
deleted file mode 100644
index 8722881..0000000
--- a/bin/org/apache/commons/net/util/SubnetUtils.class
+++ /dev/null
Binary files differ
diff --git a/bin/resources.ap_ b/bin/resources.ap_
deleted file mode 100644
index 079ef08..0000000
--- a/bin/resources.ap_
+++ /dev/null
Binary files differ
diff --git a/gen/com/lc8n/blauploader/BuildConfig.java b/gen/com/lc8n/blauploader/BuildConfig.java
new file mode 100644
index 0000000..f468a34
--- /dev/null
+++ b/gen/com/lc8n/blauploader/BuildConfig.java
@@ -0,0 +1,6 @@
+/** Automatically generated file. DO NOT MODIFY */
+package com.lc8n.blauploader;
+
+public final class BuildConfig {
+ public final static boolean DEBUG = true;
+} \ No newline at end of file
diff --git a/gen/com/lc8n/blauploader/R.java b/gen/com/lc8n/blauploader/R.java
index 64da886..47bafb7 100644
--- a/gen/com/lc8n/blauploader/R.java
+++ b/gen/com/lc8n/blauploader/R.java
@@ -15,36 +15,62 @@ public final class R {
public static final int marcus72=0x7f020001;
}
public static final class id {
- public static final int ProgressBar01=0x7f060007;
- public static final int Record=0x7f060005;
- public static final int Stop=0x7f060006;
- public static final int audio=0x7f060001;
- public static final int browse=0x7f060000;
- public static final int filename=0x7f060003;
- public static final int getlocation=0x7f060009;
- public static final int locate=0x7f060002;
- public static final int location=0x7f060008;
- public static final int menuBrowse=0x7f06000b;
- public static final int menuExit=0x7f06000e;
- public static final int menuLocate=0x7f06000d;
- public static final int menuRecord=0x7f06000c;
- public static final int uploadfile=0x7f060004;
- public static final int uploadlocation=0x7f06000a;
+ public static final int ProgressBar01=0x7f070012;
+ public static final int Record=0x7f070010;
+ public static final int Stop=0x7f070011;
+ public static final int audio=0x7f070001;
+ public static final int browse=0x7f070000;
+ public static final int content=0x7f070004;
+ public static final int filename=0x7f070006;
+ public static final int getlocation=0x7f070014;
+ public static final int handle=0x7f070005;
+ public static final int imgquality=0x7f07000c;
+ public static final int locate=0x7f070002;
+ public static final int location=0x7f070013;
+ public static final int menuBrowse=0x7f070017;
+ public static final int menuExit=0x7f07001a;
+ public static final int menuLocate=0x7f070019;
+ public static final int menuRecord=0x7f070018;
+ public static final int menu_settings=0x7f070016;
+ public static final int resize=0x7f07000b;
+ public static final int rotateleft=0x7f070009;
+ public static final int rotateright=0x7f07000a;
+ public static final int slidingDrawer1=0x7f070003;
+ public static final int tab1=0x7f07000d;
+ public static final int tab2=0x7f07000e;
+ public static final int tab3=0x7f07000f;
+ public static final int thumbnail=0x7f070008;
+ public static final int uploadfile=0x7f070007;
+ public static final int uploadlocation=0x7f070015;
}
public static final class layout {
- public static final int filerow=0x7f030000;
- public static final int home=0x7f030001;
- public static final int share=0x7f030002;
- public static final int soundrecorder=0x7f030003;
- public static final int upload=0x7f030004;
- public static final int uploadlocation=0x7f030005;
+ public static final int activity_main=0x7f030000;
+ public static final int filerow=0x7f030001;
+ public static final int home=0x7f030002;
+ public static final int imageshare=0x7f030003;
+ public static final int share=0x7f030004;
+ public static final int share2=0x7f030005;
+ public static final int soundrecorder=0x7f030006;
+ public static final int upload=0x7f030007;
+ public static final int uploadlocation=0x7f030008;
}
public static final class menu {
- public static final int menu=0x7f050000;
+ public static final int activity_main=0x7f060000;
+ public static final int menu=0x7f060001;
}
public static final class string {
public static final int app_name=0x7f040001;
public static final int cancel=0x7f040002;
public static final int hello=0x7f040000;
+ public static final int hello_world=0x7f040003;
+ public static final int menu_settings=0x7f040004;
+ public static final int title_activity_main=0x7f040005;
+ }
+ public static final class style {
+ /** Any customizations for your app running on pre-3.0 devices here
+ Any customizations for your app running on pre-3.0 devices here
+ Any customizations for your app running on pre-3.0 devices here
+ */
+ public static final int LightTheme=0x7f050000;
}
}
diff --git a/res/layout/share.xml b/res/layout/share.xml
index 6a70ea3..2573155 100644
--- a/res/layout/share.xml
+++ b/res/layout/share.xml
@@ -1,30 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent">
- <TextView
- android:text="Enter Filename"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- />
- <EditText
- android:id="@+id/filename"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:focusable="true"
- />
- <TextView
- android:text=" "
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- />
- <Button
- android:id="@+id/uploadfile"
- android:layout_height="wrap_content"
- android:layout_width="fill_parent"
- android:text="Upload"
- />
-
-</LinearLayout>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:android1="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:orientation="vertical" >
+<ScrollView
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:gravity="top"
+ android:orientation="vertical" >
+
+ <TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:text="Enter Filename" />
+
+ <EditText
+ android:id="@+id/filename"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:focusable="true" />
+ <Button
+ android:id="@+id/uploadfile"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:text="Upload" />
+
+ <RelativeLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:gravity="top"
+ android:orientation="horizontal"
+ android:background="#333333"
+ >
+
+ <ImageView
+ android:id="@+id/thumbnail"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerHorizontal="true"
+ android:layout_margin="5dp"
+ android1:layout_marginBottom="5dp" />
+
+ </RelativeLayout>
+ <LinearLayout
+ android:id="@+id/content"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal" >
+ <Button
+ android:id="@+id/rotateleft"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:text="Rotate Left"
+ />
+ <Button
+ android:id="@+id/rotateright"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:text="Rotate Right"
+ />
+
+ <CheckBox
+ android1:id="@+id/resize"
+ android1:layout_width="wrap_content"
+ android1:layout_height="wrap_content"
+ android1:checked="true"
+ android1:text="Reduce Size" />
+
+ </LinearLayout>
+
+
+ </LinearLayout>
+</ScrollView>
+</RelativeLayout>
+
+
+
diff --git a/res/layout/soundrecorder.xml b/res/layout/soundrecorder.xml
index f707e88..58b62a2 100644
--- a/res/layout/soundrecorder.xml
+++ b/res/layout/soundrecorder.xml
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<Button
diff --git a/res/values-v11/strings.xml b/res/values-v11/strings.xml
new file mode 100644
index 0000000..9e611cf
--- /dev/null
+++ b/res/values-v11/strings.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="hello">Hello World, fileBrowser!</string>
+ <string name="app_name">blauploader</string>
+ <string name="cancel">Cancel</string>
+</resources>
diff --git a/res/values-v11/themes.xml b/res/values-v11/themes.xml
new file mode 100644
index 0000000..933554f
--- /dev/null
+++ b/res/values-v11/themes.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <style name="LightTheme" parent="@android:style/Theme.Holo.Light">
+ <!-- Any customizations for your app running on pre-3.0 devices here -->
+ </style>
+</resources> \ No newline at end of file
diff --git a/res/values-v14/strings.xml b/res/values-v14/strings.xml
new file mode 100644
index 0000000..9e611cf
--- /dev/null
+++ b/res/values-v14/strings.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="hello">Hello World, fileBrowser!</string>
+ <string name="app_name">blauploader</string>
+ <string name="cancel">Cancel</string>
+</resources>
diff --git a/res/values-v14/themes.xml b/res/values-v14/themes.xml
new file mode 100644
index 0000000..393e3e2
--- /dev/null
+++ b/res/values-v14/themes.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <style name="LightTheme" parent="@android:style/Theme.Holo.Light.DarkActionBar">
+ <!-- Any customizations for your app running on pre-3.0 devices here -->
+ </style>
+</resources> \ No newline at end of file
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 9e611cf..c5d02ba 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -1,6 +1,11 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
- <string name="hello">Hello World, fileBrowser!</string>
- <string name="app_name">blauploader</string>
- <string name="cancel">Cancel</string>
-</resources>
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="hello">Hello World, fileBrowser!</string>
+ <string name="app_name">blauploader</string>
+ <string name="cancel">Cancel</string>
+ <string name="hello_world">Hello world!</string>
+ <string name="menu_settings">Settings</string>
+ <string name="title_activity_main">MainActivity</string>
+
+</resources> \ No newline at end of file
diff --git a/res/values/themes.xml b/res/values/themes.xml
new file mode 100644
index 0000000..884ba69
--- /dev/null
+++ b/res/values/themes.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <style name="LightTheme" parent="@android:style/Theme.Light">
+ <!-- Any customizations for your app running on pre-3.0 devices here -->
+ </style>
+</resources> \ No newline at end of file
diff --git a/src/com/lc8n/blauploader/FileShare.java b/src/com/lc8n/blauploader/FileShare.java
index 6b474a5..f03e37f 100644
--- a/src/com/lc8n/blauploader/FileShare.java
+++ b/src/com/lc8n/blauploader/FileShare.java
@@ -1,7 +1,12 @@
package com.lc8n.blauploader;
import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.FileOutputStream;
+import java.io.IOException;
import java.io.InputStream;
+import java.io.OutputStream;
import android.app.Activity;
import android.app.AlertDialog;
@@ -11,6 +16,12 @@ import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.Cursor;
+import android.graphics.Bitmap;
+import android.graphics.Bitmap.CompressFormat;
+import android.graphics.BitmapFactory;
+import android.graphics.Matrix;
+import android.graphics.Point;
+import android.media.ThumbnailUtils;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
@@ -18,10 +29,17 @@ import android.os.Message;
import android.provider.MediaStore;
import android.telephony.SmsManager;
import android.util.Log;
+import android.view.Display;
import android.view.View;
+import android.view.animation.Animation;
+import android.view.animation.LinearInterpolator;
+import android.view.animation.RotateAnimation;
import android.view.inputmethod.InputMethodManager;
import android.widget.Button;
+import android.widget.CheckBox;
import android.widget.EditText;
+import android.widget.ImageView;
+import android.widget.Toast;
public class FileShare extends Activity {
private EditText text;
@@ -29,270 +47,466 @@ public class FileShare extends Activity {
private Handler pbHandle = null;
private ProgressDialog progressDialog;
private ProgressDialog preparing;
- private InputStream is;
private String fileName;
private Thread thread;
private AlertDialog alert;
private File file;
-
-
+ private File blaFile;
+ private ImageView thumbView;
+ private int imgRotate = 0;
+
public void onCreate(Bundle savedInstanceState)
{
- super.onCreate(savedInstanceState);
- setContentView(R.layout.share);
-
- File blaDirectory = new File("/sdcard/blaupload/");
- blaDirectory.mkdirs();
-
- Intent intent = getIntent();
- Bundle extras = intent.getExtras();
- String action = intent.getAction();
-
- text = (EditText) findViewById(R.id.filename);
- text.requestFocus();
- ((InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE))
- .showSoftInput(text, 0);
-// text.setOnFocusChangeListener(new View.OnFocusChangeListener() {
-//
-// public void onFocusChange(View v, boolean hasFocus) {
-// // TODO Auto-generated method stub
-// if (hasFocus)
-// {
-//
-// }
-// }
-// });
-// progressBar = (ProgressBar) findViewById(R.id.uploadprogress);
-
- alert = new AlertDialog.Builder(this).create();
- alert.setTitle("FTP Response");
- alert.setButton("OK", new DialogInterface.OnClickListener() {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.share);
+
+ //Temp files are stored in this folder
+ final File blaDirectory = new File("/sdcard/blaupload");
+ blaDirectory.mkdirs();
+
+ Intent intent = getIntent();
+ Bundle extras = intent.getExtras();
+ String action = intent.getAction();
+
+ //Set up filename input text box
+ text = (EditText) findViewById(R.id.filename);
+ text.requestFocus();
+ ((InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE))
+ .showSoftInput(text, 0);
+
+ //Set up alert box for any FTP error messages
+ alert = new AlertDialog.Builder(this).create();
+ alert.setTitle("FTP Response");
+ alert.setButton(AlertDialog.BUTTON_POSITIVE, "OK", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
alert.dismiss();
}
});
- progressDialog = new ProgressDialog(this);
-
-
- progressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
- progressDialog.setMessage("Blauploading...");
- progressDialog.setCancelable(true);
- progressDialog.setProgress(0);
+
+ //Set up progress dialog which will show upload progress
+ progressDialog = new ProgressDialog(this);
+
+ progressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
+ progressDialog.setMessage("Blauploading...");
+ progressDialog.setCancelable(true);
+ progressDialog.setProgress(0);
+
+
+ progressDialog.setButton(AlertDialog.BUTTON_NEGATIVE, getText(R.string.cancel), new DialogInterface.OnClickListener() {
- progressDialog.setButton(getText(R.string.cancel), new DialogInterface.OnClickListener() {
+ public void onClick(DialogInterface dialog, int which) {
+ // Cancel the upload!
+ progressDialog.dismiss();
+ thread.interrupt();
- public void onClick(DialogInterface dialog, int which) {
- // Cancel the upload!
- progressDialog.dismiss();
- thread.stop();
-
-
- }
- });
-
- preparing = new ProgressDialog(this);
- preparing.setProgressStyle(ProgressDialog.STYLE_SPINNER);
- preparing.setMessage("Preparing to Blaupload...");
- preparing.setCancelable(true);
- preparing.setButton(getText(R.string.cancel), new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog, int which) {
- // Cancel the upload!
- progressDialog.dismiss();
- thread.interrupt();
-
-
- }
- });
+ }
+ });
+
+ //Set up preparing dialog which will be shown when connecting to FTP
+ preparing = new ProgressDialog(this);
+ preparing.setProgressStyle(ProgressDialog.STYLE_SPINNER);
+ preparing.setMessage("Preparing to Blaupload...");
+ preparing.setCancelable(true);
+ preparing.setButton(AlertDialog.BUTTON_NEGATIVE, getText(R.string.cancel), new DialogInterface.OnClickListener() {
+ public void onClick(DialogInterface dialog, int which) {
+ // Cancel the upload!
+ progressDialog.dismiss();
+ thread.interrupt();
+ }
+ });
+
+ //Handles responses from the FTP thread
+ pbHandle = new Handler(){
+
+ @Override
+ public void handleMessage(Message msg) {
+
+ //Get the current progress (file size completed in bytes)
+ long progress = msg.getData().getLong("progress_update");
+ float percent = (progress/fileSize)*100.0f;
+ Integer intProgress = Math.round(percent);
+ int kB = Math.round(progress / 1024);
- pbHandle = new Handler(){
+ //TODO: Make this not terrible
+ //Checks for filesize - 10kB because that's the last guaranteed response
+ //But there might be more, which would result in multiple SMSs
+ //Need a nicer way of cleaning up when it's done
+ if(intProgress==100 || progress>(fileSize-10240)) {
+ SmsManager sms = SmsManager.getDefault();
+ sms.sendTextMessage("07927278978", null, "New image blauploaded: http://www.blaupload.co.uk/"+fileName,null, null);
+ blaFile.delete();
+ progressDialog.dismiss();
+ }
+ else {
+ //Really not sure why this is in an else
+ //Close the prepare dialog and start the progress dialog
+ preparing.dismiss();
+ progressDialog.show();
+ progressDialog.setProgress(kB);
+ }
- @Override
- public void handleMessage(Message msg) {
+ int code = msg.getData().getInt("response");
- /* get the value from the Message */
+ //Handle FTP response codes
+ switch (code) {
+ case 0:
+ break;
+ case 600:
+ alert.setMessage("File Already Exists! Please Rename");
+ alert.show();
+ progressDialog.dismiss();
+ thread.interrupt();
+ break;
+ case 226:
+ //This is the response code for complete, but we usually don't receive it
+ //TODO: Make sure we receive it
+ //SmsManager sms = SmsManager.getDefault();
+ //sms.sendTextMessage("07927278978", null, "New image blauploaded: http://www.blaupload.co.uk/"+fileName,null, null);
+ progressDialog.dismiss();
+ break;
+ case 800:
+ alert.setMessage("Unable To Connect To Server!");
+ alert.show();
+ progressDialog.dismiss();
+ break;
+ case 801:
+ alert.setMessage("Unable To Log In!");
+ alert.show();
+ progressDialog.dismiss();
+ break;
+ case 804:
+ alert.setMessage("Unable To Get File List!");
+ alert.show();
+ progressDialog.dismiss();
+ break;
+ case 805:
+ alert.setMessage("Unable To Get Upload File!");
+ alert.show();
+ progressDialog.dismiss();
+ break;
+ case 806:
+ alert.setMessage("FTP Server Did Not Respond!");
+ alert.show();
+ progressDialog.dismiss();
+ break;
+ case 807:
+ alert.setMessage("Unable To Log Out!");
+ alert.show();
+ progressDialog.dismiss();
+ break;
+ default:
+ alert.setMessage("Response Code: "+code);
+ alert.show();
+ progressDialog.dismiss();
+ break;
- long progress = msg.getData().getLong("progress_update");
- System.out.println(progress+"/"+fileSize);
-
- float percent = (progress/fileSize)*100.0f;
- System.out.println(percent);
- Integer intProgress = Math.round(percent);
- System.out.println(intProgress);
- int kB = Math.round(progress / 1024);
- if(intProgress==100 || progress>(fileSize-1024)) {
- progressDialog.dismiss();
- }
- else {
- preparing.dismiss();
- progressDialog.show();
- progressDialog.setProgress(kB);
- }
+ }
+ }
+ };
+
+ //Handler for "Upload" button
+ //This is where the magic happens
+ final Button button = (Button) findViewById(R.id.uploadfile);
+ button.setOnClickListener(new View.OnClickListener() {
+
+ public void onClick(View v) {
+
+ //Show the preparing dialog while this is all happening
+ //TODO: There is lag between pressing upload and this happening. Why?
+ preparing.show();
- int code = msg.getData().getInt("response");
+ //Check box for resizing/reducing quality of image
+ CheckBox checkBox = (CheckBox)findViewById(R.id.resize);
+
+ boolean resizeImage = checkBox.isChecked();
+ fileName = text.getText().toString();
- switch (code) {
- case 0:
- break;
- case 600:
- alert.setMessage("File Already Exists! Please Rename");
- alert.show();
- progressDialog.dismiss();
- thread.interrupt();
- break;
- case 226:
- progressDialog.dismiss();
- SmsManager sms = SmsManager.getDefault();
- sms.sendTextMessage("07927278978", null, "New image blauploaded: http://www.blaupload.co.uk/"+fileName,null, null);
- break;
- case 800:
- alert.setMessage("Unable To Connect To Server!");
- alert.show();
- progressDialog.dismiss();
- break;
- case 801:
- alert.setMessage("Unable To Log In!");
- alert.show();
- progressDialog.dismiss();
- break;
- case 804:
- alert.setMessage("Unable To Get File List!");
- alert.show();
- progressDialog.dismiss();
- break;
- case 805:
- alert.setMessage("Unable To Get Upload File!");
- alert.show();
- progressDialog.dismiss();
- break;
- case 806:
- alert.setMessage("FTP Server Did Not Respond!");
- alert.show();
- progressDialog.dismiss();
- break;
- case 807:
- alert.setMessage("Unable To Log Out!");
- alert.show();
- progressDialog.dismiss();
- break;
- default:
- alert.setMessage("Response Code: "+code);
- alert.show();
- progressDialog.dismiss();
- break;
-
-
- }
+ blaFile = new File(blaDirectory+"/"+fileName);
+
+ //Perform any image manipulation now (currently rotate and quality)
+ if (imgRotate != 0 || resizeImage) {
+
+ try {
+ rotateBitmap(file, blaFile, imgRotate, 80);
+
+ } catch (FileNotFoundException e) {
+ Log.e("blauploader", "File not found when rotating");
+ e.printStackTrace();
+ } catch (IOException e) {
+ Log.e("blauploader", "IOException when rotating");
+ e.printStackTrace();
+ }
+ } else {
+ try {
+ //Copy the file to our temp dir so we don't break the gallery by renaming
+ //Only do this if we're not using the rotate function, as that does it anyway
+ //TODO: Find a better way to handle this, allow renaming of existing file
+ copyFile(file, blaFile);
+ } catch (IOException e) {
+ Log.e("blauploader", "IOException when copying");
+ e.printStackTrace();
+ }
+ }
+
+ //Set the filesize again in case it was changed above
+ fileSize = blaFile.length();
+
+ //Start the upload
+ FileUpload uploader = new FileUpload(blaFile, pbHandle);
+ thread = new Thread(uploader);
+ thread.start();
+ progressDialog.setMax(Math.round(fileSize/1024));
+
+
}
- };
-
-
-
- final Button button = (Button) findViewById(R.id.uploadfile);
- button.setOnClickListener(new View.OnClickListener() {
+ });
+
+ //Rotate button handlers
+ final Button rLeft = (Button) findViewById(R.id.rotateleft);
+ rLeft.setOnClickListener(new View.OnClickListener() {
+
+ public void onClick(View v) {
- public void onClick(View v) {
-
-
+ //Rotate the thumbnail on the screen
+ RotateAnimation rotateAnimation = new RotateAnimation(imgRotate, imgRotate-90,
+ Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
+ rotateAnimation.setInterpolator(new LinearInterpolator());
+ rotateAnimation.setDuration(100);
+ rotateAnimation.setFillAfter(true);
+ thumbView.startAnimation(rotateAnimation);
+
+ //Just keep track of the total rotate, we'll do the rotating of the actual image later
+ if(imgRotate == -270) {
+ imgRotate = 0;
+ } else {
+ imgRotate -= 90;
+ }
- fileName = text.getText().toString();
- String path = file.getParent();
- System.out.println(path);
- System.out.println(fileName);
-
-
- File newName = new File(path+"/"+fileName);
- System.out.println(newName.getAbsolutePath());
- file.renameTo(newName);
- file = newName;
- System.out.println("a"+file.getAbsolutePath());
- FileUpload uploader = new FileUpload(file, pbHandle);
- thread = new Thread(uploader);
- thread.start();
- progressDialog.setMax(Math.round(fileSize/1024));
- preparing.show();
-
-
-
+ }
+ });
+
+ final Button rRight = (Button) findViewById(R.id.rotateright);
+ rRight.setOnClickListener(new View.OnClickListener() {
+
+ public void onClick(View v) {
-
-// Toast toast = Toast.makeText(getApplicationContext(), "Upload Complete!", 10);
-// toast.show();
+ //Rotate the thumbnail on the screen
+ RotateAnimation rotateAnimation = new RotateAnimation(imgRotate, imgRotate + 90,
+ Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
+ rotateAnimation.setInterpolator(new LinearInterpolator());
+ rotateAnimation.setDuration(100);
+ rotateAnimation.setFillAfter(true);
+ thumbView.startAnimation(rotateAnimation);
+
+ //Just keep track of the total rotate, we'll do the rotating of the actual image later
+ if (imgRotate == 270) {
+ imgRotate = 0;
+ } else {
+ imgRotate += 90;
}
- });
-
-
-
-
- // if this is from the share menu
- if (Intent.ACTION_SEND.equals(action))
+
+ }});
+
+ // if this is from the share menu
+ //TODO: Actually we want to do this for any image regardless of where it came from
+ if (Intent.ACTION_SEND.equals(action))
+ {
+ if (extras.containsKey(Intent.EXTRA_STREAM))
+ {
+ try
+ {
+ // Get resource path from intent callee
+ Uri uri = (Uri) extras.getParcelable(Intent.EXTRA_STREAM);
+ // Query gallery for camera picture via
+ // Android ContentResolver interface
+ ContentResolver cr = getContentResolver();
+
+ String[] projection = { MediaStore.MediaColumns.DISPLAY_NAME, MediaStore.MediaColumns.MIME_TYPE, MediaStore.MediaColumns.SIZE, MediaStore.MediaColumns.DATA, MediaStore.MediaColumns.WIDTH, MediaStore.MediaColumns.HEIGHT};
+ Cursor cur = cr.query(uri, projection, null, null, null);
+ cur.moveToFirst();
+
+ fileName = cur.getString(3);
+ fileSize = cur.getLong(2);
+ int srcWidth = cur.getInt(4);
+ int srcHeight = cur.getInt(5);
+
+ cur.close();
+ String[] fileParts = fileName.split("/");
+ for (int i = 0; i < fileParts.length; i++) {
+ System.out.println(fileParts[i]);
+ }
+ text.setText(fileParts[fileParts.length-1]);
+ text.setSelection(0,fileParts[fileParts.length-1].indexOf("."));
+ file = new File(fileName);
+
+ //Get the screen size, so we can scale the thumbnail
+ Display display = getWindowManager().getDefaultDisplay();
+ int dspWidth = 0;
+ int dspHeight = 0;
+
+ //getWidth/Height are deprecated in 13, getSize is not supported pre-13
+ if(android.os.Build.VERSION.SDK_INT >= 13) {
+ Point size = new Point();
+ display.getSize(size);
+ dspWidth = size.x - 20;
+ dspHeight = size.y - 20;
+ } else {
+ dspWidth = display.getWidth();
+ dspHeight = display.getHeight();
+ }
+
+ float ratio = 0;
+
+ //Scale the thumbnail so neither dimension is bigger than the screen width
+ if(srcWidth > srcHeight) {
+ ratio = (float)dspWidth / (float)srcWidth;
+ dspHeight = Math.round(srcHeight * ratio);
+ } else {
+ ratio = (float)dspWidth / (float)srcHeight;
+ dspHeight = dspWidth;
+ dspWidth = Math.round(srcWidth * ratio);
+ }
+
+ //Get the thumbnail from the ether
+ Bitmap sourceImage= BitmapFactory.decodeFile(fileName);
+ Bitmap thumbnail = ThumbnailUtils.extractThumbnail(sourceImage, dspWidth, dspHeight);
+
+ thumbView = (ImageView)findViewById(R.id.thumbnail);
+ thumbView.setImageBitmap(thumbnail);
+
+ return;
+ } catch (Exception e)
+ {
+ Log.e(this.getClass().getName(), e.toString());
+ }
+
+ //TODO: I guess this was supposed to be some way to handle sharing text
+ //That should probably be in the texting screen which I lost
+ } else if (extras.containsKey(Intent.EXTRA_TEXT))
+ {
+ return;
+ }
+ }
+ }
+
+ //Code from http://bricolsoftconsulting.com/2012/12/07/handling-large-images-on-android
+ private boolean rotateBitmap(File inFile, File outFile, int angle, int quality)
+ throws FileNotFoundException, IOException
+ {
+
+
+ //TODO: Faster way for ICS+, uses OpenGL
+ //See package com.android.gallery3d.photoeditor.RendererUtils from AOSP/CM gallery to create a GL texture
+ /*if(android.os.Build.VERSION.SDK_INT >= 14) {
+ Bitmap bitmap = BitmapFactory.decodeFile(inFile.getAbsolutePath());
+
+ Texture texture = RendererUtils.
+ EffectContext context = EffectContext.createWithCurrentGlContext();
+ Effect rotate = context.getFactory().createEffect(EffectFactory.EFFECT_ROTATE);
+ rotate.setParameter("angle", (int) imgRotate);
+ }*/
+
+ // Declare
+ FileInputStream inStream = null;
+ FileOutputStream outStream = null;
+
+ // Create options
+ BitmapFactory.Options options = new BitmapFactory.Options();
+
+ // Create transform matrix
+ Matrix matrix = new Matrix();
+ matrix.postRotate(angle);
+
+ // Increment inSampleSize progressively to reduce image resolution and size. If
+ // the program is properly managing memory, and you don't have other large images
+ // loaded in memory, this loop will generally not need to go through more than 3
+ // iterations. To be safe though, we stop looping after a certain amount of tries
+ // to avoid infinite loops
+ for (options.inSampleSize = 1; options.inSampleSize <= 32; options.inSampleSize++)
+ {
+ try
{
- if (extras.containsKey(Intent.EXTRA_STREAM))
+ // Load the bitmap from file
+ inStream = new FileInputStream(inFile);
+ Bitmap originalBitmap = BitmapFactory.decodeStream(inStream, null, options);
+
+ // Rotate the bitmap
+ Bitmap rotatedBitmap = Bitmap.createBitmap(originalBitmap, 0, 0, originalBitmap.getWidth(), originalBitmap.getHeight(), matrix, true);
+
+ // Save the rotated bitmap
+ outStream = new FileOutputStream(outFile);
+
+ rotatedBitmap.compress(CompressFormat.JPEG, quality, outStream);
+ outStream.close();
+
+ // Recycle the bitmaps to immediately free memory
+ originalBitmap.recycle();
+ originalBitmap = null;
+ rotatedBitmap.recycle();
+ rotatedBitmap = null;
+
+ // Return
+ return true;
+ }
+ catch (OutOfMemoryError e)
+ {
+ // If an OutOfMemoryError occurred, we continue with for loop and next inSampleSize value
+ }
+ finally
+ {
+ // Clean-up if we failed on save
+ if (outStream != null)
+ {
+ try
{
- try
- {
- // Get resource path from intent callee
- Uri uri = (Uri) extras.getParcelable(Intent.EXTRA_STREAM);
-
- // Query gallery for camera picture via
- // Android ContentResolver interface
- ContentResolver cr = getContentResolver();
- is = cr.openInputStream(uri);
-
- String[] projection = { MediaStore.MediaColumns.DISPLAY_NAME, MediaStore.MediaColumns.MIME_TYPE, MediaStore.MediaColumns.SIZE, MediaStore.MediaColumns.DATA };
- Cursor cur = cr.query(uri, projection, null, null, null);
- cur.moveToFirst();
-
- fileName = cur.getString(3);
- fileSize = cur.getLong(2);
- System.out.println(cur.getString(3));
- cur.close();
- String[] fileParts = fileName.split("/");
- for (int i = 0; i < fileParts.length; i++) {
- System.out.println(fileParts[i]);
- }
- text.setText(fileParts[fileParts.length-1]);
- text.setSelection(fileParts[fileParts.length-1].indexOf("."));
- file = new File(fileName);
-
-// text.setSelection(0, filename.indexOf("."));
-// text.requestFocus();
-
- InputMethodManager mgr = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
- // only will trigger it if no physical keyboard is open
- mgr.showSoftInput(text, InputMethodManager.SHOW_FORCED);
-
-
- // Get binary bytes for encode
-// byte[] data = getBytesFromFile(is);
-// cr.
-//
-// // base 64 encode for text transmission (HTTP)
-// byte[] encoded_data = Base64.encodeBase64(data);
-// String data_string = new String(encoded_data); // convert to string
-//
-// SendRequest(data_string);
-
- return;
- } catch (Exception e)
- {
- Log.e(this.getClass().getName(), e.toString());
- }
-
- } else if (extras.containsKey(Intent.EXTRA_TEXT))
+ outStream.close();
+ }
+ catch (IOException e)
{
- return;
}
+ }
}
-
+ }
+
+
+
+ // Failed
+ return false;
}
+ //Copies a file from the source to dhe destination
+ //Currently used to create a temporary copy to upload
+ public static void copyFile(File source, File destination) throws IOException {
+ FileInputStream input = new FileInputStream(source);
+ OutputStream output = null;
+
+ //Read the input file into a buffer, and write it out to the new file
+ try {
+ output = new FileOutputStream(destination);
+ byte[] buffer = new byte[1024];
+ int bytesRead = input.read(buffer);
+ while (bytesRead >= 0) {
+ output.write(buffer, 0, bytesRead);
+ bytesRead = input.read(buffer);
+ }
+ } catch (Exception e) {
+ Log.e("blauploader", "Exception in copyFile");
+ e.printStackTrace();
+ } finally {
+ input.close();
+ output.close();
+ }
+ input = null;
+ output = null;
+ }
+
}
diff --git a/src/com/lc8n/blauploader/FileUpload.java b/src/com/lc8n/blauploader/FileUpload.java
index 18f7af8..1d41f8c 100644
--- a/src/com/lc8n/blauploader/FileUpload.java
+++ b/src/com/lc8n/blauploader/FileUpload.java
@@ -23,11 +23,11 @@ import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
-import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
-import java.io.OutputStream;
-import java.net.SocketException;
+import java.net.HttpURLConnection;
+import java.net.MalformedURLException;
+import java.net.URL;
import org.apache.commons.net.ftp.FTP;
import org.apache.commons.net.ftp.FTPClient;
@@ -105,6 +105,22 @@ public class FileUpload implements Runnable{
code = 804;
}
boolean exists = false;
+
+ //Add http file check
+ try {
+ if(fileExists(fileName)) {
+ exists = true;
+ code = 600;
+ }
+ } catch (MalformedURLException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ } catch (IOException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ }
+
+ //FTP file check no longer works on blaupload
for (int i = 0; i < curFiles.length; i++) {
if (curFiles[i].equals(fileName))
{
@@ -179,5 +195,17 @@ public class FileUpload implements Runnable{
ftpClient.abort();
file = null;
}
+
+ public boolean fileExists(String fileName) throws MalformedURLException, IOException {
+ URL blaURL = new URL("http://www.blaupload.co.uk/" + fileName);
+ HttpURLConnection connection = (HttpURLConnection) blaURL.openConnection();
+ connection.setRequestMethod("HEAD");
+ connection.connect();
+ if (connection.getResponseCode() == 404) {
+ return false;
+ } else {
+ return true;
+ }
+ }
}
diff --git a/src/com/lc8n/blauploader/SoundRecorder.java b/src/com/lc8n/blauploader/SoundRecorder.java
index e31fc9f..df4f6b2 100644
--- a/src/com/lc8n/blauploader/SoundRecorder.java
+++ b/src/com/lc8n/blauploader/SoundRecorder.java
@@ -34,9 +34,9 @@ public class SoundRecorder extends Activity{
recordButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
- recordAudio();
Toast toast = Toast.makeText(getApplicationContext(), "Recording!", 10);
toast.show();
+ recordAudio();
}
});
@@ -44,9 +44,9 @@ public class SoundRecorder extends Activity{
stopButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
- stopAudio();
Toast toast = Toast.makeText(getApplicationContext(), "Stopping!", 10);
toast.show();
+ stopAudio();
}
});
@@ -91,14 +91,14 @@ public class SoundRecorder extends Activity{
{
mediaRecorder = new MediaRecorder();
mediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
- mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
- mediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
+ mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
+ mediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
ContentValues contentValues = new ContentValues(3);
contentValues.put(MediaStore.MediaColumns.TITLE, "Blauploaded from Android");
contentValues.put(MediaStore.MediaColumns.DATE_ADDED, System.currentTimeMillis());
// contentValues.put(MediaStore.MediaColumns.MIME_TYPE, mediaRecorder.)
- fileName = "/sdcard/blasound"+System.currentTimeMillis()+".3gp";
+ fileName = "/sdcard/blasound"+System.currentTimeMillis()+".mp4";
mediaRecorder.setOutputFile(fileName);
try {
mediaRecorder.prepare();