CopyPastor

Detecting plagiarism made easy.

Score: 0.8240381002426147; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2016-08-31
by Neeraj Singh

Original Post

Original - Posted on 2012-10-05
by ρяσѕρєя K



            
Present in both answers; Present only in the new answer; Present only in the old answer;

From Activity you send data with intent as:
Bundle bundle = new Bundle(); bundle.putString("key", "value"); // set Fragmentclass Arguments Fragmentclass fragmentobj = new Fragmentclass(); fragmentobj.setArguments(bundle);
and in Fragment onCreateView method:
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { String strtext = getArguments().getString("key"); return inflater.inflate(R.layout.fragment, container, false); }

I hope it is help full to you.
From Activity you send data with intent as:
Bundle bundle = new Bundle(); bundle.putString("edttext", "From Activity"); // set Fragmentclass Arguments Fragmentclass fragobj = new Fragmentclass(); fragobj.setArguments(bundle);
and in Fragment onCreateView method:
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { String strtext = getArguments().getString("edttext"); return inflater.inflate(R.layout.fragment, container, false); }

        
Present in both answers; Present only in the new answer; Present only in the old answer;