mirror of https://github.com/FongMi/TV.git
parent
c630b4add2
commit
0b4bd95b2f
Binary file not shown.
@ -0,0 +1,18 @@ |
||||
package com.fongmi.android.tv.receiver; |
||||
|
||||
import android.content.BroadcastReceiver; |
||||
import android.content.Context; |
||||
import android.content.Intent; |
||||
|
||||
import com.android.cast.dlna.dmr.DLNARendererService; |
||||
import com.fongmi.android.tv.App; |
||||
import com.fongmi.android.tv.R; |
||||
|
||||
public class BootReceiver extends BroadcastReceiver { |
||||
|
||||
@Override |
||||
public void onReceive(Context context, Intent intent) { |
||||
DLNARendererService.Companion.startService(App.get(), R.drawable.ic_logo); |
||||
context.startActivity(context.getPackageManager().getLaunchIntentForPackage(context.getPackageName()).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)); |
||||
} |
||||
} |
||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Loading…
Reference in new issue