Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Pododroid extends Activity {
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.main);
- mConection //haces lo que quieres con esto
- }
- ServiceConnection mConection = new ServiceConnection() {
- public void onServiceConnected(ComponentName className, IBinder service) {
- mServicio = ((PasoService.PasoBinder)service).getService();
- mServicio.registerCallback(mCallback);
- mServicio.actualizaPreferencias();
- }
- public void onServiceDisconnected(ComponentName className) {
- mServicio = null;
- }
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement