mirror of
https://github.com/xoureldeen/Vectras-VM-Android.git
synced 2026-04-29 06:49:52 +00:00
Waffle
This commit is contained in:
parent
b0812301fa
commit
047eb23967
19 changed files with 269 additions and 171 deletions
|
|
@ -24,6 +24,8 @@ import java.io.IOException;
|
|||
import java.io.InputStream;
|
||||
import java.net.DatagramPacket;
|
||||
import java.net.DatagramSocket;
|
||||
import java.util.Timer;
|
||||
import java.util.TimerTask;
|
||||
|
||||
public class AudioStreamService extends Service {
|
||||
|
||||
|
|
@ -40,13 +42,13 @@ public class AudioStreamService extends Service {
|
|||
public void onCreate() {
|
||||
super.onCreate();
|
||||
|
||||
createNotificationChannel();
|
||||
Notification notification = new NotificationCompat.Builder(this, CHANNEL_ID)
|
||||
.setContentTitle("Audio Streaming")
|
||||
.setContentText("Receiving audio stream...")
|
||||
.setSmallIcon(R.drawable.volume_up_24px)
|
||||
.build();
|
||||
startForeground(1, notification);
|
||||
// createNotificationChannel();
|
||||
// Notification notification = new NotificationCompat.Builder(this, CHANNEL_ID)
|
||||
// .setContentTitle("Audio Streaming")
|
||||
// .setContentText("Receiving audio stream...")
|
||||
// .setSmallIcon(R.drawable.volume_up_24px)
|
||||
// .build();
|
||||
// startForeground(1, notification);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue