I'm trying to include a PayPal donate button in my app (launching it from an actionbar button), it does work as it should, but...it just shows the PayPalActivity as a very small popup, while it should be almost fullscreen by default!
Let me explain better... I use the usual piece of code to start the payment activity:
Intent checkoutIntent = PayPal.getInstance().checkout(payment, this, new ResultDelegate());
startActivityForResult(checkoutIntent, 1);
Well, it starts the activity as expected, but it seems like "windowed" in a very small popup, while it should be a big popup almost fullscreen. In the manifest i declare the usual needed parameters for PayPalActivity:
<activity android:name="com.paypal.android.MEP.PayPalActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:configChanges="keyboardHidden|orientation" />
and i also add the needed permissions...
What am i doing wrong?
I'm testing on a Galaxy S3 and using Android 4.0.3 APIs (but running 4.1.1 on phone)
Thanks in advance!!
This is definitely a bug in the PayPal library. Try setting
android:targetSdkVersion="3"
in your manifest file and you will get the full-screen popup.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With