How to download a file from a server and save it in specific folder in SD card in Android?

Your download URL is not a link to any file. It’s a directory. Make sure its a file and exists. Also check your logcat window for error logs. One more suggestion, its always better to do a printStackTrace() in catch blocks instead of Logs. Its gives a more detailed view of the error. Change this … Read more

Android: Backspace in WebView/BaseInputConnection

Ok, finally figured this out. In Android 4.2 (maybe in earlier versions as well) the backspace is not sent as a sendKeyEvent(…, KeyEvent.KEYCODE_DEL) by the standard soft keyboard. Instead, it is sent as deleteSurroundingText(1, 0). So the solution in my case is to make a custom InputConnection with the following: @Override public boolean deleteSurroundingText(int beforeLength, … Read more

android:windowSoftInputMode=”adjustResize” doesn’t make any difference?

I created a new project in order to try and get the basic features working for window resizing and the slowly moved it towards the target peice of my project. Doing this I tracked the problem down to this: In my theme hierarchy I had this property: <item name=”android:windowFullscreen”>true</item> which was burried at the level … Read more

tech