// Path: robota/src/main/java/com/uphyca/robota/InjectionUtils.java
// public abstract class InjectionUtils {
// 
//     private InjectionUtils() {
//     }
// 
//     public static ObjectGraph getObjectGraph(Context context) {
//         return RobotaApplication.class.cast(context.getApplicationContext())
//                                        .getObjectGraph();
//     }
// }
// 
// Path: robota/src/main/java/com/uphyca/robota/Robota.java
// public class Robota {
// 
//     private static final String INTENT = "com.uphyca.robota";
//     private static final String ACTION = INTENT + ".action";
//     private static final String EXTRA = INTENT + ".extra";
//     private static final String PERMISSION = INTENT + ".permission";
// 
//     // Message created event
// 
//     public static final String ACTION_MESSAGE_CREATED = ACTION + ".MESSAGE_CREATED";
// 
//     public static final String PERMISSION_RECEIVE_MESSAGE_CREATED = PERMISSION + ".RECEIVE_MESSAGE_CREATED";
// 
//     public static final String EXTRA_ID = EXTRA + ".ID";
//     public static final String EXTRA_BODY = EXTRA + ".BODY";
//     public static final String EXTRA_BODY_PLAIN = EXTRA + ".BODY_PLAIN";
//     public static final String EXTRA_IMAGE_URLS = EXTRA + ".IMAGE_URLS";
//     public static final String EXTRA_MULTILINE = EXTRA + ".MULTILINE";
//     public static final String EXTRA_MENTIONS = EXTRA + ".MENTIONS";
//     public static final String EXTRA_CREATED_AT = EXTRA + ".CREATED_AT";
//     public static final String EXTRA_ROOM_ID = EXTRA + ".ROOM_ID";
//     public static final String EXTRA_ROOM_NAME = EXTRA + ".ROOM_NAME";
//     public static final String EXTRA_ORGANIZATION_SLUG = EXTRA + ".ORGANIZATION_SLUG";
//     public static final String EXTRA_SENDER_TYPE = EXTRA + ".SENDER_TYPE";
//     public static final String EXTRA_SENDER_ID = EXTRA + ".SENDER_ID";
//     public static final String EXTRA_SENDER_NAME = EXTRA + ".SENDER_NAME";
//     public static final String EXTRA_SENDER_ICON_URL = EXTRA + ".SENDER_ICON_URL";
// 
//     public static final String EXTRA_BOT_ID = EXTRA + ".BOT_ID";
//     public static final String EXTRA_BOT_NAME = EXTRA + ".BOT_NAME";
//     public static final String EXTRA_BOT_API_TOKEN = EXTRA + ".BOT_API_TOKEN";
//     public static final String EXTRA_BOT_ICON_URL = EXTRA + ".BOT_ICON_URL";
// }


