Android Open Source - AltSMS List Messages Activity






From Project

Back to project page AltSMS.

License

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.

Java Source Code

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));
    
  }
}




Java Source Code List

com.ahmetkizilay.alt.sms.ContactsUtils.java
com.ahmetkizilay.alt.sms.ListMessagesActivity.java
com.ahmetkizilay.alt.sms.ListThreadsActivity.java
com.ahmetkizilay.alt.sms.SMSMediator.java
com.ahmetkizilay.alt.sms.SMSMessagesCursorAdapter.java
com.ahmetkizilay.alt.sms.SMSThreadCursorAdapter.java