Ajout du lien vers site officiel Poche. Verification que la conf par defaut a ete modifiee

This commit is contained in:
GAULUPEAU Jonathan 2013-08-09 16:23:12 +02:00
parent 6aab63fdc1
commit 1adef272fd
9 changed files with 13 additions and 7 deletions

6
.gitignore vendored
View File

@ -1,2 +1,8 @@
.settings
.classpath
.project
bin/
gen/
*.dex
*.apk
*.ap_

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -19,7 +19,7 @@
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:scaleType="center"
android:src="@drawable/icon" />
@ -60,7 +60,8 @@
android:maxLines="1"
android:scrollHorizontally="false" >
<requestFocus />
<requestFocus android:layout_width="wrap_content" />
</EditText>
<TextView
@ -69,9 +70,9 @@
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/toppadding"
android:layout_weight="1"
android:paddingBottom="30sp"
android:paddingTop="5sp"
android:text="@string/instructions"
android:autoLink="web"
android:textSize="22sp" >
</TextView>

View File

@ -3,7 +3,7 @@
<string name="hello">Welcome to Poche !</string>
<string name="app_name">Poche</string>
<string name="author">By GAULUPEAU Jonathan</string>
<string name="instructions">To save a web page to Poche, open the page in a browser then tap <i>Share</i> and tap on <i>Poche</i>. \nYou could then see your Poche login page. \nAnd it\'s done !</string>
<string name="instructions">To save a web page to Poche, open the page in a browser then tap <i>Share</i> and tap on <i>Poche</i>. \nYou could then see your Poche login page. \nAnd it\'s done ! \nMore infos about Poche at http://www.inthepoche.com</string>
<string name="btnDone">Done</string>
<string name="which_browser">Which browser would you like to use?</string>
<string name="authorSite">http://links.gaulupeau.fr</string>

View File

@ -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();