Skip to content

Instantly share code, notes, and snippets.

@xxhdpi
Created March 25, 2017 11:40
Show Gist options
  • Select an option

  • Save xxhdpi/59725bc743af521d5b0ccc9bc1063b8a to your computer and use it in GitHub Desktop.

Select an option

Save xxhdpi/59725bc743af521d5b0ccc9bc1063b8a to your computer and use it in GitHub Desktop.
public class MainActivity extends AppCompatActivity implements AmbilDataTask.Callback {
private static final String TAG = "main";
@Override protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
new AmbilDataTask(this).execute("https://httpbin.org/get");
}
@Override public void sendResult(String result) {
Log.d(TAG, "sendResult: " + result);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment