Code example for FragmentActivity

Methods: findViewById

0
		 
		CoreApplication.getState().sync(); 
	} 
	 
	protected String getViewText(int label) {
		TextView view = ((TextView)findViewById(label));
		return view != null ? view.getText().toString() : "";
	} 
	 
    protected void setClickListener(int viewId, View.OnClickListener listener) {
        ((View)findViewById(viewId)).setOnClickListener(listener);
    } 
     
    protected void setClickListener(View root, int viewId, View.OnClickListener listener) {
        ((View)root.findViewById(viewId)).setOnClickListener(listener);
    } 
     
	protected void setViewText(int viewId, String text) {
		((TextView) findViewById(viewId)).setText(text != null ? text : "");
	}