Back to project page AltSMS.
The source code is released under:
MIT License
If you think the Android project AltSMS listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.ahmetkizilay.alt.sms; /* w ww . j av a2s . c om*/ import android.app.Activity; import android.content.Intent; import android.database.Cursor; import android.os.Bundle; import android.util.Log; import android.widget.ListView; public class ListMessagesActivity extends Activity { private final static String LOG_TAG = "AltSMS.ListMessagesActivity"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_list_messages); Intent intent = getIntent(); int threadId = intent.getIntExtra("thread_id", -1); SMSMediator smsMediator = new SMSMediator(this); Cursor smsCursor = smsMediator.getAllSmsByThreadId(threadId); final ListView listView = (ListView) findViewById(R.id.listview); listView.setAdapter(new SMSMessagesCursorAdapter(this, smsCursor)); } }