Giter Site home page Giter Site logo

Comments (8)

masterwok avatar masterwok commented on May 24, 2024 1

Rates can be found on the TorrentSession:

The size of the file(s) being downloaded is represented on the TorrentSessionStatus.bytesWanted property.

Is that what you're looking for?

from simple-torrent-android.

masterwok avatar masterwok commented on May 24, 2024 1

Awesome, no problem!

When the application is stopped/destroyed the torrent session can be recreated and resumed. You will want to have the TorrentSession managed within a foreground service so the download doesn't stop when the device goes to sleep.

from simple-torrent-android.

masterwok avatar masterwok commented on May 24, 2024 1

Anytime, glad I could help!

from simple-torrent-android.

DeevD avatar DeevD commented on May 24, 2024

Thank bro i found it. Torrent Status and Torrent Info. When application is destroyed torrentSession can be resume?.

from simple-torrent-android.

DeevD avatar DeevD commented on May 24, 2024

Thank you so much bro.

from simple-torrent-android.

DeevD avatar DeevD commented on May 24, 2024

Can you provide example of local database with torrentSession bro. I mean when user is paused shut down application or device session can't be handle bro .

from simple-torrent-android.

masterwok avatar masterwok commented on May 24, 2024

Sorry, but that sample would be nearly an entire torrent client application. There's essentially going to be four main components you need to implement:

  1. Managing TorrentSession instances within in a foreground service
  2. Listening for TorrentSession events using a TorrentSessionListener
  3. Translating those events into models that can be persisted to a database (I used Room)
  4. Controlling sessions via user events

from simple-torrent-android.

DeevD avatar DeevD commented on May 24, 2024

:Okie bro no problem . Thank for your suggestions.

from simple-torrent-android.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.