title: How to extend android class with delphi xe5
body: <p>I tried to extend a class/interface from "Androidapi.JNI.App.pas" (TJservice), I need to extend this class for make a service. Is it possible? How?</p>
  
  <p><a href="http://examples.javacodegeeks.com/android/core/service/android-service-example/" rel="nofollow">some example of java/android service</a></p>
  
  <p>I need to override method like : oncreate, onbind, ondestroy. But I don't know how.</p>
  
  <p>I tried something like this: </p>
  
  <pre><code> type Tandroidservice= class(TJService)
    function onBind(intent: JIntent): JIBinder; override;
    procedure onCreate; override;
    procedure onDestroy; override;
    procedure onStart(intent: JIntent; startId: Integer); override;
   end;
  </code></pre>
  
  <p>with this error:</p>
  
  <pre><code>[DCC Error] Unit1.pas(13): E2137 Method 'onBind' not found in base class
  [DCC Error] Unit1.pas(14): E2137 Method 'onCreate' not found in base class
  [DCC Error] Unit1.pas(15): E2137 Method 'onDestroy' not found in base class
  [DCC Error] Unit1.pas(16): E2137 Method 'onStart' not found in base class
  [DCC Error] Unit1.pas(13): E2065 Unsatisfied forward or external declaration: 'Tandroidservice.onBind'
  [DCC Error] Unit1.pas(14): E2065 Unsatisfied forward or external declaration: 'Tandroidservice.onCreate'
  [DCC Error] Unit1.pas(15): E2065 Unsatisfied forward or external declaration: 'Tandroidservice.onDestroy'
  [DCC Error] Unit1.pas(16): E2065 Unsatisfied forward or external declaration: 'Tandroidservice.onStart'
  </code></pre>