import android.app.Activity;
import android.app.ListFragment;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;
import android.widget.SimpleAdapter;
import com.uphyca.idobata.Idobata;
import com.uphyca.idobata.IdobataError;
import com.uphyca.idobata.model.Seed;
import com.uphyca.robota.InjectionUtils;
import com.uphyca.robota.R;
import com.uphyca.robota.Robota;
import com.uphyca.robota.data.api.Main;
import com.uphyca.robota.data.api.Networking;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.concurrent.Executor;
import javax.inject.Inject;
        Executor mDispatcher;

        @Override
        public void onActivityCreated(Bundle savedInstanceState) {
            super.onActivityCreated(savedInstanceState);
            InjectionUtils.getObjectGraph(getActivity())
                          .inject(this);

            mExecutor.execute(new Runnable() {
                @Override
                public void run() {
                    String botName;
                    try {
                        Seed seed = mIdobata.getSeed();
                        botName = seed.getRecords()
                                      .getBot()
                                      .getName();
                    } catch (IdobataError idobataError) {
                        idobataError.printStackTrace();
                        botName = "robota";
                    }
                    List<HashMap<String, String>> list = new ArrayList<HashMap<String, String>>();
                    String[] from = {
                            "text1", "text2"
                    };
                    int[] to = {
                            android.R.id.text1, android.R.id.text2
                    };

                    PackageManager pm = getActivity().getPackageManager();
// Path: robota/src/main/java/com/uphyca/robota/InjectionUtils.java
// public abstract class InjectionUtils {
// 
//     private InjectionUtils() {
//     }
// 
//     public static ObjectGraph getObjectGraph(Context context) {
//         return RobotaApplication.class.cast(context.getApplicationContext())
//                                        .getObjectGraph();
//     }
// }
// 
// Path: robota/src/main/java/com/uphyca/robota/Robota.java
// public class Robota {
// 
//     private static final String INTENT = "com.uphyca.robota";
//     private static final String ACTION = INTENT + ".action";
//     private static final String EXTRA = INTENT + ".extra";
//     private static final String PERMISSION = INTENT + ".permission";
// 
//     // Message created event
// 
//     public static final String ACTION_MESSAGE_CREATED = ACTION + ".MESSAGE_CREATED";
// 
//     public static final String PERMISSION_RECEIVE_MESSAGE_CREATED = PERMISSION + ".RECEIVE_MESSAGE_CREATED";
// 
//     public static final String EXTRA_ID = EXTRA + ".ID";
//     public static final String EXTRA_BODY = EXTRA + ".BODY";
//     public static final String EXTRA_BODY_PLAIN = EXTRA + ".BODY_PLAIN";
//     public static final String EXTRA_IMAGE_URLS = EXTRA + ".IMAGE_URLS";
//     public static final String EXTRA_MULTILINE = EXTRA + ".MULTILINE";
//     public static final String EXTRA_MENTIONS = EXTRA + ".MENTIONS";
//     public static final String EXTRA_CREATED_AT = EXTRA + ".CREATED_AT";
//     public static final String EXTRA_ROOM_ID = EXTRA + ".ROOM_ID";
//     public static final String EXTRA_ROOM_NAME = EXTRA + ".ROOM_NAME";
//     public static final String EXTRA_ORGANIZATION_SLUG = EXTRA + ".ORGANIZATION_SLUG";
//     public static final String EXTRA_SENDER_TYPE = EXTRA + ".SENDER_TYPE";
//     public static final String EXTRA_SENDER_ID = EXTRA + ".SENDER_ID";
//     public static final String EXTRA_SENDER_NAME = EXTRA + ".SENDER_NAME";
//     public static final String EXTRA_SENDER_ICON_URL = EXTRA + ".SENDER_ICON_URL";
// 
//     public static final String EXTRA_BOT_ID = EXTRA + ".BOT_ID";
//     public static final String EXTRA_BOT_NAME = EXTRA + ".BOT_NAME";
//     public static final String EXTRA_BOT_API_TOKEN = EXTRA + ".BOT_API_TOKEN";
//     public static final String EXTRA_BOT_ICON_URL = EXTRA + ".BOT_ICON_URL";
// }


// Path: robota/src/main/java/com/uphyca/robota/ui/InstalledEnginesActivity.java
import android.app.Activity;
import android.app.ListFragment;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;
import android.widget.SimpleAdapter;
import com.uphyca.idobata.Idobata;
import com.uphyca.idobata.IdobataError;
import com.uphyca.idobata.model.Seed;
import com.uphyca.robota.InjectionUtils;
import com.uphyca.robota.R;
import com.uphyca.robota.Robota;
import com.uphyca.robota.data.api.Main;
import com.uphyca.robota.data.api.Networking;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.concurrent.Executor;
import javax.inject.Inject;

        Executor mDispatcher;

        @Override
        public void onActivityCreated(Bundle savedInstanceState) {
            super.onActivityCreated(savedInstanceState);
            InjectionUtils.getObjectGraph(getActivity())
                          .inject(this);

            mExecutor.execute(new Runnable() {
                @Override
                public void run() {
                    String botName;
                    try {
                        Seed seed = mIdobata.getSeed();
                        botName = seed.getRecords()
                                      .getBot()
                                      .getName();
                    } catch (IdobataError idobataError) {
                        idobataError.printStackTrace();
                        botName = "robota";
                    }
                    List<HashMap<String, String>> list = new ArrayList<HashMap<String, String>>();
                    String[] from = {
                            "text1", "text2"
                    };
                    int[] to = {
                            android.R.id.text1, android.R.id.text2
                    };

                    PackageManager pm = getActivity().getPackageManager();
                    List<ResolveInfo> resolveInfos = pm.queryBroadcastReceivers(new Intent(Robota.ACTION_MESSAGE_CREATED), 0);