On my application is use login with twitter, in example code work in Activity
but my app use work in Fragment 

1. Click login with twitter button
2. Go to web browser for Authorize application
3. Back to application Feeds(use fragment) & show Toast twitter\_id

How to edit error on **Uri uri = getIntent().getData();**

```
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, 
        Bundle savedInstanceState) {

    View rootView = inflater.inflate(R.layout.fragment_feed, container, false);

    **Uri uri = getIntent().getData();**
    String verifier = uri.getQueryParameter(ConstantValues.URL_PARAMETER_TWITTER_OAUTH_VERIFIER);

    TwitterGet get=new TwitterGet();
    get.execute(verifier);

 return rootView;
}

```