my manifest is as follow:
This is my manifest: <activity android:name=".SmsSend" > <intent-filter> <action android:name="android.intent.action.SEND" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="text/plain" /> </intent-filter> </activity>
inside my SmsSend create method:
Intent intent = getIntent();
Uri returned_uri = intent.getData();
if (returned_uri == null)
{
Toast.makeText(getApplicationContext(), "Uri is Null",
Toast.LENGTH_LONG).show();
}
else
{
Toast.makeText(getApplicationContext(), "Uri is full",
Toast.LENGTH_LONG).show();
}
I have also tried the following code and still get null data:
Intent intent = getIntent(); String data = intent.getDataString(); Toast.makeText(getBaseContext(),data,Toast.LENGTH_SHORT).show();

New Topic/Question
Reply


MultiQuote



|