android Programming Glossary: btndownloadbackground
How to download and save an image in Android http://stackoverflow.com/questions/15549421/how-to-download-and-save-an-image-in-android components private void initViews download Button findViewById R.id.btnDownload downloadBG Button findViewById R.id.btnDownloadBackground save Button findViewById R.id.btnSave we are using 'this' because our class implements the OnClickListener download.setOnClickListener.. etUrl .getText .toString .trim img.setImageBitmap bmp save.setEnabled true break case R.id.btnDownloadBackground check whether there is some Text entered if etUrl.getText .toString .trim .length 0 instantiate our downloader passing.. id @ id btnDownload android layout_width wrap_content android layout_height wrap_content android layout_alignLeft @ id btnDownloadBackground android layout_alignRight @ id btnDownloadBackground android layout_below @ id etUrl android layout_marginTop 15dp android..
|