MCPcopy Index your code
hub / github.com/bemobi/medescope

github.com/bemobi/medescope @1.2.1-10

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.2.1-10 ↗ · + Follow
298 symbols 639 edges 38 files 37 documented · 12% updated 8y ago★ 628 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Medescope Android Download Library

Android Arsenal

This a is a ready-to-use library that encapsulate the Android Download Manager. Using an interface you can easily connect to your Activity or Fragment and used it. It runs on other process as an independent service.

Download

Download grab via Gradle:

    dependencies{
        compile 'br.com.bemobi:medescope:1.1.0
    }

Usage

To download a file.

        Medescope
        .getInstance(this)
            .enqueue("DOWNLOAD_ID",
                "http://somefileiwanttodownload.com/file",
                "file_name",
                "Name that you appear on notification",
                "{some:'samplejson'}"
                );

Set an application name to be shown on notification bar.

        Medescope.getInstance(this).setApplicationName("My Application Name"));

Using a callback interface to simply response on your code.

        Medescope.getInstance(this).subscribeStatus(this, "DOWNLOAD_ID", new DownloadStatusCallback() {
            @Override
            public void onDownloadNotEnqueued(String downloadId) {
                //TODO DO SOMETHING
            }

            @Override
            public void onDownloadPaused(String downloadId, int reason) {
                //TODO DO SOMETHING
            }

            @Override
            public void onDownloadInProgress(String downloadId, int progress) {
                //TODO DO SOMETHING
            }

            @Override
            public void onDownloadOnFinishedWithError(String downloadId, int reason, String data) {
                //TODO DO SOMETHING
            }

            @Override
            public void onDownloadOnFinishedWithSuccess(String downloadId, String filePath, String data) {
                //TODO DO SOMETHING
            }

            @Override
            public void onDownloadCancelled(String downloadId) {
                //TODO DO SOMETHING
            }
        });

For more, check our sample.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

Copyright 2015 Bemobi

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Extension points exported contracts — how you extend this code

DownloadService (Interface)
Created by bkosawa on 30/06/15. [2 implementers]
medescope/src/main/java/br/com/bemobi/medescope/service/DownloadService.java
DownloadCommand (Interface)
Created by bkosawa on 30/06/15. [2 implementers]
medescope/src/main/java/br/com/bemobi/medescope/service/DownloadCommand.java
CommunicationService (Interface)
Created by bkosawa on 02/07/15. [2 implementers]
medescope/src/main/java/br/com/bemobi/medescope/service/CommunicationService.java
DownloadDataRepository (Interface)
Created by bkosawa on 02/07/15. [2 implementers]
medescope/src/main/java/br/com/bemobi/medescope/repository/DownloadDataRepository.java
DownloadStatusCallback (Interface)
Created by bkosawa on 08/07/15. [1 implementers]
medescope/src/main/java/br/com/bemobi/medescope/callback/DownloadStatusCallback.java

Core symbols most depended-on inside this repo

debug
called by 36
medescope/src/main/java/br/com/bemobi/medescope/log/Logger.java
getString
called by 35
medescope/src/main/java/br/com/bemobi/medescope/log/Logger.java
equals
called by 27
medescope/src/main/java/br/com/bemobi/medescope/model/DownloadInfo.java
getSharedPreferences
called by 19
medescope/src/main/java/br/com/bemobi/medescope/repository/PreferencesUtils.java
getId
called by 12
medescope/src/main/java/br/com/bemobi/medescope/model/DownloadRequest.java
error
called by 10
medescope/src/main/java/br/com/bemobi/medescope/log/Logger.java
getInstance
called by 8
medescope/src/main/java/br/com/bemobi/medescope/log/Logger.java
hideProgress
called by 6
sample/src/main/java/br/com/bemobi/medescope/sample/MainActivity.java

Shape

Method 257
Class 35
Interface 6

Languages

Java100%

Modules by API surface

medescope/src/main/java/br/com/bemobi/medescope/service/impl/DownloadCommandService.java31 symbols
medescope/src/main/java/br/com/bemobi/medescope/model/DownloadInfo.java29 symbols
medescope/src/main/java/br/com/bemobi/medescope/model/DownloadRequest.java20 symbols
sample/src/main/java/br/com/bemobi/medescope/sample/MainActivity.java19 symbols
medescope/src/main/java/br/com/bemobi/medescope/Medescope.java18 symbols
medescope/src/main/java/br/com/bemobi/medescope/service/impl/DMDownloadService.java17 symbols
medescope/src/main/java/br/com/bemobi/medescope/log/Logger.java16 symbols
medescope/src/main/java/br/com/bemobi/medescope/repository/impl/MapDownloadDataRepository.java15 symbols
medescope/src/main/java/br/com/bemobi/medescope/service/DownloadService.java11 symbols
medescope/src/main/java/br/com/bemobi/medescope/repository/DownloadDataRepository.java11 symbols
medescope/src/main/java/br/com/bemobi/medescope/service/impl/BroadcastCommunicationService.java10 symbols
sample/src/main/java/br/com/bemobi/medescope/sample/model/NotificationData.java9 symbols

For agents

$ claude mcp add medescope \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact