Modify sample apps for API adjustments

Change-Id: I5dbe66ca14753b9156547d9f1c73cef79f21c828
2 files changed