fix internet permission
Merge pull request #354 from xAnubiSx/patch-1

fix internet permission on sample
added onSuccess and onFailure methods in GetSample