I want to build an simple android download app without using download manager. I try to implement it with asynctask. But I don't know how to implement "pausing and resuming when Based on the internet condition". That is when I click the start button, it start to download if connected. If internet is unconnected, it pause, and then the internet is connected, it resume automatically. I know it can be finished by using download manager easily, but how can I implement it without that? I'm a totally beginner, hope someone can give me an simple example of that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.