Why Android Activity call multiple time?

It’s a device configurations issue.some device can change during runtime (such as screen orientation, keyboard availability, and language). When this types of   problem occurs, android restarts the running activity and call onCreate() several times.to handale this type problem just go to you application manifest file and go to activity tag and paste this code below



<activity android:name="com.android.from.home.MyActivity"           android:configChanges="orientation|screenSize|keyboardHidden" >

Leave a Reply

Your email address will not be published. Required fields are marked *

Get Widget