I have two entrnces to my app: from menu and using Intent.
In the second case I need to return some EXTRA\_OUTPUT by 

```
setResult(Activity.RESULT_OK, myIntentWithData)
finish()

```

so I need to detect if my app was called by another(finish in that case or continue work otherwise)