List of usage examples for android.os Bundle putString
public void putString(@Nullable String key, @Nullable String value)
From source file:Main.java
public static void sendMsg2Client(Messenger messenger, String sKey, String sObjParam, int iMsg) { if (messenger == null) { return;/* ww w . jav a 2 s .c o m*/ } try { Bundle b = new Bundle(); if (null != sKey) { b.putString(sKey, sObjParam); } Message msgBack = Message.obtain(null, iMsg); if (msgBack != null) { msgBack.setData(b); messenger.send(msgBack); } } catch (RemoteException e) { e.printStackTrace(); } }
From source file:com.github.rutvijkumar.twittfuse.fragments.SearchTweetsFragment.java
public static SearchTweetsFragment newInstance(int page, String title, String query) { SearchTweetsFragment fragment = new SearchTweetsFragment(); Bundle args = new Bundle(); args.putInt("page", page); args.putString("title", title); args.putString("query", query); fragment.setArguments(args);/*w w w . j a v a 2 s. c om*/ return fragment; }
From source file:com.jrummyapps.busybox.dialogs.AppletUsageDialog.java
public static void show(Activity activity, String applet, String help) { AppletUsageDialog dialog = new AppletUsageDialog(); Bundle args = new Bundle(); args.putString("applet_name", applet); args.putString("applet_help", help); dialog.setArguments(args);//from w w w . j a v a 2 s .c o m dialog.show(activity.getFragmentManager(), "AppletUsageDialog"); Analytics.newEvent("dialog_applet_usage").put("applet", applet).log(); }
From source file:com.ritul.truckshare.Fragments.UpdateProfile.java
public static UpdateProfile newInstance(String text) { UpdateProfile updateProfile = new UpdateProfile(); Bundle bundle = new Bundle(); bundle.putString("TabName", text); updateProfile.setArguments(bundle);// w ww.j a va 2 s . co m return updateProfile; }
From source file:com.jrummyapps.busybox.dialogs.BusyBoxAppletDialog.java
public static void show(Activity activity, String applet, String help) { BusyBoxAppletDialog dialog = new BusyBoxAppletDialog(); Bundle args = new Bundle(); args.putString("applet_name", applet); args.putString("applet_help", help); dialog.setArguments(args);//from w w w . ja va 2 s .co m dialog.show(activity.getFragmentManager(), "BusyBoxAppletDialog"); Analytics.newEvent("applet help").put("applet", applet).log(); }
From source file:Main.java
public static Bundle fromXml(XmlPullParser parser) { Bundle bundle = new Bundle(); AttributeSet attr = Xml.asAttributeSet(parser); for (int i = 0; i < attr.getAttributeCount(); i++) { bundle.putString(attr.getAttributeName(i), attr.getAttributeValue(i)); }//from w ww .j a va2 s. c o m return bundle; }
From source file:com.github.rutvijkumar.twittfuse.fragments.DirectMessagesFragments.java
public static DirectMessagesFragments newInstance(int page, String title) { DirectMessagesFragments fragment = new DirectMessagesFragments(); Bundle args = new Bundle(); args.putInt("page", page); args.putString("title", title); fragment.setArguments(args);/*from w ww. jav a 2s . c om*/ return fragment; }
From source file:com.royclarkson.springagram.HomeFragment.java
public static HomeFragment newInstance(String apiUrl) { HomeFragment fragment = new HomeFragment(); Bundle args = new Bundle(); args.putString(ARG_API_URL, apiUrl); fragment.setArguments(args);//from www .ja v a 2s. co m return fragment; }
From source file:com.naman14.algovisualizer.AlgoDescriptionFragment.java
public static AlgoDescriptionFragment newInstance(String algorithm) { AlgoDescriptionFragment fragment = new AlgoDescriptionFragment(); Bundle bundle = new Bundle(); bundle.putString(Algorithm.KEY_ALGORITHM, algorithm); fragment.setArguments(bundle);/*from w w w .java 2s .co m*/ return fragment; }
From source file:com.royclarkson.springagram.GalleryAddFragment.java
public static GalleryAddFragment newInstance(String galleriesUrl) { GalleryAddFragment fragment = new GalleryAddFragment(); Bundle args = new Bundle(); args.putString(ARG_GALLERIES_LIST_URL, galleriesUrl); fragment.setArguments(args);//from w w w . ja va 2 s . c om return fragment; }