I needed to find a way to verify if Android activity is running from java project, which uses ddmlib to connect to Android devices via USB. For this purposes, I created a class, which implements IShellOutputReceiver import com.android.ddmlib.IShellOutputReceiver; /** * Created by mihails.beshkins on 16/01/14. */ public class ActivityRunningReceiver implements IShellOutputReceiver { private byte[] bytes;… Continue reading Android ddmlib: verify activity is running