Lines Matching refs:activity
51 * @param activity Activity requesting the download.
58 public static void onDownloadStart(Activity activity, String url,
71 ResolveInfo info = activity.getPackageManager().resolveActivity(intent,
74 ComponentName myName = activity.getComponentName();
84 activity.startActivity(intent);
88 Log.d(LOGTAG, "activity not found for " + mimetype
98 onDownloadStartNoStream(activity, url, userAgent, contentDisposition,
135 * @param activity Activity requesting the download.
142 /*package */ static void onDownloadStartNoStream(Activity activity,
157 msg = activity.getString(R.string.download_sdcard_busy_dlg_msg);
160 msg = activity.getString(R.string.download_no_sdcard_dlg_msg, filename);
164 new AlertDialog.Builder(activity)
192 Toast.makeText(activity, R.string.cannot_download, Toast.LENGTH_SHORT).show();
215 new FetchUrlMimeType(activity, request, addressString, cookies,
219 = (DownloadManager) activity.getSystemService(Context.DOWNLOAD_SERVICE);
226 Toast.makeText(activity, R.string.download_pending, Toast.LENGTH_SHORT)