Skip to content

repeatedly push notification for a period of time, replace Mi Band Alarm⏰

License

Notifications You must be signed in to change notification settings

xsthunder/notification-alarm

Repository files navigation

Notification Alarm

Introduction

forked from Android NotificationChannels Sample

repeatedly push notification after a period of time.replace Mi Band Alarm

mi band3,闹铃只震15下,能不能醒全靠运气。通过设定一段时间后重复发通知的方式来使手环震动,目前是规定时间过后每8秒发一次通知。

api level > 27

Download

see release compatible with Android 8.0 or 8.1

Usage

  1. 设置后台常驻和app alert。
  2. 两个框设置多少小时,多少分钟后开始闹铃。
  3. 点一下按钮设置闹铃。
  4. 有闹铃的情况下点一下按钮停止闹铃。

Pre-requisites

  • Connection with the real Internet
  • Android SDK 27
  • Android Build Tools v27.0.2
  • Android Support Repository

Getting Started

This sample uses the Gradle build system. To build this project, use the "gradlew build" command or use "Import Project" in Android Studio.

Support

If you've found an error in this sample, please file an issue: https://github.com/googlesamples/android-NotificationChannels

Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.

License

Copyright 2017 The Android Open Source Project, Inc.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

repeatedly push notification for a period of time, replace Mi Band Alarm⏰

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages