Some refactoring for the ShareActionProvider sample. am: b703d26801
am: 70f9a06b73

Change-Id: I489dccee6d55c92fb18700ad14b045963972db0f