Permalink
Browse files

Buy button pointing to referral program

  • Loading branch information...
1 parent 0009635 commit 976e9d0564c5e6346b99bb298927edd205f0d819 dichro committed Oct 1, 2010
Showing with 14 additions and 3 deletions.
  1. +0 −2 .cvsignore
  2. +5 −1 res/layout/card_control.xml
  3. +9 −0 src/to/rcpt/fefi/EyefiCardListActivity.java
View
@@ -1,4 +1,2 @@
gen
-res
default.properties
-bin
@@ -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>
@@ -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);

0 comments on commit 976e9d0

Please sign in to comment.