How to run separate application from Android button click
<p>I tried to add two buttons in my Android application to select an application from separate two applications Order system and Inventory system.As shown in the image.</p>

<p><img src="http://i.stack.imgur.com/PslmY.jpg" alt="enter image description here"></p>

<p>I have implemented these two applications as separate two Android projects. When I try to run this application it comes until to the the selecting window correctly, but when one button is pressed emulator shows "Force Close" message.
I have added Order system and Inventory system projects to first application's build path and then import their packages(com.oms.ws and com.inv.ws). This may be incorrect, but don't know how to do this. Please help me! I'm new to Android. 
I want to test this application using the emulator! </p>

<p>Here is the code I have used to select applications.</p>

<pre><code>import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import com.oms.ws.*;

 public class ThirdScreen extends Activity {

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.thirdscreen);

    Button oms;
    oms = (Button)findViewById(R.id.orderSystem); 
    oms.setOnClickListener(ordrMnagemntSys);

    Button inventory;
    inventory = (Button)findViewById(R.id.inventorySystem); 
    inventory.setOnClickListener(inventorySys);

}

private OnClickListener ordrMnagemntSys = new OnClickListener(){
    public void onClick(View v) {

            Intent oMs = new Intent(getApplicationContext(), com.oms.ws.TestOms.class);
            startActivity(oMs);
            }
};

private OnClickListener inventorySys = new OnClickListener(){
    public void onClick(View v) {

            Intent inven = new Intent(getApplicationContext(), com.inv.ws.TestInventory.class);
            startActivity(inven);
            }
};
}
</code></pre>

<p>Thanks!</p>
