Android In-App Billing
<p>I have been working on an in-app billing method for donations for my Sales Tax Calculator app for Android. I have tried the tutorial on Android's website and the tutorial here: <a href="http://www.anddev.org/advanced-tutorials-f21/simple-inapp-billing-payment-t52060.html" rel="nofollow">http://www.anddev.org/advanced-tutorials-f21/simple-inapp-billing-payment-t52060.html</a>. When I tried to just port the sample from the tutorial on anddev's website, I kept getting crashes. I have included the Billing permissions. Help would be greatly appreciated. I am testing this on an Droid X.</p>

<p>LOG:</p>

<pre><code>12-07 21:23:27.958: I/Process(19238): Sending signal. PID: 19238 SIG: 9
12-07 22:00:57.641: I/BillingService(20429): Starting
12-07 22:00:57.641: D/AndroidRuntime(20429): Shutting down VM
12-07 22:00:57.641: W/dalvikvm(20429): threadid=1: thread exiting with uncaught exception (group=0x40018560)
12-07 22:00:57.649: E/AndroidRuntime(20429): FATAL EXCEPTION: main
12-07 22:00:57.649: E/AndroidRuntime(20429): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.Calculator.SalesTaxCalculator/com.Calculator.SalesTaxCalculator.Calculator}: java.lang.NullPointerException
12-07 22:00:57.649: E/AndroidRuntime(20429):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1696)
12-07 22:00:57.649: E/AndroidRuntime(20429):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1716)
12-07 22:00:57.649: E/AndroidRuntime(20429):    at android.app.ActivityThread.access$1500(ActivityThread.java:124)
12-07 22:00:57.649: E/AndroidRuntime(20429):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:968)
12-07 22:00:57.649: E/AndroidRuntime(20429):    at android.os.Handler.dispatchMessage(Handler.java:99)
12-07 22:00:57.649: E/AndroidRuntime(20429):    at android.os.Looper.loop(Looper.java:123)
12-07 22:00:57.649: E/AndroidRuntime(20429):    at android.app.ActivityThread.main(ActivityThread.java:3806)
12-07 22:00:57.649: E/AndroidRuntime(20429):    at java.lang.reflect.Method.invokeNative(Native Method)
12-07 22:00:57.649: E/AndroidRuntime(20429):    at java.lang.reflect.Method.invoke(Method.java:507)
12-07 22:00:57.649: E/AndroidRuntime(20429):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
12-07 22:00:57.649: E/AndroidRuntime(20429):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
12-07 22:00:57.649: E/AndroidRuntime(20429):    at dalvik.system.NativeStart.main(Native Method)
12-07 22:00:57.649: E/AndroidRuntime(20429): Caused by: java.lang.NullPointerException
12-07 22:00:57.649: E/AndroidRuntime(20429):    at android.content.ComponentName.&lt;init&gt;(ComponentName.java:75)
12-07 22:00:57.649: E/AndroidRuntime(20429):    at android.content.Intent.&lt;init&gt;(Intent.java:2720)
12-07 22:00:57.649: E/AndroidRuntime(20429):    at com.Calculator.SalesTaxCalculator.Calculator.onCreate(Calculator.java:85)
12-07 22:00:57.649: E/AndroidRuntime(20429):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
12-07 22:00:57.649: E/AndroidRuntime(20429):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1660)
12-07 22:00:57.649: E/AndroidRuntime(20429):    ... 11 more
</code></pre>
