Skip to content

Instantly share code, notes, and snippets.

@baponkar
baponkar / AndroidManifest.xml
Last active July 22, 2021 06:48 — forked from BrandonSmith/AndroidManifest.xml
Quick example of how to schedule a notification in the future using AlarmManager
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.cards.notification">
<uses-sdk
android:minSdkVersion="17"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
@baponkar
baponkar / MainActivity.java
Created July 22, 2021 05:53
Send Simple text notification in android studio project
package com.example.sendnotification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.media.RingtoneManager;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;