Android Open Source - LheidoSMS Mms Fragment Receiver






From Project

Back to project page LheidoSMS.

License

The source code is released under:

GNU General Public License

If you think the Android project LheidoSMS 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.lheidosms.receiver;
//  ww w .  j  a v  a  2s  .  c  om
import android.content.Intent;

import com.lheidosms.utils.LheidoUtils;

import java.util.ArrayList;

/**
 * Created by lheido on 01/11/14.
 */
public abstract class MmsFragmentReceiver extends LheidoBaseReceiver {
    @Override
    protected ArrayList<String> initActions() {
        ArrayList<String> actions = new ArrayList<String>();
        actions.add(LheidoUtils.ACTION_NOTIFY_RECEIVE_MMS);
        actions.add(LheidoUtils.ACTION_NOTIFY_DELIVERED_MMS);
        return actions;
    }

    @Override
    protected void receive(Intent intent) {
//        if(iAction.equals(LheidoUtils.ACTION_NOTIFY_RECEIVE_SMS)){
//            String body = intent.getStringExtra(LheidoUtils.Send.SMS_ATTR_BODY);
//            String sender = intent.getStringExtra(LheidoUtils.Send.SMS_ATTR_SENDER);
//            long id = intent.getLongExtra(LheidoUtils.Send.SMS_ATTR_ID, -1);
//            long date = intent.getLongExtra(LheidoUtils.Send.SMS_ATTR_DATE, -1);
//            boolean isRead = intent.getBooleanExtra(LheidoUtils.Send.SMS_ATTR_READ, false);
//            customNotifyReceive(id, sender, body, date, isRead);
//        }else if(iAction.equals(LheidoUtils.ACTION_NOTIFY_DELIVERED_SMS)){
//            customNotifyDelivered(intent.getLongExtra(LheidoUtils.ARG_SMS_DELIVERED, -1));
//        }
    }

    protected abstract void customNotifyDelivered(long id);

    protected abstract void customNotifyReceive(long id, String sender, String body, long date, boolean isRead);
}




Java Source Code List

com.lheidosms.adapter.ContactsListAdapter.java
com.lheidosms.adapter.ConversationAdapter.java
com.lheidosms.adapter.ListeConversationsAdapter.java
com.lheidosms.adapter.MMSAdapter.java
com.lheidosms.adapter.SmsAdapter.java
com.lheidosms.adapter.SmsBaseAdapter.java
com.lheidosms.adapter.ViewPagerAdapter.java
com.lheidosms.app.AutoComplete.java
com.lheidosms.app.Global.java
com.lheidosms.app.MainLheidoSMS.java
com.lheidosms.fragment.MMSFragment.java
com.lheidosms.fragment.NavigationDrawerFragment.java
com.lheidosms.fragment.SMSFragment.java
com.lheidosms.fragment.SmsBaseFragment.java
com.lheidosms.preference.LheidoSMSPreferenceOldApi.java
com.lheidosms.preference.LheidoSMSPreference.java
com.lheidosms.preference.PrefConversationFragment.java
com.lheidosms.preference.PrefGeneralFragment.java
com.lheidosms.preference.PrefListConversationsFragment.java
com.lheidosms.preference.PrefReceiveFragment.java
com.lheidosms.receiver.BootReceiver.java
com.lheidosms.receiver.LheidoBaseReceiver.java
com.lheidosms.receiver.MainServiceReceiver.java
com.lheidosms.receiver.MmsFragmentReceiver.java
com.lheidosms.receiver.SmsFragmentReceiver.java
com.lheidosms.receiver.SmsReceiver.java
com.lheidosms.service.DeleteOldSMSService.java
com.lheidosms.service.LheidoSMSService.java
com.lheidosms.service.MainService.java
com.lheidosms.service.RemoveConversationService.java
com.lheidosms.utils.BuildFragment.java
com.lheidosms.utils.LheidoContact.java
com.lheidosms.utils.LheidoUtils.java
com.lheidosms.utils.Message.java