This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static class Activity { | |
| interface Listener {} | |
| Service service; | |
| Activity(Service service) { | |
| this.service = service; | |
| } | |
| void onStart() { | |
| service.registerListener(new Listener() {});//Listener hold a reference to Activity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| actionBar.addTab(actionBar.newTab() | |
| .setCustomView(TabUtils.renderTabView(NotificationsActivity.this, R.string.tab_invitations, R.drawable.tab_orange, numberOfNotifications)) | |
| .setTabListener(tabListener)); |
NewerOlder