@@ -0,0 +1,1753 @@
+package com.example.com.cameraapp;%0A%0Aimport android.app.Notification;%0Aimport android.app.NotificationManager;%0Aimport android.app.PendingIntent;%0Aimport android.content.Context;%0Aimport android.content.Intent;%0Aimport android.support.v7.app.AppCompatActivity;%0Aimport android.os.Bundle;%0Aimport android.support.v7.app.NotificationCompat;%0Aimport android.view.View;%0Aimport android.widget.Button;%0Aimport android.widget.EditText;%0Aimport static java.lang.System.currentTimeMillis;%0A%0Apublic class NotificationActivity extends AppCompatActivity %7B%0A%0A    EditText inputText;%0A    Button btnNotify;%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        setContentView(R.layout.activity_notification);%0A%0A        inputText=(EditText)findViewById(R.id.editText);%0A%0A        btnNotify = (Button)findViewById(R.id.button2);%0A        btnNotify.setOnClickListener(new View.OnClickListener() %7B%0A            @Override%0A            public void onClick(View v) %7B%0A                createNotification();%0A            %7D%0A        %7D);%0A%0A    %7D%0A%0A%0A%0A    private void createNotification() %7B%0A%0A        String text=inputText.getText().toString().trim();%0A%0A         int mId =19 ;%0A%0A        NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this);%0A                        mBuilder.setSmallIcon(R.drawable.ic_notifications_active_black_24dp);%0A                        mBuilder.setContentTitle(%22Notification%22);%0A                        mBuilder.setContentText(text);%0A%0A        NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);%0A        // mId allows you to update the notification later on.%0A        mNotificationManager.notify(mId, mBuilder.build());%0A%0A    %7D%0A%0A%0A%0A%7D%0A%0A%0A

Create NotificationActivity.java