Google Vision Image recognition for Android

Recently Google announced new API for image recognition. It is one the most exiting solutions from Google and prices are quite affordable. So, I decided to switch from CamFind API to Google’s, because the last one is much more efficient and faster. Camfind worked quite well, but it took time for upload of image and… Continue reading Google Vision Image recognition for Android

Android ddmlib: verify activity is running

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

Java: copy file from jar resources

I was looking for a solution to copy file, build in to jar file to any external location. Here is the solution, I came to: String file = “config.xml”; File file = new File(“C:\\”+file); InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream(file); OutputStream outputStream = null; try { // write the inputStream to a FileOutputStream outputStream = new FileOutputStream(file);… Continue reading Java: copy file from jar resources