Scala getResourceAsStream() fails silently while loading keystore
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , By prefacing the path with / you're asking for a keystore at the root of the package hierarchy. Try either of the following: getClass.getResourceAsStream("/app/subfolder1/keystore")
getClass.getResourceAsStream("keystore")
|
Android Oreo WebView renders layout too small after 2nd loading
Tag : android , By : Adrian Codrington
Date : March 29 2020, 07:55 AM
wish of those help After asking google team about this issue, the said that it's probably some viewport layout settings. Webview has some unfortunate defaults due to legacy issues., Adding webview.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.TEXT_AUTOSIZING); fixed the issue.
|
Android: Downloading in webview not working in oreo, it force closes in Oreo devices
Date : March 29 2020, 07:55 AM
I hope this helps . This is the code what I figured it out and working for me. NOTE: code is been executed in a fragment, for the main activity remove getActivity(). in manifest give the permission <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
webView.setDownloadListener(new DownloadListener() {
@Override
public void onDownloadStart(String url, String userAgent,
String contentDisposition, String mimetype,
long contentLength) {
DownloadManager.Request request = new DownloadManager.Request(
Uri.parse(url));
if(Build.VERSION.SDK_INT <= 26 ){
request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, URLUtil.guessFileName(url, contentDisposition, mimetype));
}
request.allowScanningByMediaScanner();
request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED); //Notify client once download is completed!
DownloadManager dm = (DownloadManager) getActivity().getSystemService(Context.DOWNLOAD_SERVICE);
dm.enqueue(request);
Toast.makeText(getActivity().getApplicationContext(), "Downloading File", //To notify the Client that the file is being downloaded
Toast.LENGTH_LONG).show();
}
});
|
Android Oreo onTaskRemoved event is not working (Android version Oreo)
Tag : java , By : Alex Sadzawka
Date : March 29 2020, 07:55 AM
This might help you I don't think there's any event callback that instructs that your app is destroyed, if so, then it will re-alive that app - which is totally negating the idea of killing staled apps. Instead, you can always save your app's state whenever user switches away from your app i.e. save whatever you want in onStop method of your Activity.
|
Tomcat java.io.IOException: Invalid keystore format when loading keystore via Classloader
Tag : java , By : ralph okochu
Date : March 29 2020, 07:55 AM
|