My goal is to send data to Velocity client. For this reason I am using an intent on my custom Application. the code is the following:
public void SendToVelocity(View view) { Intent sendIntent = new Intent(); sendIntent.setAction("com.wavelink.intent.action.EMDK.SEND"); sendIntent.addCategory("android.intent.category.DEFAULT"); sendIntent.putExtra(Intent.EXTRA_TEXT, "RFID data"); sendIntent.setType("text/plain"); if (sendIntent.resolveActivity(getPackageManager()) != null) { startActivity(sendIntent); } }
However the above code does not get inside if statement. This means that it can not resolve current intent action.
My questions are:
- Is the above (com.wavelink.intent.action.EMDK.SEND) action string valid for calling corresponding Velocity Action? If not what is the corrcet string?
- The above method would like to be called on a key press. What script to I need to write in Velocity console in order to call a method of another application?