Back to project page task4java.
The source code is released under:
Apache License
If you think the Android project task4java listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * Copyright (c) 2014 Andree Hagelstein, Maik Schulze, Deutsche Telekom AG. All Rights Reserved. * /*from w w w .j ava2 s . c o m*/ * Filename: ActivityExecutor.java */ package com.task4java.android.util.concurrent; import java.util.concurrent.Executor; import android.app.Activity; public class ActivityExecutor implements Executor { private Activity activity; public ActivityExecutor(Activity activity) { this.activity = activity; } @Override public void execute(Runnable command) { if (activity != null) { activity.runOnUiThread(command); } } }