Hi there
I am following this article
http://developer.android.com/training/sharing/send.html#send-binary-content
and this
http://developer.android.com/training/sharing/receive.html
so far I have made two application one is sending a Image and Other is receiving an Image
first comes to sending Image application this is my code
I have set this event on my button click.
Image is my drawable folder
On other activity I have code like this .I have an ImageView their on second activity.
second activity onCreate()
and here is my handleSendImage(intent) method.
this is my AndroidManifest.xml file in secondApp
<activity
android:name="com.example.datareceivingsimpletext.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
</activity>
Where am I wrong?
Although i can get simple text easily from one application to another but not Image.
Thanks