List of usage examples for android.content Context sendBroadcast
public abstract void sendBroadcast(@RequiresPermission Intent intent);
From source file:Main.java
public static void gotoHome(Context context) { Intent intent = new Intent(); intent.setAction("GotoHome"); context.sendBroadcast(intent); }
From source file:Main.java
public static void refreshContent(Context context, String path) { Uri data = Uri.parse("file://" + path); context.sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, data)); }
From source file:Main.java
public static void sendBroadcast(String filter, Context context) { Intent startupIntent = new Intent(filter); try {//from ww w . j ava 2s . c om context.sendBroadcast(startupIntent); } catch (NullPointerException ex) { Log.e(TAG, "Intent broadcast failed. Error: " + ex.toString()); } }
From source file:Main.java
public static void broadcastAction(Context context, String action) { Intent intent = new Intent(); intent.setAction(action);/*from ww w . j av a2s . co m*/ context.sendBroadcast(intent); }
From source file:Main.java
public static void sendBroadcast(Context context, String action) { Intent intent = new Intent(action); context.sendBroadcast(intent); }
From source file:Main.java
public static void sendBroadcast(Context context, String action) { Intent broadcast = new Intent(); broadcast.setAction(action);/*from www.ja v a2 s . c o m*/ context.sendBroadcast(broadcast); }
From source file:Main.java
public static void dump(Context context) { Intent intent = new Intent(DUMP_ACTION); intent.setPackage(context.getPackageName()); context.sendBroadcast(intent); }
From source file:Main.java
public static void exitGapdeApp_amap(Context context) { Intent mIntent = new Intent("com.autonavi.minimap"); mIntent.putExtra("NAVI", "APP_EXIT"); context.sendBroadcast(mIntent); }
From source file:Main.java
public static void exitNavi_amap(Context context) { Intent mIntent = new Intent("com.autonavi.minimap"); mIntent.putExtra("NAVI", "NAVI_EXIT"); context.sendBroadcast(mIntent); }
From source file:Main.java
public static void closeNaviVoice_amap(Context context) { Intent mIntent = new Intent("com.autonavi.minimap"); mIntent.putExtra("NAVI", "CLOSE_VOICE"); context.sendBroadcast(mIntent); }