Android ddmlib: verify activity is running

Jan 27, 2014 14:23


Originally published at Moishe Beshkin. You can comment here or there.

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; [...]

issues and resolutions

Previous post Next post
Up