diff --git a/.gitignore b/.gitignore index 67c9793..303263b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ ShareWithTitle/build/apk/ ShareWithTitle/build/classes/ ShareWithTitle/build +.gradle/1.6/taskArtifacts +.gradle/1.6/taskArtifacts/ diff --git a/.gradle/1.6/taskArtifacts/cache.properties b/.gradle/1.6/taskArtifacts/cache.properties deleted file mode 100644 index b2867b7..0000000 --- a/.gradle/1.6/taskArtifacts/cache.properties +++ /dev/null @@ -1 +0,0 @@ -#Sat Jul 20 11:26:01 PDT 2013 diff --git a/.gradle/1.6/taskArtifacts/cache.properties.lock b/.gradle/1.6/taskArtifacts/cache.properties.lock deleted file mode 100644 index 40fdece..0000000 --- a/.gradle/1.6/taskArtifacts/cache.properties.lock +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/.gradle/1.6/taskArtifacts/fileHashes.bin b/.gradle/1.6/taskArtifacts/fileHashes.bin deleted file mode 100644 index fa7fe42..0000000 Binary files a/.gradle/1.6/taskArtifacts/fileHashes.bin and /dev/null differ diff --git a/.gradle/1.6/taskArtifacts/fileSnapshots.bin b/.gradle/1.6/taskArtifacts/fileSnapshots.bin deleted file mode 100644 index 7499cbb..0000000 Binary files a/.gradle/1.6/taskArtifacts/fileSnapshots.bin and /dev/null differ diff --git a/.gradle/1.6/taskArtifacts/outputFileStates.bin b/.gradle/1.6/taskArtifacts/outputFileStates.bin deleted file mode 100644 index 779fe44..0000000 Binary files a/.gradle/1.6/taskArtifacts/outputFileStates.bin and /dev/null differ diff --git a/.gradle/1.6/taskArtifacts/taskArtifacts.bin b/.gradle/1.6/taskArtifacts/taskArtifacts.bin deleted file mode 100644 index 8fbbb95..0000000 Binary files a/.gradle/1.6/taskArtifacts/taskArtifacts.bin and /dev/null differ diff --git a/ShareWithTitle/build/incremental/aidl/debug/dependency.store b/ShareWithTitle/build/incremental/aidl/debug/dependency.store deleted file mode 100644 index 8b8400d..0000000 Binary files a/ShareWithTitle/build/incremental/aidl/debug/dependency.store and /dev/null differ diff --git a/ShareWithTitle/build/incremental/aidl/debug/inputs.data b/ShareWithTitle/build/incremental/aidl/debug/inputs.data deleted file mode 100644 index bed4bfb..0000000 --- a/ShareWithTitle/build/incremental/aidl/debug/inputs.data +++ /dev/null @@ -1,3 +0,0 @@ -# incremental data. DO NOT EDIT. -# format is -# Encoding is UTF-8 diff --git a/ShareWithTitle/build/incremental/aidl/debug/outputs.data b/ShareWithTitle/build/incremental/aidl/debug/outputs.data deleted file mode 100644 index bed4bfb..0000000 --- a/ShareWithTitle/build/incremental/aidl/debug/outputs.data +++ /dev/null @@ -1,3 +0,0 @@ -# incremental data. DO NOT EDIT. -# format is -# Encoding is UTF-8 diff --git a/ShareWithTitle/build/incremental/mergeAssets/debug/inputs.data b/ShareWithTitle/build/incremental/mergeAssets/debug/inputs.data deleted file mode 100644 index bed4bfb..0000000 --- a/ShareWithTitle/build/incremental/mergeAssets/debug/inputs.data +++ /dev/null @@ -1,3 +0,0 @@ -# incremental data. DO NOT EDIT. -# format is -# Encoding is UTF-8 diff --git a/ShareWithTitle/build/incremental/mergeAssets/debug/merger.xml b/ShareWithTitle/build/incremental/mergeAssets/debug/merger.xml deleted file mode 100644 index 61df574..0000000 --- a/ShareWithTitle/build/incremental/mergeAssets/debug/merger.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/ShareWithTitle/build/incremental/mergeAssets/debug/outputs.data b/ShareWithTitle/build/incremental/mergeAssets/debug/outputs.data deleted file mode 100644 index bed4bfb..0000000 --- a/ShareWithTitle/build/incremental/mergeAssets/debug/outputs.data +++ /dev/null @@ -1,3 +0,0 @@ -# incremental data. DO NOT EDIT. -# format is -# Encoding is UTF-8 diff --git a/ShareWithTitle/build/incremental/mergeResources/debug/inputs.data b/ShareWithTitle/build/incremental/mergeResources/debug/inputs.data deleted file mode 100644 index 08128f6..0000000 --- a/ShareWithTitle/build/incremental/mergeResources/debug/inputs.data +++ /dev/null @@ -1,16 +0,0 @@ -# incremental data. DO NOT EDIT. -# format is -# Encoding is UTF-8 -1374344744000 12356 75154d4f6e93c8832a74d3c27c8cf0d44672ea3e /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/src/main/res/drawable-xhdpi/ic_launcher.png -1374344744000 211 4e1904afba59d31e5cd6133f6a4c360fa9a5913f /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/src/main/res/values/dimens.xml -1374344744000 226 1df2a848b931c8d007834dbdaf20699eb4df13e5 /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/src/main/res/values/strings.xml -1374344744000 3760 9d45e7de00dac30e9738dc369dece2835bf9677e /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/src/main/res/drawable-mdpi/ic_launcher.png -1374344743000 381 b129b276e01126de5b3b753572ac67cbfc19454c /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/src/main/res/values-v14/styles.xml -1374344744000 181 84de2797380184d8b39af6f829afb092fb956173 /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/src/main/res/values-sw600dp/dimens.xml -1374344743000 324 aa1f5f1723de9aee2669dc44a26fbc0ce776d35f /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/src/main/res/values-v11/styles.xml -1374344743000 680 c76f4caaa7a8dfe9727fa93001b3aee3b22d6716 /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/src/main/res/values/styles.xml -1374346392000 686 650027c97bb28a93265e6fd320e7fee56d23dee1 /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/src/main/res/layout/activity_main.xml -1374344744000 254 25b6404e44acb50c82590049639d4fb5fefbac8e /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/src/main/res/values-sw720dp-land/dimens.xml -1374344744000 24780 6c2954bdacb8129ac00edfd084b98daf226518e3 /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/src/main/res/drawable-xxhdpi/ic_launcher.png -1374344743000 244 045ff451db7cd8e61285502b8c9bbf7405f2078d /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/src/main/res/menu/main.xml -1374344744000 7783 03172612ec7d8d2cc6295a185410c3e6501771aa /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/src/main/res/drawable-hdpi/ic_launcher.png diff --git a/ShareWithTitle/build/incremental/mergeResources/debug/merger.xml b/ShareWithTitle/build/incremental/mergeResources/debug/merger.xml deleted file mode 100644 index 31f2d3a..0000000 --- a/ShareWithTitle/build/incremental/mergeResources/debug/merger.xml +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - - - - - - 16dp - - 16dp - - - - Settings - - Share With Title - - Hello world! - - - - - - - - - - - 128dp - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/ShareWithTitle/build/incremental/mergeResources/debug/outputs.data b/ShareWithTitle/build/incremental/mergeResources/debug/outputs.data deleted file mode 100644 index 267f7de..0000000 --- a/ShareWithTitle/build/incremental/mergeResources/debug/outputs.data +++ /dev/null @@ -1,13 +0,0 @@ -# incremental data. DO NOT EDIT. -# format is -# Encoding is UTF-8 -1374350553000 794 bca07e5e6f52443c8f5f85ba904ed6e2232ee6e4 /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/build/res/all/debug/values/values.xml -1374350553000 203 19aedb7cdc3386344e36087b035a0a6b2b91d4cd /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/build/res/all/debug/values-v11/values.xml -1374350553000 244 045ff451db7cd8e61285502b8c9bbf7405f2078d /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/build/res/all/debug/menu/main.xml -1374350553000 686 650027c97bb28a93265e6fd320e7fee56d23dee1 /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/build/res/all/debug/layout/activity_main.xml -1374350553000 125 fae9d1b71d520745438010c9ca7cde9c81dfefac /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/build/res/all/debug/values-sw720dp-land/values.xml -1374350553000 12356 75154d4f6e93c8832a74d3c27c8cf0d44672ea3e /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/build/res/all/debug/drawable-xhdpi/ic_launcher.png -1374350553000 3760 9d45e7de00dac30e9738dc369dece2835bf9677e /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/build/res/all/debug/drawable-mdpi/ic_launcher.png -1374350553000 217 f02e000d05a079992d2dba18039216c1e6b8784f /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/build/res/all/debug/values-v14/values.xml -1374350553000 24780 6c2954bdacb8129ac00edfd084b98daf226518e3 /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/build/res/all/debug/drawable-xxhdpi/ic_launcher.png -1374350553000 7783 03172612ec7d8d2cc6295a185410c3e6501771aa /Users/sdqali/AndroidStudioProjects/ShareWithTitleProject/ShareWithTitle/build/res/all/debug/drawable-hdpi/ic_launcher.png diff --git a/ShareWithTitle/build/libs/ShareWithTitle-debug.ap_ b/ShareWithTitle/build/libs/ShareWithTitle-debug.ap_ deleted file mode 100644 index 75d6414..0000000 Binary files a/ShareWithTitle/build/libs/ShareWithTitle-debug.ap_ and /dev/null differ diff --git a/ShareWithTitle/build/manifests/debug/AndroidManifest.xml b/ShareWithTitle/build/manifests/debug/AndroidManifest.xml deleted file mode 100644 index fbde61f..0000000 --- a/ShareWithTitle/build/manifests/debug/AndroidManifest.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/ShareWithTitle/build/res/all/debug/drawable-hdpi/ic_launcher.png b/ShareWithTitle/build/res/all/debug/drawable-hdpi/ic_launcher.png deleted file mode 100644 index 55621cc..0000000 Binary files a/ShareWithTitle/build/res/all/debug/drawable-hdpi/ic_launcher.png and /dev/null differ diff --git a/ShareWithTitle/build/res/all/debug/drawable-mdpi/ic_launcher.png b/ShareWithTitle/build/res/all/debug/drawable-mdpi/ic_launcher.png deleted file mode 100644 index 11ec206..0000000 Binary files a/ShareWithTitle/build/res/all/debug/drawable-mdpi/ic_launcher.png and /dev/null differ diff --git a/ShareWithTitle/build/res/all/debug/drawable-xhdpi/ic_launcher.png b/ShareWithTitle/build/res/all/debug/drawable-xhdpi/ic_launcher.png deleted file mode 100644 index 7c02b78..0000000 Binary files a/ShareWithTitle/build/res/all/debug/drawable-xhdpi/ic_launcher.png and /dev/null differ diff --git a/ShareWithTitle/build/res/all/debug/drawable-xxhdpi/ic_launcher.png b/ShareWithTitle/build/res/all/debug/drawable-xxhdpi/ic_launcher.png deleted file mode 100644 index 915d914..0000000 Binary files a/ShareWithTitle/build/res/all/debug/drawable-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/ShareWithTitle/build/res/all/debug/layout/activity_main.xml b/ShareWithTitle/build/res/all/debug/layout/activity_main.xml deleted file mode 100644 index a8b7cd2..0000000 --- a/ShareWithTitle/build/res/all/debug/layout/activity_main.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - diff --git a/ShareWithTitle/build/res/all/debug/menu/main.xml b/ShareWithTitle/build/res/all/debug/menu/main.xml deleted file mode 100644 index f3b10b6..0000000 --- a/ShareWithTitle/build/res/all/debug/menu/main.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - diff --git a/ShareWithTitle/build/res/all/debug/values-sw720dp-land/values.xml b/ShareWithTitle/build/res/all/debug/values-sw720dp-land/values.xml deleted file mode 100644 index 19ee6d2..0000000 --- a/ShareWithTitle/build/res/all/debug/values-sw720dp-land/values.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - 128dp - - diff --git a/ShareWithTitle/build/res/all/debug/values-v11/values.xml b/ShareWithTitle/build/res/all/debug/values-v11/values.xml deleted file mode 100644 index ee8bf4c..0000000 --- a/ShareWithTitle/build/res/all/debug/values-v11/values.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/ShareWithTitle/build/res/all/debug/values-v14/values.xml b/ShareWithTitle/build/res/all/debug/values-v14/values.xml deleted file mode 100644 index 6d5f46f..0000000 --- a/ShareWithTitle/build/res/all/debug/values-v14/values.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/ShareWithTitle/build/res/all/debug/values/values.xml b/ShareWithTitle/build/res/all/debug/values/values.xml deleted file mode 100644 index a7a4a80..0000000 --- a/ShareWithTitle/build/res/all/debug/values/values.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - 16dp - 16dp - - Settings - Share With Title - Hello world! - - - - - - diff --git a/ShareWithTitle/build/source/buildConfig/debug/in/sdqali/sharewithtitle/BuildConfig.java b/ShareWithTitle/build/source/buildConfig/debug/in/sdqali/sharewithtitle/BuildConfig.java deleted file mode 100644 index 295b6bb..0000000 --- a/ShareWithTitle/build/source/buildConfig/debug/in/sdqali/sharewithtitle/BuildConfig.java +++ /dev/null @@ -1,7 +0,0 @@ -/** Automatically generated file. DO NOT MODIFY */ -package in.sdqali.sharewithtitle; - -public final class BuildConfig { - public final static boolean DEBUG = true; - -} \ No newline at end of file diff --git a/ShareWithTitle/build/source/r/debug/in/sdqali/sharewithtitle/R.java b/ShareWithTitle/build/source/r/debug/in/sdqali/sharewithtitle/R.java deleted file mode 100644 index a5f738e..0000000 --- a/ShareWithTitle/build/source/r/debug/in/sdqali/sharewithtitle/R.java +++ /dev/null @@ -1,49 +0,0 @@ -/* AUTO-GENERATED FILE. DO NOT MODIFY. - * - * This class was automatically generated by the - * aapt tool from the resource data it found. It - * should not be modified by hand. - */ - -package in.sdqali.sharewithtitle; - -public final class R { - public static final class attr { - } - public static final class dimen { - public static final int activity_horizontal_margin=0x7f040000; - public static final int activity_vertical_margin=0x7f040001; - } - public static final class drawable { - public static final int ic_launcher=0x7f020000; - } - public static final class id { - public static final int action_settings=0x7f080001; - public static final int greet_text=0x7f080000; - } - public static final class layout { - public static final int activity_main=0x7f030000; - } - public static final class menu { - public static final int main=0x7f070000; - } - public static final class string { - public static final int action_settings=0x7f050000; - public static final int app_name=0x7f050001; - public static final int hello_world=0x7f050002; - } - public static final class style { - /** - Theme customizations available in newer API levels can go in - res/values-vXX/styles.xml, while customizations related to - backward-compatibility can go here. - - API 11 theme customizations can go here. - API 14 theme customizations can go here. - */ - public static final int AppBaseTheme=0x7f060000; - /** All customizations that are NOT specific to a particular API-level can go here. - */ - public static final int AppTheme=0x7f060001; - } -} diff --git a/ShareWithTitle/build/source/r/debug/in/sdqali/sharewithtitle/ShareableOutput.java b/ShareWithTitle/build/source/r/debug/in/sdqali/sharewithtitle/ShareableOutput.java deleted file mode 100644 index b8a0d78..0000000 --- a/ShareWithTitle/build/source/r/debug/in/sdqali/sharewithtitle/ShareableOutput.java +++ /dev/null @@ -1,37 +0,0 @@ -package in.sdqali.sharewithtitle; - -import android.net.Uri; -import android.util.Log; -import android.webkit.URLUtil; -import android.widget.Toast; - -/** - * Created by sdqali on 7/20/13. - */ -public class ShareableOutput { - private String input; - - public ShareableOutput(String input) { - this.input = input; - } - - public boolean isValidUrl() { - if(URLUtil.isHttpsUrl(input) || URLUtil.isHttpUrl(input)) { - return true; - } else { - return false; - } - } - - public String output() { - if (isValidUrl()) { - Log.d("Share With Title", "$$$$$$$$$$$ VALID URL"); - - return new TitleRetriever(input).retrieve(); - } else { - Log.d("Share With Title", "$$$$$$$$$$$ Invalid URL"); - - return input; - } - } -} diff --git a/ShareWithTitle/build/source/r/debug/in/sdqali/sharewithtitle/TitleRetriever.java b/ShareWithTitle/build/source/r/debug/in/sdqali/sharewithtitle/TitleRetriever.java deleted file mode 100644 index 4a99bff..0000000 --- a/ShareWithTitle/build/source/r/debug/in/sdqali/sharewithtitle/TitleRetriever.java +++ /dev/null @@ -1,70 +0,0 @@ -package in.sdqali.sharewithtitle; - -import android.net.http.AndroidHttpClient; -import android.text.AndroidCharacter; -import android.util.Log; - -import org.apache.http.HttpRequest; -import org.apache.http.client.HttpClient; - -import java.io.BufferedReader; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.net.HttpURLConnection; -import java.net.MalformedURLException; -import java.net.URL; - -/** - * Created by sdqali on 7/20/13. - */ -public class TitleRetriever { - private String urlText; - - public TitleRetriever(String url) { - this.urlText = url; - } - - public String retrieve() { - try { - URL url = new URL(urlText); - HttpURLConnection con = (HttpURLConnection) url - .openConnection(); - String content = readStream(con.getInputStream()); - Log.d("Share With Title", "content: " + content); - - return content; - } catch (Exception e) { - Log.d("Share With Title", e.getStackTrace().toString()); - - e.printStackTrace(); -// } catch (IOException e) { -// e.printStackTrace(); - } finally { - return urlText; - } - } - - private String readStream(InputStream in) { - String output = ""; - BufferedReader reader = null; - try { - reader = new BufferedReader(new InputStreamReader(in)); - String line = ""; - while ((line = reader.readLine()) != null) { - output += line; - } - } catch (IOException e) { - e.printStackTrace(); - } finally { - if (reader != null) { - try { - reader.close(); - } catch (IOException e) { - e.printStackTrace(); - } - } - } - return output; - } -}