Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android PayPalActivity not Fullscreen

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!!

like image 283
simone201 Avatar asked Nov 12 '12 21:11

simone201


1 Answers

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.

like image 126
user623396 Avatar answered Oct 22 '22 19:10

user623396