Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. package com.helloworldreceiver.it;
  2.  
  3. import android.app.Service;
  4. import android.content.Intent;
  5. import android.os.IBinder;
  6. import android.widget.Toast;
  7.  
  8. public class Receiver extends Service {
  9.     @Override
  10.     public IBinder onBind(Intent intent) {
  11.         return null;
  12.     }
  13.  
  14.     @Override
  15.     public void onCreate() {
  16.         super.onCreate();
  17.     }
  18.  
  19.     @Override
  20.     public void onDestroy() {
  21.         super.onDestroy();
  22.     }
  23.  
  24.     @Override
  25.     public void onStart(Intent intent, int startId) {
  26.         super.onStart(intent, startId);
  27.         Toast.makeText(getApplicationContext(), (String)getText(R.string.hello), Toast.LENGTH_LONG).show();
  28.     }
  29. }