Question: I wrote a store procedure.

```
CREATE PROCEDURE [dbo].[Test]
      (@Num int)
AS
BEGIN
    IF @Num = 1
       PRINT 'This is One';
    ELSE
       PRINT 'This is Another';
END

```

I implement in .net

```
Dim SqlCmd as new sqlcommand
DIm SqlCon as new sqlconnection

sqlcon.connectionstring =""
sqlCmd.connection =con
sqlcon.open()
sqlcmd.commandtext ="Test"
Sqlcmd.commandtype = commandtype.storeprocedure

```

I don't know how to get print message from store procedure
Please, help me.

Answer: 
If what you want to do is to pass data back and forth between activities, ie from Activity A, start Activity B and pass the string array, you can use the putStringArrayListExtra method when creating the intent:

<http://developer.android.com/reference/android/content/Intent.html#putStringArrayListExtra%28java.lang.String,%20java.util.ArrayList%3Cjava.lang.String%3E%29>

so in Activity A you would do something like:

```
Intent intentB = new Intent(this, ActivityB.class);
intentB.putStringArrayListExtra("name", <the array>);
this.startActivity(intentB)

```
Intent can send serializable data between activities.
If you want to send an serializable object, follow behind:

```java
class MyObject implements Serializable{
    // ...
}

```

```java
Intent intent = new Intent();
// myObject needs to be serializable
MyObject myObject = new MyObject();
intent.putExtra("extra", myObject);
startActivity(intent);

```

ArrayList is serializable, so you can send it by Intent directly.

```java
Intent intent = new Intent();
ArrayList<String> arr = new ArrayList<>;
intent.putExtra("arr", arr);
startActivity(intent);

```