Code example for Fragment

Methods: getActivityonStartstartActivity

0
	Intent i = null;
	Context context;
	 
	@Override 
	public void onStart() { 
		super.onStart(); 
		context = getActivity(); 
		 
		i = new Intent(context, ScanQR.class);
		startActivity(i);
	} 
 
 
 
	@Override 
	public View onCreateView(LayoutInflater inflater, 
	        ViewGroup container, Bundle savedInstanceState) {
	    super.onCreateView(inflater, container, savedInstanceState);
	    View view = inflater.inflate(R.layout.selection, 
	            container, false);
Stop searching for code, let great code find you!  Add Codota to your java IDE