Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. public class MainActivity extends AppCompatActivity {
  2.  
  3. IMyAidl iMyAidl;
  4.  
  5. @Override
  6. protected void onCreate(Bundle savedInstanceState) {
  7. super.onCreate(savedInstanceState);
  8. setContentView(R.layout.activity_main);
  9. Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
  10. setSupportActionBar(toolbar);
  11. }
  12.  
  13. private ServiceConnection serviceConnection = new ServiceConnection() {
  14. @Override
  15. public void onServiceConnected(ComponentName name, IBinder service) {
  16. iMyAidl = IMyAidl.Stub.asInterface(service);
  17. }
  18.  
  19. @Override
  20. public void onServiceDisconnected(ComponentName name) {
  21.  
  22. }
  23. };
  24.  
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement