package com.xlythe.sms;

public class SmsReceiver extends com.xlythe.textmanager.text.SmsReceiver {
    public SmsReceiver() {
    }
<<<<<<< HEAD

    @Override
    public void onReceive(Context context, Intent intent) {
        // TODO: This method is called when the BroadcastReceiver is receiving
        // an Intent broadcast.
        //throw new UnsupportedOperationException("Not yet implemented");

        final Bundle bundle = intent.getExtras();

        try {
            if (bundle != null) {
                final Object[] pdusObj = (Object[]) bundle.get("pdus");
                SmsMessage[] messages = new SmsMessage[pdusObj.length];

                for (int i = 0; i < pdusObj.length; i++) {
                    SmsMessage currentMessage = SmsMessage.createFromPdu((byte[]) pdusObj[i]);

                    messages[i] = currentMessage;

                    String number = currentMessage.getDisplayOriginatingAddress();
                    String message = currentMessage.getDisplayMessageBody();

                    Log.i("SmsReciver", number + ": " + message);
                    Toast.makeText(context, number + ": " + message, Toast.LENGTH_LONG).show();
                }

                if(Telephony.Sms.Intents.SMS_DELIVER_ACTION.equals(intent.getAction())) {
                    Receive.storeMessage(context, messages, 0);
                }
            }
        } catch (Exception e) {
            // TODO: handle exception
            Log.e("SmsReciver", "Exception smsReciver" + e);
        }
    }
=======
>>>>>>> mms
}

@@ -130,1425 +130,6 @@
   %7D%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A%0A    @Override%0A    public void onReceive(Context context, Intent intent) %7B%0A        // TODO: This method is called when the BroadcastReceiver is receiving%0A        // an Intent broadcast.%0A        //throw new UnsupportedOperationException(%22Not yet implemented%22);%0A%0A        final Bundle bundle = intent.getExtras();%0A%0A        try %7B%0A            if (bundle != null) %7B%0A                final Object%5B%5D pdusObj = (Object%5B%5D) bundle.get(%22pdus%22);%0A                SmsMessage%5B%5D messages = new SmsMessage%5BpdusObj.length%5D;%0A%0A                for (int i = 0; i %3C pdusObj.length; i++) %7B%0A                    SmsMessage currentMessage = SmsMessage.createFromPdu((byte%5B%5D) pdusObj%5Bi%5D);%0A%0A                    messages%5Bi%5D = currentMessage;%0A%0A                    String number = currentMessage.getDisplayOriginatingAddress();%0A                    String message = currentMessage.getDisplayMessageBody();%0A%0A                    Log.i(%22SmsReciver%22, number + %22: %22 + message);%0A                    Toast.makeText(context, number + %22: %22 + message, Toast.LENGTH_LONG).show();%0A                %7D%0A%0A                if(Telephony.Sms.Intents.SMS_DELIVER_ACTION.equals(intent.getAction())) %7B%0A                    Receive.storeMessage(context, messages, 0);%0A                %7D%0A            %7D%0A        %7D catch (Exception e) %7B%0A            // TODO: handle exception%0A            Log.e(%22SmsReciver%22, %22Exception smsReciver%22 + e);%0A        %7D%0A    %7D%0A=======%0A%3E%3E%3E%3E%3E%3E%3E mms%0A
 %7D%0A

resolve conflict sms receiver