liftthis 0 Newbie Poster

I am trying to send generated link from one app to my text messaging app. This works if I use the default messaging application, however I designed my own and I get null. Do you have any idea, how to do this.

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>


I have tried:

        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();
        }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.