diff --git a/.gitignore b/.gitignore index 7071f8b..41af324 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,8 @@ .settings .classpath +.project +bin/ +gen/ +*.dex +*.apk +*.ap_ diff --git a/Android2Poche.apk b/Android2Poche.apk deleted file mode 100644 index 1806a64..0000000 Binary files a/Android2Poche.apk and /dev/null differ diff --git a/bin/classes.dex b/bin/classes.dex index 311acb9..fb79d32 100644 Binary files a/bin/classes.dex and b/bin/classes.dex differ diff --git a/bin/classes/fr/gaulupeau/apps/Poche/Poche$1.class b/bin/classes/fr/gaulupeau/apps/Poche/Poche$1.class index 27ed2e9..0a24904 100644 Binary files a/bin/classes/fr/gaulupeau/apps/Poche/Poche$1.class and b/bin/classes/fr/gaulupeau/apps/Poche/Poche$1.class differ diff --git a/bin/classes/fr/gaulupeau/apps/Poche/Poche.class b/bin/classes/fr/gaulupeau/apps/Poche/Poche.class index 715fca8..a4c3a5b 100644 Binary files a/bin/classes/fr/gaulupeau/apps/Poche/Poche.class and b/bin/classes/fr/gaulupeau/apps/Poche/Poche.class differ diff --git a/bin/resources.ap_ b/bin/resources.ap_ index 2db9f0b..8ac345d 100644 Binary files a/bin/resources.ap_ and b/bin/resources.ap_ differ diff --git a/res/layout/main.xml b/res/layout/main.xml index 90166ad..78f74de 100644 --- a/res/layout/main.xml +++ b/res/layout/main.xml @@ -19,7 +19,7 @@ @@ -60,7 +60,8 @@ android:maxLines="1" android:scrollHorizontally="false" > - + + diff --git a/res/values/strings.xml b/res/values/strings.xml index cd590b2..ae764f8 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -3,7 +3,7 @@ Welcome to Poche ! Poche By GAULUPEAU Jonathan - To save a web page to Poche, open the page in a browser then tap Share and tap on Poche. \nYou could then see your Poche login page. \nAnd it\'s done ! + To save a web page to Poche, open the page in a browser then tap Share and tap on Poche. \nYou could then see your Poche login page. \nAnd it\'s done ! \nMore infos about Poche at http://www.inthepoche.com Done Which browser would you like to use? http://links.gaulupeau.fr diff --git a/src/fr/gaulupeau/apps/Poche/Poche.java b/src/fr/gaulupeau/apps/Poche/Poche.java index 4077008..51a35d6 100644 --- a/src/fr/gaulupeau/apps/Poche/Poche.java +++ b/src/fr/gaulupeau/apps/Poche/Poche.java @@ -44,10 +44,10 @@ import android.widget.TextView; String action = intent.getAction(); SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0); - String pocheUrl = settings.getString("pocheUrl", ""); + String pocheUrl = settings.getString("pocheUrl", "http://"); // Find out if Sharing or if app has been launched from icon - if (action.equals(Intent.ACTION_SEND)) { + if (action.equals(Intent.ACTION_SEND) && pocheUrl != "http://") { // ACTION_SEND is called when sharing, get the title and URL from // the call String pageUrl = extras.getString("android.intent.extra.TEXT"); @@ -74,7 +74,6 @@ import android.widget.TextView; // If user has more then one browser installed give them a chance to // select which one they want to use - //startActivity(Intent.createChooser(i, getString(R.string.which_browser))); startActivity(i); // That is all this app needs to do, so call finish() this.finish();