Permalink
Browse files

X.commerce Presentation and demo app with PayPal MPL & RedLaser from …

…Android Dev Con 2
  • Loading branch information...
1 parent 4d91fd5 commit bdf4a1200ffe53677ad2c1f7e127ef94a689b72e @ppalavilli ppalavilli committed Nov 10, 2011
Showing with 1,412 additions and 0 deletions.
  1. +9 −0 AndroidDevCamp-Nov2011/PizzaApp-with-RL/.classpath
  2. +33 −0 AndroidDevCamp-Nov2011/PizzaApp-with-RL/.project
  3. +24 −0 AndroidDevCamp-Nov2011/PizzaApp-with-RL/AndroidManifest.xml
  4. +21 −0 AndroidDevCamp-Nov2011/PizzaApp-with-RL/build.properties
  5. +13 −0 AndroidDevCamp-Nov2011/PizzaApp-with-RL/default.properties
  6. BIN AndroidDevCamp-Nov2011/PizzaApp-with-RL/libs/armeabi/libredlaser.so
  7. BIN AndroidDevCamp-Nov2011/PizzaApp-with-RL/libs/paypal_mpl_5-18.jar
  8. BIN AndroidDevCamp-Nov2011/PizzaApp-with-RL/libs/redlasersdk.jar
  9. BIN AndroidDevCamp-Nov2011/PizzaApp-with-RL/qrcodes/RedLaser_QR-5da3f08b7fd8baa2a091d71fd73e843e.png
  10. BIN AndroidDevCamp-Nov2011/PizzaApp-with-RL/qrcodes/RedLaser_QR-abe56d27717186d652258d1de38df294.png
  11. BIN AndroidDevCamp-Nov2011/PizzaApp-with-RL/redlaser.keystore
  12. BIN AndroidDevCamp-Nov2011/PizzaApp-with-RL/res/drawable/bg.png
  13. BIN AndroidDevCamp-Nov2011/PizzaApp-with-RL/res/drawable/icon.png
  14. BIN AndroidDevCamp-Nov2011/PizzaApp-with-RL/res/drawable/overlay_logo.png
  15. BIN AndroidDevCamp-Nov2011/PizzaApp-with-RL/res/drawable/pizzaexpress.png
  16. +29 −0 AndroidDevCamp-Nov2011/PizzaApp-with-RL/res/layout/billing_not_supported.xml
  17. +31 −0 AndroidDevCamp-Nov2011/PizzaApp-with-RL/res/layout/customize.xml
  18. +37 −0 AndroidDevCamp-Nov2011/PizzaApp-with-RL/res/layout/finalize.xml
  19. +27 −0 AndroidDevCamp-Nov2011/PizzaApp-with-RL/res/layout/main.xml
  20. +62 −0 AndroidDevCamp-Nov2011/PizzaApp-with-RL/res/layout/results.xml
  21. +75 −0 AndroidDevCamp-Nov2011/PizzaApp-with-RL/res/layout/review.xml
  22. BIN AndroidDevCamp-Nov2011/PizzaApp-with-RL/res/raw/beep.ogg
  23. +28 −0 AndroidDevCamp-Nov2011/PizzaApp-with-RL/res/values/strings.xml
  24. +871 −0 AndroidDevCamp-Nov2011/PizzaApp-with-RL/src/com/paypal/MobilePayments/Pizza/PizzaMain.java
  25. +109 −0 AndroidDevCamp-Nov2011/PizzaApp-with-RL/src/com/paypal/MobilePayments/Pizza/RedLaserSDK.java
  26. +43 −0 AndroidDevCamp-Nov2011/PizzaApp-with-RL/src/com/paypal/MobilePayments/Pizza/ResultDelegate.java
  27. BIN AndroidDevCamp-Nov2011/andevcon2-v1.pptx
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="gen"/>
+ <classpathentry kind="lib" path="libs/paypal_mpl_5-18.jar"/>
+ <classpathentry kind="lib" path="libs/redlasersdk.jar"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>PizzaApp-with-RL</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ApkBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.paypal.MobilePayments.Pizza" android:versionCode="1"
+ android:versionName="1.0">
+ <application android:icon="@drawable/icon" android:label="@string/app_name">
+ <activity android:name="PizzaMain" android:label="@string/app_name">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ <activity android:name="com.paypal.android.MEP.PayPalActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar"
+ android:configChanges="keyboardHidden|orientation"/>
+
+ <activity android:name="RedLaserSDK" android:configChanges="keyboardHidden|orientation" android:screenOrientation="landscape" android:theme="@android:style/Theme.NoTitleBar"></activity>
+
+ </application>
+ <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="11"/>
+ <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
+ <uses-permission android:name="android.permission.INTERNET"/>
+ <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
+ <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
+ <uses-permission android:name="android.permission.CAMERA"/>
+</manifest>
@@ -0,0 +1,21 @@
+# This file is used to override default values used by the Ant build system.
+#
+# This file must be checked in Version Control Systems, as it is
+# integral to the build system of your project.
+
+# This file is only used by the Ant script.
+
+# You can use this to override default values such as
+# 'source.dir' for the location of your java source folder and
+# 'out.dir' for the location of your output folder.
+
+# You can also use it define how the release builds are signed by declaring
+# the following properties:
+# 'key.store' for the location of your keystore and
+# 'key.alias' for the name of the key to use.
+# The password will be asked during the build when you use the 'release' target.
+
+key.store=./redlaser.keystore
+key.alias=com.ebay.RedLaser
+key.store.password=r3dl4s3r
+key.alias.password=r3dl4s3r
@@ -0,0 +1,13 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system use,
+# "build.properties", and override values to adapt the script to your
+# project structure.
+
+# Indicates whether an apk should be generated for each density.
+split.density=false
+# Project target.
+target=android-8
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+ * Copyright (C) 2010 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content">
+ <TextView
+ android:id="@+id/message"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:paddingLeft="10dip"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+</LinearLayout>
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<RelativeLayout android:id="@+id/RelativeLayout01" android:layout_width="fill_parent"
+android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"
+android:background="@drawable/bg">
+
+
+
+<TextView android:layout_width="wrap_content" android:id="@+id/TextView01"
+android:layout_centerHorizontal="true" android:layout_marginTop="20dip"
+android:layout_height="wrap_content"
+android:layout_alignParentTop="true"
+android:text="Select a size"></TextView>
+
+<Spinner android:id="@+id/Spinner01" android:layout_width="wrap_content"
+android:layout_centerHorizontal="true"
+android:layout_below="@+id/TextView01"
+android:layout_height="wrap_content"></Spinner>
+
+
+<TextView android:layout_below="@+id/Spinner01" android:layout_width="wrap_content" android:id="@+id/TextView02" android:layout_centerHorizontal="true" android:layout_height="wrap_content" android:text="Toppings ($2 each)"></TextView>
+
+<Button android:layout_below="@+id/TextView02" android:layout_width="wrap_content" android:layout_centerHorizontal="true" android:layout_height="wrap_content" android:text="Choose your toppings" android:id="@+id/Button03"></Button>
+
+<Button android:layout_width="wrap_content"
+android:layout_height="wrap_content" android:text="Continue" android:paddingTop="10dip"
+android:layout_alignParentBottom="true"
+android:layout_centerHorizontal="true"
+android:layout_marginBottom="10dip" android:id="@+id/Continue"></Button>
+
+</RelativeLayout>
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<RelativeLayout android:id="@+id/RelativeLayout03" android:layout_width="fill_parent"
+android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"
+android:background="@drawable/bg">
+
+
+
+<TextView android:layout_width="wrap_content" android:id="@+id/TextView01"
+android:layout_centerHorizontal="true" android:layout_height="wrap_content"
+android:layout_marginTop="20dip"
+android:layout_alignParentTop="true"
+android:text="Select the number of pizzas"></TextView>
+
+<Spinner android:id="@+id/Spinner02" android:layout_width="wrap_content"
+android:layout_centerHorizontal="true"
+android:layout_below="@+id/TextView01"
+android:layout_height="wrap_content"></Spinner>
+
+
+<TextView android:layout_below="@+id/Spinner02" android:layout_width="wrap_content"
+ android:id="@+id/TextView02" android:layout_centerHorizontal="true"
+ android:layout_height="wrap_content" android:text="Choose delivery/pickup"></TextView>
+
+ <Spinner android:id="@+id/Spinner03" android:layout_width="wrap_content"
+android:layout_centerHorizontal="true"
+android:layout_below="@+id/TextView02"
+android:layout_height="wrap_content"></Spinner>
+
+
+<Button android:layout_width="wrap_content"
+android:layout_height="wrap_content" android:text="Review Order" android:paddingTop="10dip"
+android:layout_alignParentBottom="true"
+android:layout_centerHorizontal="true"
+android:layout_marginBottom="10dip" android:id="@+id/ReviewOrder"></Button>
+
+</RelativeLayout>
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical" android:layout_width="fill_parent"
+ android:layout_height="fill_parent" android:background="@drawable/bg">
+
+ <ImageView android:id="@+id/ImageView01"
+ android:layout_width="wrap_content" android:layout_height="wrap_content"
+ android:background="@drawable/pizzaexpress"
+ android:layout_alignParentTop="true" android:layout_marginTop="20dip"
+ android:layout_centerHorizontal="true" android:paddingBottom="10dip"></ImageView>
+
+ <TextView android:layout_alignParentBottom="true"
+ android:layout_marginBottom="10dip" android:layout_height="wrap_content"
+ android:id="@+id/buildNumber" android:layout_width="wrap_content"
+ android:layout_centerHorizontal="true" android:text="10.8.6.4682"></TextView>
+
+ <Button android:layout_width="wrap_content"
+ android:layout_above="@+id/buildNumber" android:layout_height="wrap_content"
+ android:text="Buy a pizza!" android:paddingTop="10dip"
+ android:gravity="center_vertical" android:layout_centerHorizontal="true"
+ android:paddingBottom="10dip" android:id="@+id/Buy"></Button>
+ <Button android:layout_above="@+id/Buy" android:layout_width="wrap_content"
+ android:id="@+id/ScanButton" android:layout_height="wrap_content"
+ android:text="Scan a code" android:layout_alignLeft="@+id/Buy"
+ android:layout_alignRight="@+id/Buy"></Button>
+
+</RelativeLayout>
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:fillViewport="true">
+ <LinearLayout android:orientation="vertical"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:gravity="center_horizontal"
+ android:background="@drawable/bg">
+ <ImageView android:id="@+id/ImageView02"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="20dip"
+ android:background="@drawable/pizzaexpress"
+ android:paddingBottom="10dip"/>
+ <TextView android:id="@+id/ResultsTitle"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_marginTop="20dip"
+ android:text="Default"
+ android:textSize="24dip"
+ android:paddingBottom="5dip"
+ android:paddingLeft="10dip"/>
+ <TextView android:id="@+id/ResultsText1"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:text=""
+ android:textSize="16dip"
+ android:paddingBottom="5dip"
+ android:paddingLeft="10dip"/>
+ <TextView android:id="@+id/ResultsText2"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:text=""
+ android:textSize="16dip"
+ android:paddingBottom="5dip"
+ android:paddingLeft="10dip"/>
+ <TextView android:id="@+id/ResultsText3"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:text="Default"
+ android:textSize="12dip"
+ android:paddingBottom="5dip"
+ android:paddingLeft="10dip"/>
+ <LinearLayout android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:gravity="center_horizontal"
+ android:paddingTop="20dip">
+ <Button android:id="@+id/BuyMore"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Buy More!"/>
+ <Button android:id="@+id/Done"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="I'm Done!"/>
+ </LinearLayout>
+ </LinearLayout>
+</ScrollView>
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout android:id="@+id/RelativeLayout01" android:layout_width="fill_parent"
+android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"
+android:background="@drawable/bg"
+android:paddingLeft="20dip"
+android:paddingRight="20dip"
+android:gravity="top">
+
+<TextView android:layout_width="wrap_content" android:layout_height="wrap_content"
+android:layout_marginTop="20dip"
+android:textSize="16dip"
+android:text="Number of Pizzas" android:id="@+id/NumberOfPizzas"></TextView>
+
+
+<TextView android:layout_height="wrap_content" android:layout_below="@+id/NumberOfPizzas" android:textSize="16dip"
+android:layout_width="wrap_content" android:text="Extra Cheese" android:id="@+id/ExtraCheese"></TextView>
+<TextView android:layout_height="wrap_content" android:textSize="16dip"
+android:layout_below="@+id/ExtraCheese"
+android:layout_width="wrap_content" android:text="Pepperoni" android:id="@+id/Pepperoni"></TextView>
+<TextView android:layout_height="wrap_content" android:textSize="16dip"
+android:layout_below="@+id/Pepperoni" android:layout_width="wrap_content" android:text="Mushrooms" android:id="@+id/Mushrooms"></TextView><TextView android:layout_height="wrap_content"
+android:textSize="16dip" android:layout_below="@+id/Mushrooms"
+android:layout_width="wrap_content" android:text="Onions"
+android:id="@+id/Onions"></TextView>
+<TextView android:layout_height="wrap_content"
+android:textSize="16dip" android:layout_below="@+id/Onions"
+android:layout_width="wrap_content" android:text="Subtotal"
+android:id="@+id/Subtotal"></TextView>
+<TextView android:layout_height="wrap_content"
+android:textSize="16dip" android:layout_below="@+id/Subtotal"
+ android:layout_width="wrap_content" android:text="Delivery Fee"
+ android:id="@+id/DeliveryFee"></TextView>
+ <TextView android:layout_below="@+id/DeliveryFee"
+ android:textSize="16dip" android:layout_height="wrap_content"
+ android:layout_width="wrap_content" android:text="Tax"
+ android:id="@+id/Tax"></TextView>
+ <TextView android:layout_below="@+id/Tax"
+ android:layout_height="wrap_content"
+ android:textSize="16dip" android:layout_width="wrap_content"
+ android:text="Total" android:id="@+id/Total"></TextView>
+ <TextView android:layout_below="@+id/Total" android:textSize="16dip"
+ android:layout_height="wrap_content" android:layout_width="wrap_content"
+ android:text="Method:" android:id="@+id/Method"></TextView>
+ <TextView android:layout_height="wrap_content" android:textSize="16dip"
+ android:layout_width="wrap_content"
+
+android:layout_toRightOf="@+id/NumberOfPizzas" android:layout_marginTop="20dip"
+ android:id="@+id/Price" android:text="Price"
+android:paddingLeft="10dip"></TextView>
+
+<TextView android:layout_height="wrap_content"
+android:layout_below="@+id/Price"
+android:layout_width="wrap_content" android:layout_toRightOf="@+id/NumberOfPizzas"
+android:id="@+id/ExtraCheesePrice"
+android:textSize="16dip" android:text="$2.00" android:paddingLeft="10dip"></TextView>
+
+<TextView android:layout_height="wrap_content" android:textSize="16dip" android:layout_below="@+id/ExtraCheesePrice" android:layout_width="wrap_content" android:layout_toRightOf="@+id/NumberOfPizzas" android:text="$2.00" android:id="@+id/PepperoniPrice" android:paddingLeft="10dip"></TextView>
+
+<TextView android:layout_height="wrap_content" android:textSize="16dip" android:layout_below="@+id/PepperoniPrice" android:layout_width="wrap_content" android:layout_toRightOf="@+id/NumberOfPizzas" android:text="$2.00" android:id="@+id/MushroomsPrice" android:paddingLeft="10dip"></TextView>
+
+<TextView android:layout_height="wrap_content" android:textSize="16dip" android:layout_below="@+id/MushroomsPrice" android:layout_width="wrap_content" android:layout_toRightOf="@+id/NumberOfPizzas" android:text="$2.00" android:paddingLeft="10dip" android:id="@+id/OnionsPrice"></TextView>
+
+<TextView android:layout_height="wrap_content" android:textSize="16dip" android:layout_below="@+id/OnionsPrice" android:layout_width="wrap_content" android:layout_toRightOf="@+id/NumberOfPizzas" android:text="$25.99" android:id="@+id/SubtotalPrice" android:paddingLeft="10dip"></TextView>
+
+<TextView android:layout_height="wrap_content" android:textSize="16dip" android:layout_below="@+id/SubtotalPrice" android:layout_width="wrap_content" android:layout_toRightOf="@+id/NumberOfPizzas" android:id="@+id/DeliveryFeePrice" android:paddingLeft="10dip" android:text="$2.00"></TextView>
+
+
+<TextView android:layout_toRightOf="@+id/NumberOfPizzas" android:textSize="16dip" android:layout_below="@+id/DeliveryFeePrice" android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="$1.80" android:id="@+id/TaxPrice" android:paddingLeft="10dip"></TextView>
+
+<TextView android:layout_toRightOf="@+id/NumberOfPizzas" android:textSize="16dip" android:layout_below="@+id/TaxPrice" android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="$33.54" android:id="@+id/TotalPrice" android:paddingLeft="10dip"></TextView>
+
+<TextView android:layout_toRightOf="@+id/NumberOfPizzas" android:textSize="16dip" android:layout_below="@+id/TotalPrice" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/MethodType" android:paddingLeft="10dip" android:text="Delivery"></TextView>
+
+
+</RelativeLayout>
Binary file not shown.
Oops, something went wrong.

0 comments on commit bdf4a12

Please sign in to comment.