package com.bigndesign.light;

import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;

public class AskActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_ask);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);

        FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
        fab.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
                        .setAction("Action", null).show();
            }
        });
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    }

}

@@ -43,17 +43,155 @@
 oid.
-os.Bundle
+content.ComponentName;%0Aimport android.content.Intent;%0Aimport android.content.ServiceConnection;%0Aimport android.os.Bundle;%0Aimport android.os.IBinder
 ;%0Aim
@@ -410,16 +410,48 @@
 ew.View;
+%0Aimport android.widget.EditText;
 %0A%0Apublic
@@ -496,16 +496,297 @@
 tivity %7B
+%0A    private String recipientId;%0A    private EditText messageBodyField;%0A    private String messageBody;%0A    private MessageService.MessageServiceInterface messageService;%0A    private String currentUserId;%0A    private ServiceConnection serviceConnection = new MyServiceConnection();
 %0A%0A    @O
@@ -1494,14 +1494,1068 @@
 ue);
+%0A%0A        final Intent serviceIntent = new Intent(getApplicationContext(), MessageService.class);%0A%0A        startService(serviceIntent);%0A%0A        messageBodyField = (EditText) findViewById(R.id.messageBodyField);%0A%0A        //listen for a click on the send button%0A        findViewById(R.id.btnSend).setOnClickListener(new View.OnClickListener() %7B%0A            @Override%0A            public void onClick(View view) %7B%0A                //send the message!%0A            %7D%0A        %7D);%0A    %7D%0A%0A    //unbind the service when the activity is destroyed%0A    @Override%0A    public void onDestroy() %7B%0A        unbindService(serviceConnection);%0A        super.onDestroy();%0A    %7D%0A%0A    private class MyServiceConnection implements ServiceConnection %7B%0A        @Override%0A        public void onServiceConnected(ComponentName componentName, IBinder iBinder) %7B%0A            messageService = (MessageService.MessageServiceInterface) iBinder;%0A        %7D%0A%0A        @Override%0A        public void onServiceDisconnected(ComponentName componentName) %7B%0A            messageService = null;%0A        %7D
 %0A    %7D%0A
-%0A
 %7D%0A

Add Sinch code