Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. public class MyServiceAidl extends Service {
  2.  
  3. MyIBind myIBind = new MyIBind();
  4.  
  5. public MyServiceAidl() {
  6. }
  7.  
  8. @Override
  9. public IBinder onBind(Intent intent) {
  10. return myIBind;
  11. }
  12.  
  13.  
  14. public class MyIBind extends IMyAidl.Stub{
  15.  
  16. @Override
  17. public double soma(double a, double b) throws RemoteException {
  18.  
  19. return (a + b);
  20. }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement