Skip to content

Instantly share code, notes, and snippets.

@Dcosta2205
Dcosta2205 / HeadsUpNotificationService.java
Last active June 22, 2021 09:21
Creating service to show headsup notification
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.media.AudioAttributes;
import android.media.AudioManager;
import android.net.Uri;
@Dcosta2205
Dcosta2205 / HeadsUpNotificationActionReceiver.java
Last active September 8, 2021 07:31
Broadcast receiver to handle headup notification button clicks
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
public class HeadsUpNotificationActionReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
public class MainActivity extends AppCompatActivity {
private Runnable runnable = new Runnable() {
@Override
public void run() {
// This runs in background thread. Do heavy operations here
}
// This thread will die once it comes out of the run method
};
@Dcosta2205
Dcosta2205 / spaceboy.json
Created June 23, 2022 11:51
Space Boy lottie animation
This file has been truncated, but you can view the full file.
{"v":"4.8.0","meta":{"g":"LottieFiles AE 2.0.4","a":"","k":"","d":"","tc":""},"fr":60,"ip":0,"op":240,"w":297,"h":431,"nm":"3","ddd":0,"assets":[{"id":"image_0","w":1000,"h":1781,"u":"","p":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA+gAAAb1CAYAAACg0+oGAAAACXBIWXMAAAABAAAAAQBPJcTWAAAAJHpUWHRDcmVhdG9yAAAImXNMyU9KVXBMK0ktUnBNS0tNLikGAEF6Bs5qehXFAAAgAElEQVR4nOzdebDs6V3f9/f3eZ7f0uvpPsvdZ9WM5o5GIGYAoWCV4yQyiXGVQ7DjwuCIlGVbhCpcYzsEHNuplJ3FKieAQ0xIpeSqqMCIsl1YhIARJLiwiSwhabTNSLPP3c5dztZ7/7bnefLHr++dGQkhJKNt9H1VdZ1z7+lzuk+f/qM//f0+3y8opZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSim
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width'>
<title>Privacy Policy</title>
<style> body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; padding:1em; } </style>
</head>
<body>
<strong>Privacy Policy</strong> <p>