payu-intrepos / Android-Custom-Browser

Custom Browser module for SDK
11 stars 9 forks source link

Not Able to to add Bank(Fragment) in the FrameLayout #9

Closed ThathaPavanNagaraju closed 5 years ago

ThathaPavanNagaraju commented 8 years ago
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
fragmentTransaction.setCustomAnimations(R.anim.cb_fade_in, R.anim.cb_face_out);
fragmentTransaction.add(R.id.parent, bank);
fragmentTransaction.commit();

At third line its throwing this exception, I am using the same code given in the Sample App - (CBWithoutSDK - branch )

10-15 19:55:52.661 1477-1477/in.paymint W/System.err: java.lang.IllegalStateException: Fragment null must be a public static class to be  properly recreated from instance state.
10-15 19:55:52.661 1477-1477/in.paymint W/System.err:     at android.support.v4.app.BackStackRecord.doAddOp(BackStackRecord.java:435)
10-15 19:55:52.661 1477-1477/in.paymint W/System.err:     at android.support.v4.app.BackStackRecord.replace(BackStackRecord.java:481)
10-15 19:55:52.661 1477-1477/in.paymint W/System.err:     at android.support.v4.app.BackStackRecord.replace(BackStackRecord.java:472)
10-15 19:55:52.661 1477-1477/in.paymint W/System.err:     at in.paymint.Activities.PayuBizWebviewActivity.onCreate(PayuBizWebviewActivity.java:85)
10-15 19:55:52.661 1477-1477/in.paymint W/System.err:     at android.app.Activity.performCreate(Activity.java:6251)
10-15 19:55:52.661 1477-1477/in.paymint W/System.err:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
10-15 19:55:52.661 1477-1477/in.paymint W/System.err:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
10-15 19:55:52.661 1477-1477/in.paymint W/System.err:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
10-15 19:55:52.661 1477-1477/in.paymint W/System.err:     at android.app.ActivityThread.-wrap11(ActivityThread.java)
10-15 19:55:52.661 1477-1477/in.paymint W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
10-15 19:55:52.661 1477-1477/in.paymint W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)
10-15 19:55:52.661 1477-1477/in.paymint W/System.err:     at android.os.Looper.loop(Looper.java:148)
10-15 19:55:52.661 1477-1477/in.paymint W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5417)
10-15 19:55:52.661 1477-1477/in.paymint W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
10-15 19:55:52.661 1477-1477/in.paymint W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
10-15 19:55:52.661 1477-1477/in.paymint W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)