@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); HashMap<String, String> map = null; String[][] vehicleTypeData = { {"Two (includes motorcycle)", "$5.00", "$6.00", "$7.00"}, {"Three", "$7.50", "$9.00", "$10.50"}, {"Four", "$10.00", "$12.00", "$14.00"}, {"Five", "$12.50", "$15.00", "$17.50"}, {"Six or more", "$15.00", "$18.00", "$21.00"} }; map = new HashMap<String, String>(); map.put("number_axles", "Number of Axles"); map.put("goodtogo_pass", "Good To Go! Pass"); map.put("pay_by_cash", "Cash"); map.put("pay_by_mail", "Pay By Mail"); mAdapter.addSeparatorItem(map); for (int i = 0; i < vehicleTypeData.length; i++) { map = new HashMap<String, String>(); map.put("number_axles", vehicleTypeData[i][0]); map.put("goodtogo_pass", vehicleTypeData[i][1]); map.put("pay_by_cash", vehicleTypeData[i][2]); map.put("pay_by_mail", vehicleTypeData[i][3]); mAdapter.addItem(map); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Tell the framework to try to keep this fragment around // during a configuration change. setRetainInstance(true); setHasOptionsMenu(true); }
@Override public void onAttach(Activity activity) { super.onAttach(activity); Bundle args = activity.getIntent().getExtras(); Date date = new Date(Long.parseLong(args.getString("AlertPublishDate"))); mAlertPublishDate = displayDateFormat.format(date); mAlertDescription = args.getString("AlertDescription"); mAlertFullText = args.getString("AlertFullText"); mContent = formatText(mAlertPublishDate, mAlertDescription, mAlertFullText); }
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); webview.loadDataWithBaseURL(null, mContent, "text/html", "utf-8", null); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); }