Guest User

Untitled

a guest
Jul 10th, 2020
16
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.kdab.training;
  2.  
  3. import android.content.Context;
  4. import android.content.Intent;
  5. import android.content.BroadcastReceiver;
  6. import android.util.Log;
  7.  
  8. public class MyBroadcastReceiver extends BroadcastReceiver {
  9. @Override
  10. public void onReceive(Context context, Intent intent) {
  11. Intent startServiceIntent = new Intent(context, MyBroadcastReceiver.class);
  12. Log.i("QtAndroidService", "Creating Qt-Android-Service");
  13. context.startService(startServiceIntent);
  14. }
  15. }
RAW Paste Data