Permalink
Browse files

Adding sample pizza app with paypal MPL code commented out

  • Loading branch information...
1 parent 4e12fc6 commit d47b600f33a6bb845ce2c1c5370dea220f3190e8 @ppalavilli ppalavilli committed Mar 30, 2011
Showing with 1,317 additions and 0 deletions.
  1. +9 −0 MPLforAndroid-Webinar-March2011/PizzaApp/.classpath
  2. +33 −0 MPLforAndroid-Webinar-March2011/PizzaApp/.project
  3. +12 −0 MPLforAndroid-Webinar-March2011/PizzaApp/.settings/org.eclipse.jdt.core.prefs
  4. +26 −0 MPLforAndroid-Webinar-March2011/PizzaApp/AndroidManifest.xml
  5. BIN MPLforAndroid-Webinar-March2011/PizzaApp/bin/PizzaApp.apk
  6. BIN MPLforAndroid-Webinar-March2011/PizzaApp/bin/classes.dex
  7. BIN MPLforAndroid-Webinar-March2011/PizzaApp/bin/com/paypal/MobilePayments/Pizza/PizzaMain$1.class
  8. BIN MPLforAndroid-Webinar-March2011/PizzaApp/bin/com/paypal/MobilePayments/Pizza/PizzaMain.class
  9. BIN MPLforAndroid-Webinar-March2011/PizzaApp/bin/com/paypal/MobilePayments/Pizza/R$attr.class
  10. BIN MPLforAndroid-Webinar-March2011/PizzaApp/bin/com/paypal/MobilePayments/Pizza/R$drawable.class
  11. BIN MPLforAndroid-Webinar-March2011/PizzaApp/bin/com/paypal/MobilePayments/Pizza/R$id.class
  12. BIN MPLforAndroid-Webinar-March2011/PizzaApp/bin/com/paypal/MobilePayments/Pizza/R$layout.class
  13. BIN MPLforAndroid-Webinar-March2011/PizzaApp/bin/com/paypal/MobilePayments/Pizza/R$string.class
  14. BIN MPLforAndroid-Webinar-March2011/PizzaApp/bin/com/paypal/MobilePayments/Pizza/R.class
  15. BIN MPLforAndroid-Webinar-March2011/PizzaApp/bin/com/paypal/MobilePayments/Pizza/ResultDelegate.class
  16. BIN MPLforAndroid-Webinar-March2011/PizzaApp/bin/resources.ap_
  17. +17 −0 MPLforAndroid-Webinar-March2011/PizzaApp/build.properties
  18. +84 −0 MPLforAndroid-Webinar-March2011/PizzaApp/build.xml
  19. +13 −0 MPLforAndroid-Webinar-March2011/PizzaApp/default.properties
  20. +71 −0 MPLforAndroid-Webinar-March2011/PizzaApp/gen/com/paypal/MobilePayments/Pizza/R.java
  21. BIN MPLforAndroid-Webinar-March2011/PizzaApp/lib/PayPal_MPL.jar
  22. +10 −0 MPLforAndroid-Webinar-March2011/PizzaApp/local.properties
  23. BIN MPLforAndroid-Webinar-March2011/PizzaApp/res/drawable/bg.png
  24. BIN MPLforAndroid-Webinar-March2011/PizzaApp/res/drawable/icon.png
  25. BIN MPLforAndroid-Webinar-March2011/PizzaApp/res/drawable/pizzaexpress.png
  26. +31 −0 MPLforAndroid-Webinar-March2011/PizzaApp/res/layout/customize.xml
  27. +37 −0 MPLforAndroid-Webinar-March2011/PizzaApp/res/layout/finalize.xml
  28. +35 −0 MPLforAndroid-Webinar-March2011/PizzaApp/res/layout/main.xml
  29. +62 −0 MPLforAndroid-Webinar-March2011/PizzaApp/res/layout/results.xml
  30. +73 −0 MPLforAndroid-Webinar-March2011/PizzaApp/res/layout/review.xml
  31. +5 −0 MPLforAndroid-Webinar-March2011/PizzaApp/res/values/strings.xml
  32. +756 −0 MPLforAndroid-Webinar-March2011/PizzaApp/src/com/paypal/MobilePayments/Pizza/PizzaMain.java
  33. +43 −0 MPLforAndroid-Webinar-March2011/PizzaApp/src/com/paypal/MobilePayments/Pizza/ResultDelegate.java
