While scrolling, the pages which goes out of the screen will be destroyed in destroy Item(View Group, int, Object) method. get Count() returns the number of items which will be shown in the View Pager. is View From Object(View, Object) method checks whether the Object returned from instantiate Item(View Group, int) method is linked to the View supplied here.

Note: In Pager Adapter, Pager Fragment Adapter and Pager Fragment State Adapter, the Views or Fragments are recognised by a key Object not by their index or position in the adapter.

Don’t forget to call super.instantiate Item(container, position) at end of the method.

To overcome this problem we will supply data to the fragments using a setter while creating the fragment first time and override instantiate Item() method to check whether the old data and new data are different or equal.

If new data is not equal to old data, we replace the old data with new one using the same setter.

So if anything else is changed the workflow will not start unless the 'approval' value is. Thanks, Check if the two values are not equal to each other, and if the updated value is equal to "approve".

If both are true, start a workflow on the list item programmatically- here are some links to help you with that: coding!

It only destroys fragments’s view hierarchy and keeps its state internally.

To overcome this shortcoming we have Fragment State Pager Adapter which we are going to discuss here.We attach adapter consisting of either Fragment objects or simple View objects.Note: You can download source code of a sample application from here to run the android application. It keeps maximum three views in memory, one which is currently visible, one which is left and one is right of the visible item.Fragment State Pager Adapter differs from the Fragment Pager Adapter only in one way that it destroys the fragments which are going off the screen.So Fragments are created, attached, destroyed and detached keeping the memory uses low.In simplest implementation, we return View or Fragment created in instantiate Item(View Group, int) itself and in is View From Object(View, Object) method we simply compare View and Object to check the association between them.