Foreground Service Integration
- Add Foreground Service - Reviewed Progress Method - Reviewed Transfer Object Integration - Fix Some Error
This commit is contained in:
		@ -17,7 +17,6 @@ public class TransferService extends Service {
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public int onStartCommand(Intent intent, int flags, int startId) {
 | 
			
		||||
        int id = intent.getIntExtra("id", 0);
 | 
			
		||||
 | 
			
		||||
        Intent notificationIntent = new Intent(this, MainActivity.class);
 | 
			
		||||
        PendingIntent pendingIntent = PendingIntent.getActivity(this,
 | 
			
		||||
@ -27,7 +26,7 @@ public class TransferService extends Service {
 | 
			
		||||
                .setContentIntent(pendingIntent)
 | 
			
		||||
                .build();
 | 
			
		||||
 | 
			
		||||
        startForeground(id, notification);
 | 
			
		||||
        startForeground(Transfer.NOTIF_SERVICE, notification);
 | 
			
		||||
 | 
			
		||||
        //do heavy work on a background thread
 | 
			
		||||
        //stopSelf();
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user