import android.os.Process;\r
import android.util.Log;\r
import android.widget.RemoteViews;\r
+import android.widget.Toast;\r
import eu.alefzero.owncloud.R;\r
import eu.alefzero.owncloud.authenticator.AccountAuthenticator;\r
import eu.alefzero.owncloud.db.ProviderMeta.ProviderTableMeta;\r
\r
mNotificationMngr.cancel(1);\r
Intent end = new Intent(DOWNLOAD_FINISH_MESSAGE);\r
+ end.putExtra(EXTRA_REMOTE_PATH, mRemotePath);\r
end.putExtra(EXTRA_FILE_PATH, file.getAbsolutePath());\r
end.putExtra(EXTRA_DOWNLOAD_RESULT, download_result);\r
sendBroadcast(end);\r
+\r
+ if (download_result) {\r
+ Toast.makeText(this, R.string.downloader_download_succeed , Toast.LENGTH_SHORT).show();\r
+ } else {\r
+ Toast.makeText(this, R.string.downloader_download_failed , Toast.LENGTH_SHORT).show();\r
+ }\r
+ \r
}\r
\r
@Override\r
\r
mLastPercent = percent;\r
}\r
-\r
+ \r
+ \r
}\r