List of usage examples for android.content Intent setComponent
public @NonNull Intent setComponent(@Nullable ComponentName component)
From source file:g7.bluesky.launcher3.Launcher.java
/** * Event handler for the wallpaper picker button that appears after a long press * on the home screen./*from w w w. j av a2 s . c o m*/ */ protected void onClickWallpaperPicker(View v) { if (LOGD) Log.d(TAG, "onClickWallpaperPicker"); final Intent pickWallpaper = new Intent(Intent.ACTION_SET_WALLPAPER); pickWallpaper.setComponent(getWallpaperPickerComponent()); startActivityForResult(pickWallpaper, REQUEST_PICK_WALLPAPER); if (mLauncherCallbacks != null) { mLauncherCallbacks.onClickWallpaperPicker(v); } }
From source file:com.cognizant.trumobi.PersonaLauncher.java
/** * ADW: Home binding actions// ww w.j a va 2 s.com */ public void fireHomeBinding(int bindingValue, int type) { // ADW: switch home button binding user selection if (mIsEditMode || mIsWidgetEditMode) return; switch (bindingValue) { case BIND_DEFAULT: dismissPreviews(); if (!mWorkspace.isDefaultScreenShowing()) { mWorkspace.moveToDefaultScreen(); } break; case BIND_HOME_PREVIEWS: if (!mWorkspace.isDefaultScreenShowing()) { dismissPreviews(); mWorkspace.moveToDefaultScreen(); } else { if (!showingPreviews) { showPreviews(mHandleView, 0, mWorkspace.mHomeScreens); } else { dismissPreviews(); } } break; case BIND_PREVIEWS: if (!showingPreviews) { showPreviews(mHandleView, 0, mWorkspace.mHomeScreens); } else { dismissPreviews(); } break; case BIND_APPS: dismissPreviews(); if (isAllAppsVisible()) { mRAB.setVisibility(View.VISIBLE); mLAB.setVisibility(View.VISIBLE); mHandleView.updateIcon(); closeDrawer(); } else { showAllApps(true, null); } break; case BIND_STATUSBAR: WindowManager.LayoutParams attrs = getWindow().getAttributes(); /* * if((attrs.flags & WindowManager.LayoutParams.FLAG_FULLSCREEN) == * WindowManager.LayoutParams.FLAG_FULLSCREEN){ //go non-full screen * fullScreen(false); }else{ //go full screen fullScreen(true); } */ // 290778 commented for Non full screen mode fullScreen(false); break; case BIND_NOTIFICATIONS: dismissPreviews(); showNotifications(); break; case BIND_HOME_NOTIFICATIONS: if (!mWorkspace.isDefaultScreenShowing()) { dismissPreviews(); mWorkspace.moveToDefaultScreen(); } else { dismissPreviews(); showNotifications(); } break; case BIND_DOCKBAR: dismissPreviews(); if (showDockBar) { if (mDockBar.isOpen()) { mDockBar.close(); } else { mDockBar.open(); } } break; case BIND_APP_LAUNCHER: // Launch or bring to front selected app // Get PackageName and ClassName of selected App String package_name = ""; String name = ""; switch (type) { case 1: package_name = PersonaAlmostNexusSettingsHelper.getHomeBindingAppToLaunchPackageName(this); name = PersonaAlmostNexusSettingsHelper.getHomeBindingAppToLaunchName(this); break; case 2: package_name = PersonaAlmostNexusSettingsHelper.getSwipeUpAppToLaunchPackageName(this); name = PersonaAlmostNexusSettingsHelper.getSwipeUpAppToLaunchName(this); break; case 3: package_name = PersonaAlmostNexusSettingsHelper.getSwipeDownAppToLaunchPackageName(this); name = PersonaAlmostNexusSettingsHelper.getSwipeDownAppToLaunchName(this); break; default: break; } // Create Intent to Launch App if (package_name != "" && name != "") { Intent i = new Intent(); i.setAction(Intent.ACTION_MAIN); i.addCategory(Intent.CATEGORY_LAUNCHER); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); i.setComponent(new ComponentName(package_name, name)); try { startActivity(i); } catch (Exception e) { } } break; default: break; } }
From source file:com.cognizant.trumobi.PersonaLauncher.java
protected void editWidget(final View widget) { if (mWorkspace != null) { mIsWidgetEditMode = true;/* w ww .ja va 2 s . c om*/ final PersonaCellLayout screen = (PersonaCellLayout) mWorkspace .getChildAt(mWorkspace.getCurrentScreen()); if (screen != null) { mlauncherAppWidgetInfo = (PersonaLauncherAppWidgetInfo) widget.getTag(); final Intent motosize = new Intent("com.motorola.blur.home.ACTION_SET_WIDGET_SIZE"); final int appWidgetId = ((AppWidgetHostView) widget).getAppWidgetId(); final AppWidgetProviderInfo appWidgetInfo = mAppWidgetManager.getAppWidgetInfo(appWidgetId); if (appWidgetInfo != null) { motosize.setComponent(appWidgetInfo.provider); } motosize.putExtra("appWidgetId", appWidgetId); motosize.putExtra("com.motorola.blur.home.EXTRA_NEW_WIDGET", true); final int minw = (mWorkspace.getWidth() - screen.getLeftPadding() - screen.getRightPadding()) / screen.getCountX(); final int minh = (mWorkspace.getHeight() - screen.getBottomPadding() - screen.getTopPadding()) / screen.getCountY(); mScreensEditor = new PersonaResizeViewHandler(this); // Create a default HightlightView if we found no face in the // picture. int width = (mlauncherAppWidgetInfo.spanX * minw); int height = (mlauncherAppWidgetInfo.spanY * minh); final Rect screenRect = new Rect(0, 0, mWorkspace.getWidth() - screen.getRightPadding(), mWorkspace.getHeight() - screen.getBottomPadding()); final int x = mlauncherAppWidgetInfo.cellX * minw; final int y = mlauncherAppWidgetInfo.cellY * minh; final int[] spans = new int[] { 1, 1 }; final int[] position = new int[] { 1, 1 }; final PersonaCellLayout.LayoutParams lp = (PersonaCellLayout.LayoutParams) widget.getLayoutParams(); RectF widgetRect = new RectF(x, y, x + width, y + height); ((PersonaResizeViewHandler) mScreensEditor).setup(null, screenRect, widgetRect, false, false, minw - 10, minh - 10); mDragLayer.addView(mScreensEditor); ((PersonaResizeViewHandler) mScreensEditor) .setOnValidateSizingRect(new PersonaResizeViewHandler.OnSizeChangedListener() { @Override public void onTrigger(RectF r) { if (r != null) { final float left = Math.round(r.left / minw) * minw; final float top = Math.round(r.top / minh) * minh; final float right = left + (Math.max(Math.round(r.width() / (minw)), 1) * minw); final float bottom = top + (Math.max(Math.round(r.height() / (minh)), 1) * minh); r.set(left, top, right, bottom); } } }); final Rect checkRect = new Rect(); ((PersonaResizeViewHandler) mScreensEditor) .setOnSizeChangedListener(new PersonaResizeViewHandler.OnSizeChangedListener() { @Override public void onTrigger(RectF r) { int[] tmpspans = { Math.max(Math.round(r.width() / (minw)), 1), Math.max(Math.round(r.height() / (minh)), 1) }; int[] tmpposition = { Math.round(r.left / minw), Math.round(r.top / minh) }; checkRect.set(tmpposition[0], tmpposition[1], tmpposition[0] + tmpspans[0], tmpposition[1] + tmpspans[1]); boolean ocupada = getModel().ocuppiedArea(screen.getScreen(), appWidgetId, checkRect); if (!ocupada) { ((PersonaResizeViewHandler) mScreensEditor).setColliding(false); } else { ((PersonaResizeViewHandler) mScreensEditor).setColliding(true); } if (tmpposition[0] != position[0] || tmpposition[1] != position[1] || tmpspans[0] != spans[0] || tmpspans[1] != spans[1]) { if (!ocupada) { position[0] = tmpposition[0]; position[1] = tmpposition[1]; spans[0] = tmpspans[0]; spans[1] = tmpspans[1]; lp.cellX = position[0]; lp.cellY = position[1]; lp.cellHSpan = spans[0]; lp.cellVSpan = spans[1]; widget.setLayoutParams(lp); mlauncherAppWidgetInfo.cellX = lp.cellX; mlauncherAppWidgetInfo.cellY = lp.cellY; mlauncherAppWidgetInfo.spanX = lp.cellHSpan; mlauncherAppWidgetInfo.spanY = lp.cellVSpan; widget.setTag(mlauncherAppWidgetInfo); // send the broadcast motosize.putExtra("spanX", spans[0]); motosize.putExtra("spanY", spans[1]); PersonaLauncher.this.sendBroadcast(motosize); PersonaLog.d("RESIZEHANDLER", "sent resize broadcast"); } } } }); } } }
From source file:com.tct.mail.ui.AbstractActivityController.java
/** * TCT: This will launch a new activity with a new controller to do remote search. *//*w w w . j a v a 2 s.c o m*/ @Override public void executeSearch(String query) { AnalyticsTimer.getInstance().trackStart(AnalyticsTimer.SEARCH_TO_LIST); /// TCT: add search field for remote search. @{ String searchFiled = null; if (mConvListContext != null) { searchFiled = mConvListContext.getSearchField(); } if (TextUtils.isEmpty(searchFiled)) { LogUtils.d(LOG_TAG, "set search field as ALL, if user not set search field"); searchFiled = SearchParams.SEARCH_FIELD_ALL; } /// @} Intent intent = new Intent(); intent.setAction(Intent.ACTION_SEARCH); intent.putExtra(ConversationListContext.EXTRA_SEARCH_QUERY, query); /// TCT: add search field for remote search. @{ intent.putExtra(SearchParams.BUNDLE_QUERY_FIELD, searchFiled); /// @} intent.putExtra(Utils.EXTRA_ACCOUNT, mAccount); intent.setComponent(mActivity.getComponentName()); /// TCT: It's better to stay at local search UI when back from remote search. // mActionBarController.collapseSearch(); // Call startActivityForResult here so we can tell if we have navigated to a different folder // or account from search results. mActivity.startActivityForResult(intent, CHANGE_NAVIGATION_REQUEST_CODE); }
From source file:android.app.Activity.java
/** * Navigate from this activity to the activity specified by upIntent, finishing this activity * in the process. If the activity indicated by upIntent already exists in the task's history, * this activity and all others before the indicated activity in the history stack will be * finished./*from www . ja v a2s . co m*/ * * <p>If the indicated activity does not appear in the history stack, this will finish * each activity in this task until the root activity of the task is reached, resulting in * an "in-app home" behavior. This can be useful in apps with a complex navigation hierarchy * when an activity may be reached by a path not passing through a canonical parent * activity.</p> * * <p>This method should be used when performing up navigation from within the same task * as the destination. If up navigation should cross tasks in some cases, see * {@link #shouldUpRecreateTask(Intent)}.</p> * * @param upIntent An intent representing the target destination for up navigation * * @return true if up navigation successfully reached the activity indicated by upIntent and * upIntent was delivered to it. false if an instance of the indicated activity could * not be found and this activity was simply finished normally. */ public boolean navigateUpTo(Intent upIntent) { if (mParent == null) { ComponentName destInfo = upIntent.getComponent(); if (destInfo == null) { destInfo = upIntent.resolveActivity(getPackageManager()); if (destInfo == null) { return false; } upIntent = new Intent(upIntent); upIntent.setComponent(destInfo); } int resultCode; Intent resultData; synchronized (this) { resultCode = mResultCode; resultData = mResultData; } if (resultData != null) { resultData.prepareToLeaveProcess(); } try { upIntent.prepareToLeaveProcess(); return ActivityManagerNative.getDefault().navigateUpTo(mToken, upIntent, resultCode, resultData); } catch (RemoteException e) { return false; } } else { return mParent.navigateUpToFromChild(this, upIntent); } }
From source file:com.codename1.impl.android.AndroidImplementation.java
public Object notifyStatusBar(String tickerText, String contentTitle, String contentBody, boolean vibrate, boolean flashLights, Hashtable args) { int id = getContext().getResources().getIdentifier("icon", "drawable", getContext().getApplicationInfo().packageName); NotificationManager notificationManager = (NotificationManager) getContext() .getSystemService(Activity.NOTIFICATION_SERVICE); Intent notificationIntent = new Intent(); notificationIntent.setComponent(getActivity().getComponentName()); PendingIntent contentIntent = PendingIntent.getActivity(getContext(), 0, notificationIntent, 0); NotificationCompat.Builder builder = new NotificationCompat.Builder(getContext()) .setContentIntent(contentIntent).setSmallIcon(id).setContentTitle(contentTitle) .setTicker(tickerText);/*from w ww. j av a 2 s. c om*/ if (flashLights) { builder.setLights(0, 1000, 1000); } if (vibrate) { builder.setVibrate(new long[] { 0, 100, 1000 }); } if (args != null) { Boolean b = (Boolean) args.get("persist"); if (b != null && b.booleanValue()) { builder.setAutoCancel(false); builder.setOngoing(true); } else { builder.setAutoCancel(false); } } else { builder.setAutoCancel(true); } Notification notification = builder.build(); int notifyId = 10001; notificationManager.notify("CN1", notifyId, notification); return new Integer(notifyId); }
From source file:com.codename1.impl.android.AndroidImplementation.java
public void scheduleLocalNotification(LocalNotification notif, long firstTime, int repeat) { final Intent notificationIntent = new Intent(getContext(), LocalNotificationPublisher.class); notificationIntent.setAction(getContext().getApplicationInfo().packageName + "." + notif.getId()); notificationIntent.putExtra(LocalNotificationPublisher.NOTIFICATION, createBundleFromNotification(notif)); Intent contentIntent = new Intent(); if (getActivity() != null) { contentIntent.setComponent(getActivity().getComponentName()); }/* w ww .jav a 2 s .c o m*/ contentIntent.putExtra("LocalNotificationID", notif.getId()); if (BACKGROUND_FETCH_NOTIFICATION_ID.equals(notif.getId()) && getBackgroundFetchListener() != null) { Context context = AndroidNativeUtil.getContext(); Intent intent = new Intent(context, BackgroundFetchHandler.class); //there is an bug that causes this to not to workhttps://code.google.com/p/android/issues/detail?id=81812 //intent.putExtra("backgroundClass", getBackgroundLocationListener().getName()); //an ugly workaround to the putExtra bug intent.setData( Uri.parse("http://codenameone.com/a?" + getBackgroundFetchListener().getClass().getName())); PendingIntent pendingIntent = PendingIntent.getService(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT); notificationIntent.putExtra(LocalNotificationPublisher.BACKGROUND_FETCH_INTENT, pendingIntent); } else { contentIntent.setData( Uri.parse("http://codenameone.com/a?LocalNotificationID=" + Uri.encode(notif.getId()))); } PendingIntent pendingContentIntent = PendingIntent.getActivity(getContext(), 0, contentIntent, PendingIntent.FLAG_UPDATE_CURRENT); notificationIntent.putExtra(LocalNotificationPublisher.NOTIFICATION_INTENT, pendingContentIntent); PendingIntent pendingIntent = PendingIntent.getBroadcast(getContext(), 0, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT); AlarmManager alarmManager = (AlarmManager) getContext().getSystemService(Context.ALARM_SERVICE); if (BACKGROUND_FETCH_NOTIFICATION_ID.equals(notif.getId())) { alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, firstTime, getPreferredBackgroundFetchInterval() * 1000, pendingIntent); } else { if (repeat == LocalNotification.REPEAT_NONE) { alarmManager.set(AlarmManager.RTC_WAKEUP, firstTime, pendingIntent); } else if (repeat == LocalNotification.REPEAT_MINUTE) { alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, firstTime, 60 * 1000, pendingIntent); } else if (repeat == LocalNotification.REPEAT_HOUR) { alarmManager.setInexactRepeating(AlarmManager.RTC_WAKEUP, firstTime, AlarmManager.INTERVAL_HALF_HOUR, pendingIntent); } else if (repeat == LocalNotification.REPEAT_DAY) { alarmManager.setInexactRepeating(AlarmManager.RTC_WAKEUP, firstTime, AlarmManager.INTERVAL_DAY, pendingIntent); } else if (repeat == LocalNotification.REPEAT_WEEK) { alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, firstTime, AlarmManager.INTERVAL_DAY * 7, pendingIntent); } } }
From source file:com.zoffcc.applications.zanavi.Navit.java
void sendEmailWithAttachment(Context c, final String recipient, final String subject, final String message, final String full_file_name, final String full_file_name_suppl) { try {// w w w . ja va 2 s .c o m Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts("mailto", recipient, null)); emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject); ArrayList<Uri> uris = new ArrayList<>(); uris.add(Uri.parse("file://" + full_file_name)); try { if (new File(full_file_name_suppl).length() > 0) { uris.add(Uri.parse("file://" + full_file_name_suppl)); } } catch (Exception e) { e.printStackTrace(); } List<ResolveInfo> resolveInfos = getPackageManager().queryIntentActivities(emailIntent, 0); List<LabeledIntent> intents = new ArrayList<>(); if (resolveInfos.size() != 0) { for (ResolveInfo info : resolveInfos) { Intent intent = new Intent(Intent.ACTION_SEND_MULTIPLE); System.out.println( "email:" + "comp=" + info.activityInfo.packageName + " " + info.activityInfo.name); intent.setComponent(new ComponentName(info.activityInfo.packageName, info.activityInfo.name)); intent.putExtra(Intent.EXTRA_EMAIL, new String[] { recipient }); if (subject != null) intent.putExtra(Intent.EXTRA_SUBJECT, subject); if (message != null) intent.putExtra(Intent.EXTRA_TEXT, message); intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris); intents.add(new LabeledIntent(intent, info.activityInfo.packageName, info.loadLabel(getPackageManager()), info.icon)); } Intent chooser = Intent.createChooser(intents.remove(intents.size() - 1), Navit.get_text("Send email with attachments")); chooser.putExtra(Intent.EXTRA_INITIAL_INTENTS, intents.toArray(new LabeledIntent[intents.size()])); startActivity(chooser); } else { System.out.println("email:" + "No Email App found"); new AlertDialog.Builder(c).setMessage(Navit.get_text("No Email App found")) .setPositiveButton(Navit.get_text("Ok"), null).show(); } // final Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts("mailto", recipient, null)); // if (recipient != null) emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[] { recipient }); // if (subject != null) emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject); // if (message != null) emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, message); // if (full_file_name != null) // { // emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://" + full_file_name)); // //ArrayList<Uri> uris = new ArrayList<>(); // //uris.add(Uri.parse("file://" + full_file_name)); // //emailIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris); //ArrayList<Uri> of attachment Uri's // } // // List<ResolveInfo> resolveInfos = getPackageManager().queryIntentActivities(emailIntent, 0); // if (resolveInfos.size() != 0) // { // String packageName = resolveInfos.get(0).activityInfo.packageName; // String name = resolveInfos.get(0).activityInfo.name; // // emailIntent.setAction(Intent.ACTION_SEND); // emailIntent.setComponent(new ComponentName(packageName, name)); // // System.out.println("email:" + "comp=" + packageName + " " + name); // // startActivity(emailIntent); // } // else // { // System.out.println("email:" + "No Email App found"); // new AlertDialog.Builder(c).setMessage(Navit.get_text("No Email App found")).setPositiveButton(Navit.get_text("Ok"), null).show(); // } } catch (ActivityNotFoundException e) { // cannot send email for some reason } }
From source file:com.android.vending.billing.InAppBillingService.LACK.listAppsFragment.java
public void connectToLicensing() { mServiceConnL = new ServiceConnection() { public void onServiceConnected(ComponentName paramAnonymousComponentName, IBinder paramAnonymousIBinder) { System.out.println("Licensing service try to connect."); if (listAppsFragment.this.mServiceL == null) { listAppsFragment.this.mServiceL = ILicensingService.Stub.asInterface(paramAnonymousIBinder); }// w ww. ja va 2s. c o m try { listAppsFragment.this.mServiceL.checkLicense(new Random().nextLong(), listAppsFragment.getInstance().getPackageName(), new ILicenseResultListener.Stub() { public void verifyLicense(int paramAnonymous2Int, String paramAnonymous2String1, String paramAnonymous2String2) throws RemoteException { System.out.println(paramAnonymous2Int); listAppsFragment.this.responseCode = paramAnonymous2Int; listAppsFragment.removeDialogLP(11); switch (paramAnonymous2Int) { case 1: case 2: default: listAppsFragment.handler.post(new Runnable() { public void run() { listAppsFragment.this.showMessage(Utils.getText(2131165549), Utils.getText(2131165547)); } }); } for (;;) { System.out.println("" + paramAnonymous2String1); System.out.println(paramAnonymous2String2); listAppsFragment.this.cleanupService(); return; listAppsFragment.handler.post(new Runnable() { public void run() { listAppsFragment.this.showMessage(Utils.getText(2131165549), Utils.getText(2131165548)); } }); continue; if ((paramAnonymous2String1 != null) && (paramAnonymous2String2 != null) && (Utils.checkCoreJarPatch11()) && (Utils.checkCoreJarPatch12())) { listAppsFragment.handler.post(new Runnable() { public void run() { listAppsFragment.this.showMessage(Utils.getText(2131165549), Utils.getText(2131165550)); } }); } else { listAppsFragment.handler.post(new Runnable() { public void run() { listAppsFragment.this.showMessage(Utils.getText(2131165549), Utils.getText(2131165547)); } }); } } } }); return; } catch (RemoteException paramAnonymousComponentName) { paramAnonymousComponentName.printStackTrace(); } } public void onServiceDisconnected(ComponentName paramAnonymousComponentName) { System.out.println("Licensing service disconnected."); listAppsFragment.this.mServiceL = null; listAppsFragment.removeDialogLP(11); } }; if (this.mServiceL == null) { boolean bool1; label311: do { try { Intent localIntent = new Intent(new String( Base64.decode("Y29tLmFuZHJvaWQudmVuZGluZy5saWNlbnNpbmcuSUxpY2Vuc2luZ1NlcnZpY2U="))); localIntent.setPackage("com.android.vending"); localIntent.putExtra("xexe", "lp"); boolean bool4 = false; bool1 = false; boolean bool3 = false; boolean bool2 = bool4; try { if (getPkgMng().queryIntentServices(localIntent, 0).isEmpty()) { continue; } bool2 = bool4; Iterator localIterator = getPkgMng().queryIntentServices(localIntent, 0).iterator(); bool1 = bool3; Object localObject; cleanupService(); } catch (Exception localException1) { try { for (;;) { if (!localIterator.hasNext()) { break label311; } localObject = (ResolveInfo) localIterator.next(); if ((((ResolveInfo) localObject).serviceInfo.packageName == null) || (!((ResolveInfo) localObject).serviceInfo.packageName .equals("com.android.vending"))) { break; } localObject = new ComponentName(((ResolveInfo) localObject).serviceInfo.packageName, ((ResolveInfo) localObject).serviceInfo.name); localIntent = new Intent(); bool2 = bool1; localIntent.setComponent((ComponentName) localObject); bool2 = bool1; localIntent.putExtra("xexe", "lp"); bool2 = bool1; handler.post(new Runnable() { public void run() { listAppsFragment.removeDialogLP(11); listAppsFragment.showDialogLP(11); listAppsFragment.progress2.setCancelable(true); listAppsFragment.progress2.setMessage(Utils.getText(2131165747)); } }); bool2 = bool1; bool1 = getInstance().bindService(localIntent, mServiceConnL, 1); } } catch (Exception localException2) { for (;;) { } } localException1 = localException1; bool1 = bool2; localException1.printStackTrace(); removeDialogLP(11); } removeDialogLP(11); return; } catch (SecurityException localSecurityException) { localSecurityException.printStackTrace(); cleanupService(); return; } catch (Base64DecoderException localBase64DecoderException) { localBase64DecoderException.printStackTrace(); cleanupService(); return; } } while (!bool1); } }