There is so much informational noise about new Facebook feature – Messenger Platform, that I could not resist to try it out for our project “Is it kosher?“.
Tag: java
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
Java batch UPDATE/INSERT database
I was looking for some solution which will allow me to make more efficient update old and insert new item into MySQL database. 1. My story I have some data, which should be imported from a side datasource into my database. So, there is no possibility to match ids of outer data and local. Also… Continue reading Java batch UPDATE/INSERT database
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