[Android] Fix potential memory leak in XWalkViewInternal

Use WeakReference to register ActivityStateListener.
Otherwise, the ActivityStateListener will hold
a reference of XWalkViewInternal as in static observer
list.
Merge pull request #2198 from wang16/fix_activity_listener_leak

[Android] Fix potential memory leak in XWalkViewInternal