@@ -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="lib/PayPal_MPL.jar"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>PizzaApp</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,12 @@
+#Tue Mar 29 20:41:31 PDT 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
@@ -0,0 +1,26 @@
+<?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"/>
+ -->
+ </application>
+ <uses-sdk android:minSdkVersion="3" />
+ <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
+ <!--
+ <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
+ <uses-permission android:name="android.permission.INTERNET"/>
+ -->
+</manifest>
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,17 @@
+# 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.
+
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="PizzaApp" default="help">
+
+<!-- The local.properties file is created and updated by the 'android'
+ tool.
+ It contains the path to the SDK. It should *NOT* be checked into
+ Version Control Systems. -->
+ <property file="local.properties" />
+
+ <!-- The build.properties file can be created by you and is never touched
+ by the 'android' tool. This is the place to change some of the
+ default property values used by the Ant rules.
+ Here are some properties you may want to change/update:
+
+ source.dir
+ The name of the source directory. Default is 'src'.
+ out.dir
+ The name of the output directory. Default is 'bin'.
+
+ Properties related to the SDK location or the project target should
+ be updated using the 'android' tool with the 'update' action.
+
+ This file is an integral part of the build system for your
+ application and should be checked into Version Control Systems.
+
+ -->
+ <property file="build.properties" />
+
+ <!-- The default.properties file is created and updated by the 'android'
+ tool, as well as ADT.
+ This file is an integral part of the build system for your
+ application and should be checked into Version Control Systems. -->
+ <property file="default.properties" />
+
+ <!-- Custom Android task to deal with the project target, and import the
+ proper rules.
+ This requires ant 1.6.0 or above. -->
+ <path id="android.antlibs">
+ <pathelement path="${sdk.dir}/tools/lib/anttasks.jar" />
+ <pathelement path="${sdk.dir}/tools/lib/sdklib.jar" />
+ <pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" />
+ </path>
+
+ <taskdef name="setup"
+ classname="com.android.ant.SetupTask"
+ classpathref="android.antlibs" />
+
+<!-- extension targets. Uncomment the ones where you want to do custom work
+ in between standard targets -->
+<!--
+ <target name="-pre-build">
+ </target>
+ <target name="-pre-compile">
+ </target>
+
+ [This is typically used for code obfuscation.
+ Compiled code location: ${out.classes.absolute.dir}
+ If this is not done in place, override ${out.dex.input.absolute.dir}]
+ <target name="-post-compile">
+ </target>
+-->
+
+
+ <!-- Execute the Android Setup task that will setup some properties
+ specific to the target, and import the build rules files.
+
+ The rules file is imported from
+ <SDK>/platforms/<target_platform>/ant/ant_rules_r#.xml
+
+ To customize existing targets, there are two options:
+ - Customize only one target:
+ - copy/paste the target into this file, *before* the
+ <setup> task.
+ - customize it to your needs.
+ - Customize the whole script.
+ - copy/paste the content of the rules files (minus the top node)
+ into this file, *after* the <setup> task
+ - disable the import of the rules by changing the setup task
+ below to <setup import="false" />.
+ - customize to your needs.
+ -->
+ <setup />
+
+</project>
@@ -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
@@ -0,0 +1,71 @@
+/* AUTO-GENERATED FILE. DO NOT MODIFY.
+ *
+ * This class was automatically generated by the
+ * aapt tool from the resource data it found. It
+ * should not be modified by hand.
+ */
+
+package com.paypal.MobilePayments.Pizza;
+
+public final class R {
+ public static final class attr {
+ }
+ public static final class drawable {
+ public static final int bg=0x7f020000;
+ public static final int icon=0x7f020001;
+ public static final int pizzaexpress=0x7f020002;
+ }
+ public static final class id {
+ public static final int Button03=0x7f050004;
+ public static final int Buy=0x7f05000c;
+ public static final int BuyMore=0x7f050012;
+ public static final int Continue=0x7f050005;
+ public static final int DeliveryFee=0x7f05001a;
+ public static final int DeliveryFeePrice=0x7f050024;
+ public static final int Done=0x7f050013;
+ public static final int ExtraCheese=0x7f050015;
+ public static final int ExtraCheesePrice=0x7f05001f;
+ public static final int ImageView01=0x7f05000a;
+ public static final int ImageView02=0x7f05000d;
+ public static final int Method=0x7f05001d;
+ public static final int MethodType=0x7f050027;
+ public static final int Mushrooms=0x7f050017;
+ public static final int MushroomsPrice=0x7f050021;
+ public static final int NumberOfPizzas=0x7f050014;
+ public static final int Onions=0x7f050018;
+ public static final int OnionsPrice=0x7f050022;
+ public static final int Pepperoni=0x7f050016;
+ public static final int PepperoniPrice=0x7f050020;
+ public static final int Price=0x7f05001e;
+ public static final int RelativeLayout01=0x7f050000;
+ public static final int RelativeLayout03=0x7f050006;
+ public static final int ResultsText1=0x7f05000f;
+ public static final int ResultsText2=0x7f050010;
+ public static final int ResultsText3=0x7f050011;
+ public static final int ResultsTitle=0x7f05000e;
+ public static final int ReviewOrder=0x7f050009;
+ public static final int Spinner01=0x7f050002;
+ public static final int Spinner02=0x7f050007;
+ public static final int Spinner03=0x7f050008;
+ public static final int Subtotal=0x7f050019;
+ public static final int SubtotalPrice=0x7f050023;
+ public static final int Tax=0x7f05001b;
+ public static final int TaxPrice=0x7f050025;
+ public static final int TextView01=0x7f050001;
+ public static final int TextView02=0x7f050003;
+ public static final int Total=0x7f05001c;
+ public static final int TotalPrice=0x7f050026;
+ public static final int buildNumber=0x7f05000b;
+ }
+ public static final class layout {
+ public static final int customize=0x7f030000;
+ public static final int finalize=0x7f030001;
+ public static final int main=0x7f030002;
+ public static final int results=0x7f030003;
+ public static final int review=0x7f030004;
+ }
+ public static final class string {
+ public static final int app_name=0x7f040001;
+ public static final int hello=0x7f040000;
+ }
+}
Binary file not shown.
@@ -0,0 +1,10 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must *NOT* be checked in Version Control Systems,
+# as it contains information specific to your local configuration.
+
+# location of the SDK. This is only used by Ant
+# For customization when using a Version Control System, please read the
+# header note.
+sdk.dir=/android-sdk
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,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,35 @@
+<?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>
+
+</RelativeLayout>
Oops, something went wrong.

0 comments on commit d47b600

Please sign in to comment.