NOTIFICATION Set On Click Listener

NOTIFICATION

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {
    Button OpenActivityBtn, OpenBigContent;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        OpenActivityBtn= (Button)findViewById(R.id.btnNotificationA);
        OpenBigContent= (Button)findViewById(R.id.btnNotificationB);

        OpenActivityBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                NotificationGenerator.openActivityNotification(getApplicationContext());
            }
        });
    }
}

Leave a Reply