I'm still new to the whole coding thing, but I would like some help with ASyncTask and how to allow it to download my app from the internet straight to my phone through notification or just in the SD Card.
I already have a button inside the activity_main.xml layout which is:
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/UpdateButton"
android:text="@string/Update"
android:background="#6c0005"
android:textColor="#ffffff"
android:textSize="12dp" />
In my MainActivity.Java class I just have right now a button connecting to a string and intent to redirect it to a webview to download it:
case R.id.UpdateButton:
Intent browserIntent = new Intent(Intent.ACTION_VIEW,
Uri.parse(getString(R.string.UpdateAV)));
startActivity(browserIntent);
break;
but instead of that, I would like the file to download straight to the phone or a progress bar saying it is downloading to the External memory or SD Card.
Any help would be appreciated.