I want share URL from other app and add it in EditText field
Manifest:
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
Activity:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
et1=(EditText)findViewById(R.id.et1);
Bundle extras = getIntent().getExtras();
String value1 = extras.getString(Intent.EXTRA_TEXT);
et1.setText(value1);
But when i try run app it close, what i'm doing bad? I see my app in share list so manifest isn't bad
Added: LogCat error at String lane