Android Pros: How to wrap PayPal's MPL?
<p>I have no Java experience and prefer Visual Basic; I've found a very nice translation IDE called Basic4android (www.basic4android.com). It works by interpreting a scripting language that's similar to Visual Basic and then using it to generate and compile native Java code. Rather ingenious, if you ask me. In fact I believe I found it from a reference here on StackOverflow.</p>

<p>I'm having some trouble wrapping PayPal's Mobile Payments Library:</p>

<p>www.x.com/community/ppx/xspaces/mobile/mep      (scroll down for the HTML Tutorial)</p>

<p>I need to do it in a way that promotes the library's functionality so that B4A can in turn expose it to the Android device (emulator in this case). I've made some halting progress so far, but now I'm stuck on NullPointerExceptions occurring deep within the MPL.</p>

<p>The saga is pretty well described in a thread at their forum:</p>

<p><a href="http://www.basic4ppc.com/forum/additional-libraries-official-updates/8819-looking-download-link.html" rel="nofollow">http://www.basic4ppc.com/forum/additional-libraries-official-updates/8819-looking-download-link.html</a></p>

<p>Here's my wrapper and the generated code—download <a href="http://www.x.com/servlet/JiveServlet/download/205349-19237/Java%20Source.zip" rel="nofollow">here</a>—as only licensed users may access downloads in that particular forum section.</p>

<p>The latest NullPointerException occurs a few calls down from the initWithAppID function. The JD-GUI decompiler reports an internal error when it gets to the com.paypal.android.b.b class, so it doesn't appear to be possible to know exactly what's going on down there.</p>

<p>I'm certain this can be done; I just need to know how to open the proper communication channel between the device and the MPL.</p>

<p>I'm new at Java and I'm new at Android. Quite a combination, wouldn't you say?</p>
