@Override public void onServiceConnected(ComponentName name, IBinder service) { // TODO Auto-generated method stub if (name.getShortClassName().equals(API_SERVICE_NAME)) { apiServiceInterface = ApiServiceInterface.Stub.asInterface(service); if (data.isEmpty()) { try { // setProgressBarIndeterminateVisibility(true); showProgressDialog(); // Prepare Parameters Map<String, Object> parameters; parameters = new HashMap<String, Object>(); Bundle bundle = this.getIntent().getExtras(); parameters.put("uid", bundle.getString("uid")); parameters.put("aid", bundle.getString("aid")); if ("4".equals(bundle.getString("visible"))) { parameters.put("password", bundle.getString("password")); } // Request apiServiceInterface.request( statusData.getCurrentService(), CommHandler.TYPE_GET_ALBUM_PHOTOS, apiServiceListener, parameters); } catch (RemoteException e) { e.printStackTrace(); } } } }
public void onServiceConnected(ComponentName name, IBinder binder) { onConnected(binder); if (DEBUG_PROXY) { Log.v(mTag, "Connected: " + name.getShortClassName()); } // Run our task on a new thread new Thread( new Runnable() { public void run() { try { runTask(); } finally { endTask(); } } }) .start(); }
public void onServiceDisconnected(ComponentName name) { if (DEBUG_PROXY) { Log.v(mTag, "Disconnected: " + name.getShortClassName()); } }