Posts

Showing posts with the label aide ide download tutorials

Download files from url in aide ide project

Image
Tutorial on how to download files from url in your aide ide project. first add permission in your AndroidManifest.xml <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> Next goto your  java class and add this permission, this permission is very important on higher version of android. if (checkSelfPermission(android.Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) { Log.e("Permission error","You have permission"); }else{ ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, REQUEST_CODE); } Last step is download code: DownloadManager.Request request = new DownloadManager.Request(Uri.parse("https://yourfiles.com/example.pdf"));    requ...

Malitanyo Developer blog & tutorial 2020
Refund Policy    Facebook Page    Google Play

Blogger.com