<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
this is in my manifest file
this will make my app appear on the share list of all apps but I want my app to appear in the share list of another specific app and I don't own the other app
I would check to see if there is any API for this app you want to work with.
If so, you can benefit by knowing
If you can find something like these, it would be unlikely to be seen by other apps.
this worked well for me for getting all web pages, for my app that scans for mp3 files on a web page, and sets alarms from them. It opens up my new url activity, when you share a web page:
Here is what this code results in:
Then to receive the link in the app, I got awsome info from this tutorial: http://code.tutsplus.com/tutorials/android-sdk-receiving-data-from-the-send-intent--mobile-14878
In order to do this, you need to know the Intent that the application is creating and create an IntentFilter that will add your application to the specific list.
Receiving an Implicit Intent on Intents and Filters (Android Developers)
The application probably uses a specific action name that you could hook to.
Or it could be looking for applications accepting a certain type of file.
The name of the application and what it is sharing would help me give a more specific response.
Add this code in the activity you want opened first when sharing a content from outside the app, call this method in onCreate()
Add this in Manifest,
add this to your mainefist file
this link may help you