Smid has gone open source - code available here:

Important info: Smid application was developed and tested on Xiaomi redmi Note 2 phone. It's checked to work there, it may not work on other phones

If you have tested this app, please let me know whether it works on your phone


Following movie presents demo of the application:

What is Smid

It's an application detects gestures which you draw in space using your smartphone. It can work as Tasker plugin

Where is Facebook's fanpage:

Here you are:

How to register a shape

Information about registering a shape is here.
Soon more detail instructions should be accessible - project is brand new ;)

How can I get Smid

It's available in Google Play - here:

In case of any questions, feel free to ask at

External service registration.

To register external service, simply you need to do following:

Define Activity, which will be responsible for service execution. Such activity should be runnable by implicit intents. Sample definition is following: To register an external service, call
intent with following extras put in bundle:

option's name option's meaning
FriendlyName Defines name of the external service. It will be seen in "Add action" window.
OptionsFetcher It's the intent which Smid application will call when user decides to create new action. Aim of this intent is to provide some id of action, so that External Service on the basis of the given id can perform concrete action. Generally when Smid will want to perform action, it will pass to the External Service data returned by this intent.
OptionsExecutor It's the intent which Smid will execute with given id of an action (that is Id returned by intent called "OptionsFetcher"). This intent is responsible for executing actions.

In case of any questions feel free to ask at!

Parameter names:
package com.smid.smsService;

public class Consts {
    public static final String EXTERNAL_SERVICE_FRIENDLY_NAME = "FriendlyName";
    public static final String EXTERNAL_SERVICE_OPTIONS_FETCHER_INTENT = "OptionsFetcher";
    public static final String EXTERNAL_SERVICE_OPTIONS_EXECUTOR_INTENT = "OptionsExecutor";

    public static final String EXTERNAL_SERVICE_EXTERNAL_OPTION_ID = "ExternalOptionId";
    public static final String EXTERNAL_SERVICE_EXTERNAL_OPTION_FRIENDLY_NAME = "ExternalOptionFriendlyName";

Code for registering service in Smid:
Intent i = new Intent("");

i.putExtra(Consts.EXTERNAL_SERVICE_OPTIONS_EXECUTOR_INTENT, "com.smid.smsService.SMS_SendMessage");
i.putExtra(Consts.EXTERNAL_SERVICE_OPTIONS_FETCHER_INTENT, "com.smid.smsService.SMS_SelectAddress");

Activity fetchign action request from Smid:
package com.smid.smsService;

import android.content.Intent;
import android.os.Bundle;
import android.os.PersistableBundle;

public class SendSMS extends AppCompatActivity {

    public void onCreate(Bundle savedInstanceState, PersistableBundle persistentState) {
        super.onCreate(savedInstanceState, persistentState);

    protected void onResume() {

        ContactDataFetcher fetcher = new ContactDataFetcher();

        String contactUri = getIntent().getExtras().getString(Consts.EXTERNAL_SERVICE_EXTERNAL_OPTION_ID);
        String phoneNumber = fetcher.GetContactNumber(this, Uri.parse(contactUri));

        Intent smsIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("smsto:" + phoneNumber.replaceAll("\\s+", "")));

Activity called when Smid wants to create action of given type:
package com.smid.smsService;

import android.content.Intent;
import android.provider.ContactsContract;
import android.os.Bundle;

public class SelectAddress extends AppCompatActivity {

    public static final int REQUEST_CODE_CONTACT_PICK = 1003;

    protected void onCreate(Bundle savedInstanceState) {

        Intent i = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI);

        startActivityForResult(i, REQUEST_CODE_CONTACT_PICK);

    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);

        if (requestCode == REQUEST_CODE_CONTACT_PICK) {
            if (resultCode == Activity.RESULT_OK) {
                Uri contactUri = data.getData();
                ContactDataFetcher contactDataFetcher = new ContactDataFetcher();

                String name= contactDataFetcher.GetContactName(this, contactUri);
                Intent resultIntent = new Intent();

                // code below returns to Smid information about action. That information must be understandable by SendSMS activity  and that 
                // information will be passed by Smid to external action when it will want to trigger that action
                resultIntent.putExtra(Consts.EXTERNAL_SERVICE_EXTERNAL_OPTION_ID, contactUri.toString());
                resultIntent.putExtra(Consts.EXTERNAL_SERVICE_EXTERNAL_OPTION_FRIENDLY_NAME, "SMS to: " + name);

                setResult(Activity.RESULT_OK, resultIntent);
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=""

    <uses-permission android:name="android.permission.CALL_PHONE" />
    <uses-permission android:name="android.permission.READ_CONTACTS" />

        <activity android:name="com.smid.smsService.MainActivity">
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
        <activity android:name="com.smid.smsService.SendSMS">
                <action android:name="com.smid.smsService.SMS_SendMessage" />

                <category android:name="android.intent.category.DEFAULT" />
        <activity android:name="com.smid.smsService.SelectAddress">
                <action android:name="com.smid.smsService.SMS_SelectAddress"/>

                <category android:name="android.intent.category.DEFAULT"/>