Swarm integration for score board
<p>hello everyone i am integrating SWARM for my game score board. but when i am running it on emulator it is giving me an error.</p>

<p>here is my code</p>

<pre><code>package com.anm;

public class AnmActivity extends SwarmActivity {


/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Swarm.init(this, 1805, "6e3e07c3a4710aa3e444856613363126");
    setContentView(R.layout.main);

    t1 = (TextView) findViewById(R.id.textView1);
    update = (Button) findViewById(R.id.button1);
    go=(Button)findViewById(R.id.button2);
    go.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Swarm.showDashboard();
      }
});
    sc=new score();


    save();
    retrieve();

    update.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {

printValue();
        }
    });
    }

private void save() {

totalScore = sc.score;
    SharedPreferences sp =      

    PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
SharedPreferences.Editor spe = sp.edit();
spe.putInt("score", totalScore);
spe.commit();

}

private void retrieve() {
    SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
getTotalscore = sp.getInt("score", 0);

}

private void printValue() {

finalscore = finalscore+getTotalscore;
t1.setText("score is "+finalscore);

}
@Override
protected void onDestroy() {
super.onDestroy();
save();
}
@Override
protected void onResume() {
super.onResume();
t1.setText("score is "+finalscore);
}

}

here is my Android.manifest


package="com.anm"
android:versionCode="1"
android:versionName="1.0" &gt;

&lt;uses-sdk android:minSdkVersion="10" /&gt;
&lt;uses-permission android:name="android.permission.INTERNET"/&gt;
&lt;uses-permission android:name="android.permission.READ_PHONE_STATE"/&gt;
&lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/&gt;

&lt;application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name" &gt;
    &lt;activity
        android:name=".AnmActivity"
        android:label="@string/app_name" &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="com.swarmconnect.SwarmMainActivity"
        android:configChanges="orientation|keyboardHidden"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
        android:windowSoftInputMode="stateHidden" /&gt;

    &lt;service
        android:name="com.swarmconnect.NotificationService"
        android:process=":swarm" /&gt;
&lt;/application&gt;

 &lt;/manifest&gt;
</code></pre>
