Skip to content Skip to sidebar Skip to footer

How To Handle Back Button When We Call Facebook Or Twitter From The Fragment Class?

I want to connect Facebook and Twitter from fragment, but when I came back from Facebook or Twitter the application is closed.I want to stay in that application. my code is here...

Solution 1:

My issue is solved here is my Actual code in manifest file

<activityandroid:name="com.example.AdslistScreen"android:label="@string/app_name"android:noHistory="true"android:screenOrientation="portrait"></activity>

Because of this line android:noHistory="true" my previous history will be cleared when i'm calling facebook so when i come back to my application it will be closed entire application.Now i remove this android:noHistory="true" line my code is working fine.

Thanku all

Post a Comment for "How To Handle Back Button When We Call Facebook Or Twitter From The Fragment Class?"