List of usage examples for android.content Intent putExtra
@Deprecated
@UnsupportedAppUsage
public @NonNull Intent putExtra(String name, IBinder value)
From source file:Main.java
public static void sendBroadcase(String name, Context activity, Serializable content) { Intent intent = new Intent(name); intent.putExtra("content", content); LocalBroadcastManager.getInstance(activity).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 ww w . jav a 2 s . c om*/ }
From source file:Main.java
public static void startMessageActivity(Context context) { Intent it = new Intent(Intent.ACTION_VIEW); it.putExtra("sms_body", "The SMS text"); it.setType("vnd.android-dir/mms-sms"); context.startActivity(it);/*w w w.j av a 2 s. c om*/ }
From source file:Main.java
public static void composeSms(Context context, String phoneNumber, String smsBody) { Intent intent = new Intent(Intent.ACTION_VIEW); intent.putExtra("sms_body", smsBody); intent.putExtra("address", phoneNumber); intent.setType("vnd.android-dir/mms-sms"); context.startActivity(intent);/*from w w w . ja v a2 s.com*/ }
From source file:Main.java
public static Intent getResultIntent(String url) { String[] response_array = responseParse(url); Intent data = new Intent(); data.putExtra(INSTAGRAM_FILED_ACCESS_TOKEN, response_array[2]); return data;/* www .ja v a 2 s.c o m*/ }
From source file:Main.java
private static void initPicIntent(Intent paramIntent, int paramInt1, int paramInt2) { paramIntent.putExtra("crop", "true"); paramIntent.putExtra("outputX", paramInt1); paramIntent.putExtra("outputY", paramInt2); paramIntent.putExtra("return-data", true); }
From source file:Main.java
public static void startNavi3D_amap(Context context) { Intent mIntent = new Intent("com.autonavi.minimap"); mIntent.putExtra("NAVI", "MAP_3D_MODEL"); context.sendBroadcast(mIntent);/*from w w w . ja v a2 s . c o m*/ }
From source file:Main.java
public static void addOcfFlag(Intent intent, boolean flag) { if (flag) {/*from w w w . j av a 2 s.co m*/ intent.putExtra("com.pinterest.EXTRA_OCF_FLAG", true); } }
From source file:Main.java
public static void closeNaviBroadcast_amap(Context context) { Intent mIntent = new Intent("com.autonavi.minimap"); mIntent.putExtra("NAVI", "CLOSE_TRAFFIC_BROADCAST"); context.sendBroadcast(mIntent);/*from ww w . j a v a2s. c o m*/ }
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);// w w w . ja v a 2s . c om }