Coder Social home page Coder Social logo

peteygao / mediascannerplugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devgeeks/canvas2imageplugin

4.0 3.0 8.0 38 KB

PhoneGap / Cordova plugin for Android OS to add media files to the device's Media Index

Java 65.27% JavaScript 34.73%

mediascannerplugin's Issues

Permission Denial: not allowed to send broadcast android.intent.action.MEDIA_MOUNTED

hi,
i was looking for a plugin like this and it does exactly what i was looking for but when i use it i get this
"Permission Denial: not allowed to send broadcast android.intent.action.MEDIA_MOUNTED pid=7474 & uid 97363"
I am getting this on the error callback

i am using it with the phonegop file plugin and was just looking to refresh the the media after creating an image.

i have a refresh button that does the refreshing onClick rather than a success callback of file write

    function onDeviceReady() {
     document.getElementById("scan").addEventListener("click",function(){
       alert("Refreshing");
       window.MediaScannerPlugin.scanFile(
                   function(msg){
                              alert("msg "+msg);
                   },
                     function(err){
                          alert("err "+err);
                      }
            );//scanFlie
           }); //onClick

          }//device ready

"unsupported plugin" in phonegap build?

it works greate on my cli and does its job.
but i can't seem to add it in phonegap build.

i used
<gap:plugin name="org.sfl.MediaScannerPlugin" />
to add it as that was the folder name in the plugins folder in CLI.
i am using phonegap version 3.6.3
I think the plug-in not registered i was not able to find it on http://plugins.cordova.io
or some problem with the plugin ID is seems
kindly tell me how can i use this in phonegap build

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.