The reason why main activity is created everytime after SMS sent is PendingIntent.
Delete it now. Check PendingIntent sooner.
Next step: 2 activity, send information between them.