title: Migrating One Android JSON App Into a simple app in Android
body: <p>I have created 2 java based apps for android which are both working independantly.</p>
  
  <p>The first, a simple app with a few text field and boxes with onClick features to switch between pages,</p>
  
  <p>the second a JSON list (yes thats all thats in the app)</p>
  
  <p>I am trying to put the JSON list app in the middle of the 1st app, but when I click on the onClick button aimed at my JSON.java page, it crashes out, but when I run the JSON.java page from its own app, it runs fine.</p>
  
  <p>Sorry to everyone for me dumping loads of code into this, but I am new to android, and don't know to much about it, so not sure which parts are/are not relevant.</p>
  
  <p><strong>HomePage.Java</strong></p>
  
  <pre><code>package com.example.assent.app;
  
  import android.os.Bundle;
  import android.app.Activity;
  import android.content.Intent;
  import android.view.Menu;
  import android.view.View;
  
  public class HomePage extends Activity {
  
  public void SelectClient(View view) 
  {
      Intent intent = new Intent(HomePage.this, AndroidJSONParsingActivity.class);
      startActivity(intent);
  }
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_home_page);
  }
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      getMenuInflater().inflate(R.menu.activity_home_page, menu);
      return true;
  }
  }
  </code></pre>
  
  <p><strong>LAYOUT - activity_home_page.xml</strong></p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:gravity="top"
  android:orientation="vertical" &gt;
  
  &lt;TextView
      android:id="@+id/textView2"
      android:layout_width="wrap_content"
      android:layout_height="0dp"
      android:layout_gravity="center_horizontal"
      android:layout_weight="0.08"
      android:text="@string/Home_Text1"
      android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
  &lt;TextView
      android:id="@+id/textView1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="center_horizontal"
      android:text="@string/Home_Text2"
      android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
  &lt;EditText
      android:id="@+id/editText3"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:ems="10"
      android:inputType="textPersonName" /&gt;
  
  &lt;TableLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_weight="0.06" &gt;
  
      &lt;TableRow
          android:id="@+id/tableRow1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" &gt;
      &lt;/TableRow&gt;
  
      &lt;TableRow
          android:id="@+id/tableRow2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" &gt;
      &lt;/TableRow&gt;
  
      &lt;TableRow
          android:id="@+id/tableRow3"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" &gt;
      &lt;/TableRow&gt;
  
      &lt;TableRow
          android:id="@+id/tableRow4"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" &gt;
      &lt;/TableRow&gt;
  &lt;/TableLayout&gt;
  
  &lt;TextView
      android:id="@+id/textView4"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="center_horizontal"
      android:text="@string/Home_Text3"
      android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
  &lt;TextView
      android:id="@+id/textView5"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="center_horizontal"
      android:text="@string/Home_Text4"
      android:textAppearance="?android:attr/textAppearanceSmall" /&gt;
  
  &lt;EditText
      android:id="@+id/editText2"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:ems="10"
      android:inputType="textPassword" /&gt;
  
  &lt;TableLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_weight="0.09" &gt;
  
      &lt;TableRow
          android:id="@+id/TableRow02"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" &gt;
      &lt;/TableRow&gt;
  
      &lt;TableRow
          android:id="@+id/TableRow01"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" &gt;
      &lt;/TableRow&gt;
  
      &lt;TableRow
          android:id="@+id/TableRow04"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" &gt;
      &lt;/TableRow&gt;
  
      &lt;TableRow
          android:id="@+id/TableRow03"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" &gt;
      &lt;/TableRow&gt;
  &lt;/TableLayout&gt;
  
  &lt;Button
      android:id="@+id/button1"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:onClick="SelectClient"
      android:text="@string/Home_Button1" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>MENU - activity_home_page.xml</strong></p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;item android:id="@+id/menu_settings"
      android:title="@string/menu_settings"
      android:orderInCategory="100"
      android:showAsAction="never" /&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p><strong>JSON JAVA - AndroidJSONParsingActivity.java</strong></p>
  
  <pre><code>package com.example.assent.app;
  
  import java.util.ArrayList;
  import java.util.HashMap;
  
  import org.json.JSONArray;
  import org.json.JSONException;
  import org.json.JSONObject;
  
  import android.app.ListActivity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.util.Log;
  import android.view.View;
  import android.widget.AdapterView;
  import android.widget.AdapterView.OnItemClickListener;
  import android.widget.ListAdapter;
  import android.widget.ListView;
  import android.widget.SimpleAdapter;
  import android.widget.TextView;
  
  public class AndroidJSONParsingActivity extends ListActivity {
  
  // url to make request
  private static String url = "http://dcc.assentbc.co.uk/GetClients.aspx?SecureID=*******";
  
  // JSON Node names
  private static final String TAG_CONTACTS = "Clients";
  private static final String TAG_NAME = "CompanyName";
  
  // contacts JSONArray
  JSONArray Clients = null;
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  
      // Hashmap for ListView
      ArrayList&lt;HashMap&lt;String, String&gt;&gt; contactList = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
  
      // Creating JSON Parser instance
      JSONParser jParser = new JSONParser();
  
      // getting JSON string from URL
      JSONObject json = jParser.getJSONFromUrl(url);
  
      try {
          // Getting Array of Contacts
          Clients = json.getJSONArray(TAG_CONTACTS);
  
          // looping through All Contacts
          for(int i = 0; i &lt; Clients.length(); i++){
              JSONObject c = Clients.getJSONObject(i);
  
              // Storing each json item in variable
              String name = c.getString(TAG_NAME);
  
              // creating new HashMap
              HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
  
              // adding each child node to HashMap key =&gt; value
              map.put(TAG_NAME, name);
  
              // adding HashList to ArrayList
              contactList.add(map);
          }
      } catch (JSONException e) {
          e.printStackTrace();
      }
  
      /**
       * Updating parsed JSON data into ListView
       * */
      ListAdapter adapter = new SimpleAdapter(this, contactList,
              R.layout.list_item,
              new String[] { TAG_NAME }, new int[] {
                      R.id.name });
  
      setListAdapter(adapter);
  
      // selecting single ListView item
      ListView lv = getListView();
  
      // Launching new screen on Selecting Single ListItem
      lv.setOnItemClickListener(new OnItemClickListener() {
  
          public void onItemClick(AdapterView&lt;?&gt; parent, View view,
                  int position, long id) {
              // getting values from selected ListItem
              String name = ((TextView)     view.findViewById(R.id.name)).getText().toString();
  
              // Starting new intent
              Intent in = new Intent(getApplicationContext(),     SingleMenuItemActivity.class);
              in.putExtra(TAG_NAME, name);
              startActivity(in);
          }
      });
  }
  
  }
  </code></pre>
  
  <p><strong>JSON PARSER JAVA - JSONParser.java</strong></p>
  
  <pre><code>package com.example.assent.app;
  
  import java.io.BufferedReader;
  import java.io.IOException;
  import java.io.InputStream;
  import java.io.InputStreamReader;
  import java.io.UnsupportedEncodingException;
  
  import org.apache.http.HttpEntity;
  import org.apache.http.HttpResponse;
  import org.apache.http.client.ClientProtocolException;
  import org.apache.http.client.methods.HttpPost;
  import org.apache.http.impl.client.DefaultHttpClient;
  import org.json.JSONException;
  import org.json.JSONObject;
  
  import android.util.Log;
  
  public class JSONParser {
  
  static InputStream is = null;
  static JSONObject jObj = null;
  static String json = "";
  
  // constructor
  public JSONParser() {
  
  }
  
  public JSONObject getJSONFromUrl(String url) {
  
      // Making HTTP request
      try {
          // defaultHttpClient
          DefaultHttpClient httpClient = new DefaultHttpClient();
          HttpPost httpPost = new HttpPost(url);
  
          HttpResponse httpResponse = httpClient.execute(httpPost);
          HttpEntity httpEntity = httpResponse.getEntity();
          is = httpEntity.getContent();           
  
      } catch (UnsupportedEncodingException e) {
          e.printStackTrace();
      } catch (ClientProtocolException e) {
          e.printStackTrace();
      } catch (IOException e) {
          e.printStackTrace();
      }
  
      try {
          BufferedReader reader = new BufferedReader(new InputStreamReader(
                  is, "iso-8859-1"), 8);
          StringBuilder sb = new StringBuilder();
          String line = null;
          while ((line = reader.readLine()) != null) {
              sb.append(line + "\n");
          }
          is.close();
          json = sb.toString();
      } catch (Exception e) {
          Log.e("Buffer Error", "Error converting result " + e.toString());
      }
  
      // try parse the string to a JSON object
      try {
          jObj = new JSONObject(json);
      } catch (JSONException e) {
          Log.e("JSON Parser", "Error parsing data " + e.toString());
      }
  
      // return JSON String
      return jObj;
  
  }
  }
  </code></pre>
  
  <p><strong>JSON ITEM - SingleMenuItemActivity.java</strong></p>
  
  <pre><code>package com.example.assent.app;
  
  import android.app.Activity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.widget.TextView;
  
  public class SingleMenuItemActivity  extends Activity {
  
  // JSON node keys
  private static final String TAG_NAME = "CompanyName";
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.single_list_item);
  
      // getting intent data
      Intent in = getIntent();
  
      // Get JSON values from previous intent
      String name = in.getStringExtra(TAG_NAME);
  
      // Displaying all values on the screen
      TextView lblName = (TextView) findViewById(R.id.name_label);
  
      lblName.setText(name);
  }
  }
  </code></pre>
  
  <p><strong>LAYOUT LIST ITEM - list_item.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical"&gt;
      &lt;!-- Name Label --&gt;
      &lt;TextView
          android:id="@+id/name"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:textColor="#43bd00"
          android:textSize="16sp"
          android:textStyle="bold"
          android:paddingTop="6dip"
          android:paddingBottom="2dip" /&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>MAIN LAYOUT - main.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical"&gt;
  &lt;!-- Main ListView 
       Always give id value as list(@android:id/list)
  --&gt;
  &lt;ListView
      android:id="@android:id/list"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>SINGLE ITEM LAYOUT - single_item_list.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  &lt;!-- Name Label --&gt;
  &lt;TextView android:id="@+id/name_label"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:textSize="25dip"
          android:textStyle="bold"
          android:paddingTop="10dip"
          android:paddingBottom="10dip"
          android:textColor="#43bd00"/&gt;
  &lt;!-- Description Label --&gt;
  &lt;TextView android:id="@+id/email_label"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:textColor="#acacac"/&gt;
  &lt;!-- Price Label --&gt;
  &lt;TextView android:id="@+id/mobile_label"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:textStyle="bold"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>MY MANIFEST</strong></p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.example.assent.app"
  android:versionCode="1"
  android:versionName="1.0" &gt;
  
  &lt;uses-sdk
      android:minSdkVersion="8"
      android:targetSdkVersion="15" /&gt;
  
  &lt;application
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
  
      &lt;activity
          android:name=".HomePage"
          android:label="@string/title_activity_home_page" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".MainActivity"
          android:label="@string/title_activity_main" &gt;
          &lt;meta-data
              android:name="android.support.PARENT_ACTIVITY"
              android:value="com.example.assent.app.HomePage" /&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".Photos"
          android:label="@string/title_activity_photos" &gt;
          &lt;meta-data
              android:name="android.support.PARENT_ACTIVITY"
              android:value="com.example.assent.app.MainActivity" /&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".AudioNotes"
          android:label="@string/title_activity_audio_notes" &gt;
          &lt;meta-data
              android:name="android.support.PARENT_ACTIVITY"
              android:value="com.example.assent.app.MainActivity" /&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".Notes"
          android:label="@string/title_activity_notes" &gt;
          &lt;meta-data
              android:name="android.support.PARENT_ACTIVITY"
              android:value="com.example.assent.app.MainActivity" /&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".Documents"
          android:label="@string/title_activity_documents" &gt;
          &lt;meta-data
              android:name="android.support.PARENT_ACTIVITY"
              android:value="com.example.assent.app.MainActivity" /&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".PhotosSuccess"
          android:label="@string/title_activity_photos_success" &gt;
          &lt;meta-data
              android:name="android.support.PARENT_ACTIVITY"
              android:value="com.example.assent.app.MainActivity" /&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".PhotosActivity"
          android:label="@string/title_activity_photos" &gt;
          &lt;meta-data
              android:name="android.support.PARENT_ACTIVITY"
              android:value="com.example.assent.app.MainActivity" /&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".Photos_Upload"
          android:label="@string/title_activity_photos__upload" &gt;
          &lt;meta-data
              android:name="android.support.PARENT_ACTIVITY"
              android:value="com.example.assent.app.MainActivity" /&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".ImageUpload"
          android:label="@string/title_activity_image_upload" &gt;
          &lt;meta-data
              android:name="android.support.PARENT_ACTIVITY"
              android:value="com.example.assent.app.MainActivity" /&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".Notes_Upload"
          android:label="@string/title_activity_notes__upload" &gt;
          &lt;meta-data
              android:name="android.support.PARENT_ACTIVITY"
              android:value="com.example.assent.app.MainActivity" /&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".SelectClient"
          android:label="@string/title_activity_select_client" &gt;
          &lt;meta-data
              android:name="android.support.PARENT_ACTIVITY"
              android:value="com.example.assent.app.HomePage" /&gt;
      &lt;/activity&gt;
      &lt;activity
          android:label="@string/app_name"
          android:name=".AndroidJSONParsingActivity" &gt;
          &lt;intent-filter &gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
      &lt;!-- Single List Item View --&gt;
      &lt;activity
          android:label="Single Menu Item"
          android:name=".SingleMenuItemActivity" &gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p><strong>MY ECLIPSE LOG</strong></p>
  
  <pre><code>11-22 12:10:56.638: D/dalvikvm(381): GC_FOR_ALLOC freed 88K, 3% free 6478K/6663K, paused 56ms
  11-22 12:10:56.648: I/dalvikvm-heap(381): Grow heap (frag case) to 6.872MB for 513744-byte allocation
  11-22 12:10:56.738: D/dalvikvm(381): GC_FOR_ALLOC freed 2K, 3% free 6977K/7175K, paused 53ms
  11-22 12:10:56.868: D/dalvikvm(381): GC_CONCURRENT freed &lt;1K, 3% free 6977K/7175K, paused 4ms+22ms
  11-22 12:10:56.938: D/AndroidRuntime(381): Shutting down VM
  11-22 12:10:56.938: W/dalvikvm(381): threadid=1: thread exiting with uncaught exception (group=0x40014760)
  11-22 12:10:56.958: E/AndroidRuntime(381): FATAL EXCEPTION: main
  11-22 12:10:56.958: E/AndroidRuntime(381): java.lang.RuntimeException: Unable to start activity          ComponentInfo{com.example.assent.app/com.example.assent.app.AndroidJSONParsingActivity}: android.os.NetworkOnMainThreadException
  11-22 12:10:56.958: E/AndroidRuntime(381):  at     android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1815)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1831)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at android.app.ActivityThread.access$500(ActivityThread.java:122)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1024)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at android.os.Handler.dispatchMessage(Handler.java:99)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at android.os.Looper.loop(Looper.java:132)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at     android.app.ActivityThread.main(ActivityThread.java:4123)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at java.lang.reflect.Method.invokeNative(Native Method)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at java.lang.reflect.Method.invoke(Method.java:491)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at dalvik.system.NativeStart.main(Native Method)
  11-22 12:10:56.958: E/AndroidRuntime(381): Caused by: android.os.NetworkOnMainThreadException
  11-22 12:10:56.958: E/AndroidRuntime(381):  at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1077)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at java.net.InetAddress.lookupHostByName(InetAddress.java:477)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at java.net.InetAddress.getAllByNameImpl(InetAddress.java:277)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at java.net.InetAddress.getAllByName(InetAddress.java:249)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at com.example.assent.app.JSONParser.getJSONFromUrl(JSONParser.java:38)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at com.example.assent.app.AndroidJSONParsingActivity.onCreate(AndroidJSONParsingActivity.java:46)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at android.app.Activity.performCreate(Activity.java:4397)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1048)
  11-22 12:10:56.958: E/AndroidRuntime(381):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1779)
  11-22 12:10:56.958: E/AndroidRuntime(381):  ... 11 more
  11-22 12:11:00.760: I/Process(381): Sending signal. PID: 381 SIG: 9
  </code></pre>
  
  <p>Sorry once again for code dumping, hopefully somebody can point me in the right direction</p>