package com.geel9.facepunch.activities; import com.geel9.facepunch.R; import com.geel9.facepunch.R.id; import com.geel9.facepunch.R.layout; import android.app.NotificationManager; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.text.Html; import android.widget.TextView; public class DevMessageActivity extends FPActivity { @Override public void onCreate(Bundle b){ super.onCreate(b); setContentView(R.layout.devmessage); Intent intent = getIntent(); String message = intent.getStringExtra("message").replace("\'", "'"); int id = intent.getIntExtra("id", 0); NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); mNotificationManager.cancel(id); TextView text = (TextView)findViewById(R.id.textViewDevMessage); text.setText(Html.fromHtml(message)); } }