Skip to content

Instantly share code, notes, and snippets.

View iqzmn's full-sized avatar
:electron:

Igor Kuzmin iqzmn

:electron:
View GitHub Profile
@iqzmn
iqzmn / noprds.ipynb
Last active June 14, 2024 18:42
print without print
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@iqzmn
iqzmn / scratch.md
Created October 31, 2019 12:13
NotificationCompat.Builder getNotificationBuilder()

31.10.2019, 14:49:45

//если версия андроид выше 8, то нужен канал
//также после этой версии не принято объявлять receiver от BroadcasatReceiver в манифесте, использовать JobScheduler
class Main{
private NotificationCompat.Builder getNotificationBuilder() {
    if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O)
        return new NotificationCompat.Builder(this);
 		else {
 String channelId = "my_channel_id";