Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Buy button pointing to referral program

  • Loading branch information...
commit 976e9d0564c5e6346b99bb298927edd205f0d819 1 parent 0009635
dichro authored
View
2  .cvsignore
@@ -1,4 +1,2 @@
gen
-res
default.properties
-bin
View
6 res/layout/card_control.xml
@@ -8,6 +8,10 @@
<Button xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scan_button" android:layout_width="fill_parent"
- android:layout_height="wrap_content" android:text="Configure new Eye-Fi card" />
+ android:layout_height="wrap_content" android:text="Configure an Eye-Fi card" />
+ <Button xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/buy_button" android:layout_width="fill_parent"
+ android:layout_height="wrap_content" android:text="Order a new Eye-Fi card" />
+
</LinearLayout>
View
9 src/to/rcpt/fefi/EyefiCardListActivity.java
@@ -6,6 +6,7 @@
import android.content.DialogInterface;
import android.content.Intent;
import android.database.Cursor;
+import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.ContextMenu;
@@ -35,6 +36,14 @@ public void onClick(View v) {
startActivityForResult(i, 0);
}
});
+ b = (Button)findViewById(R.id.buy_button);
+ b.setOnClickListener(new OnClickListener() {
+ public void onClick(View v) {
+ Intent i = new Intent().setAction(Intent.ACTION_VIEW);
+ i.setData(Uri.parse("http://eyefi.tellapal.com/a/clk/8rl5j"));
+ startActivity(i);
+ }
+ });
db = DBAdapter.make(this);
c = db.getCards();
startManagingCursor(c);
Please sign in to comment.
Something went wrong with that request. Please try again.