// Path: src/main/java/com/vackosar/searchbasedlauncher/entity/App.java
// public class App implements Comparable<App> {
// 
//     @Expose private final String name;
//     @Expose private String nick;
//     @Expose private final String activity;
// 
//     public App(String name, String nick, String activity) {
//         this.name = name;
//         this.nick = nick;
//         this.activity = activity;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public String getActivity() {
//         return activity;
//     }
// 
//     public String getNick() {
//         return nick;
//     }
// 
//     public void setNick(String nick) {
//         this.nick = nick;
//     }
// 
//     @Override
//     public boolean equals(Object o) {
//         if (this == o) return true;
//         if (o == null || getClass() != o.getClass()) return false;
// 
//         App app = (App) o;
// 
//         if (name != null ? !name.equals(app.name) : app.name != null) return false;
//         return activity != null ? activity.equals(app.activity) : app.activity == null;
// 
//     }
// 
//     @Override
//     public int hashCode() {
//         int result = name != null ? name.hashCode() : 0;
//         result = 31 * result + (activity != null ? activity.hashCode() : 0);
//         return result;
//     }
// 
//     @Override
//     public int compareTo(App another) {
//         if (another == null) {
//             return nick.compareTo(null);
//         }
//         return nick.compareTo(another.getNick());
//     }
// }


import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import com.google.inject.Inject;
import com.vackosar.searchbasedlauncher.entity.App;
import roboguice.inject.ContextSingleton;
package com.vackosar.searchbasedlauncher.boundary;




@ContextSingleton
public class AppExecutor {
    @Inject private Activity activity;
    @Inject private WifiToggle wifiToggle;
    @Inject private BluetoothToggle bluetoothToggle;
    @Inject private SearchText searchText;

    public void act(App app) {
        try {
            startActivity(app);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

// Path: src/main/java/com/vackosar/searchbasedlauncher/entity/App.java
// public class App implements Comparable<App> {
// 
//     @Expose private final String name;
//     @Expose private String nick;
//     @Expose private final String activity;
// 
//     public App(String name, String nick, String activity) {
//         this.name = name;
//         this.nick = nick;
//         this.activity = activity;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public String getActivity() {
//         return activity;
//     }
// 
//     public String getNick() {
//         return nick;
//     }
// 
//     public void setNick(String nick) {
//         this.nick = nick;
//     }
// 
//     @Override
//     public boolean equals(Object o) {
//         if (this == o) return true;
//         if (o == null || getClass() != o.getClass()) return false;
// 
//         App app = (App) o;
// 
//         if (name != null ? !name.equals(app.name) : app.name != null) return false;
//         return activity != null ? activity.equals(app.activity) : app.activity == null;
// 
//     }
// 
//     @Override
//     public int hashCode() {
//         int result = name != null ? name.hashCode() : 0;
//         result = 31 * result + (activity != null ? activity.hashCode() : 0);
//         return result;
//     }
// 
//     @Override
//     public int compareTo(App another) {
//         if (another == null) {
//             return nick.compareTo(null);
//         }
//         return nick.compareTo(another.getNick());
//     }
// }


// Path: src/main/java/com/vackosar/searchbasedlauncher/boundary/AppExecutor.java
import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import com.google.inject.Inject;
import com.vackosar.searchbasedlauncher.entity.App;
import roboguice.inject.ContextSingleton;

package com.vackosar.searchbasedlauncher.boundary;




@ContextSingleton
public class AppExecutor {
    @Inject private Activity activity;
    @Inject private WifiToggle wifiToggle;
    @Inject private BluetoothToggle bluetoothToggle;
    @Inject private SearchText searchText;

    public void act(App app) {
        try {
            startActivity(app);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private void startActivity(App app) {