Back to project page ServicesTutorial.
The source code is released under:
Apache License
If you think the Android project ServicesTutorial listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.yanlu.android.services.app.service; /*from w ww . j a v a2 s. c o m*/ import android.app.Service; import android.content.Intent; import android.os.IBinder; public class StockQuoteService extends Service { private static final String TAG = "StockQuoteService"; @Override public IBinder onBind(Intent intent) { return null; } // public class StockQuoteServiceImpl extends IStockQuoteService { // @Override // public double getQuote(String ticker) throws RemoteException { // Log.v(TAG, "getQuote() called for " + ticker); // return 20.0; // } // } // public StockQuoteService() { // } // // @Override // public void onCreate() { // super.onCreate(); // Log.v(TAG, "onCreate() called"); } // @Override // public void onDestroy() { // super.onDestroy(); // Log.v(TAG, "onDestroy() called"); } // @Override // public IBinder onBind(Intent intent) { // Log.v(TAG, "onBind() called"); // return new StockQuoteServiceImpl(); } }