Coder Social home page Coder Social logo

Comments (8)

janpio avatar janpio commented on May 28, 2024

Is this Javascript code?

from cordova-android.

subashdbc avatar subashdbc commented on May 28, 2024

No, it is JAVA code. To open file I have written in JavaScript like this,

var customPlugin = {
	createEvent : function(success, failure, action,arg1) {
		cordova.exec(success, // success callback function
		failure, // error callback function
		'Utils', // mapped to our native Java class
		action, // with this action name
		[arg1]);
	}
}

'Utils' refers to the Java Class that I have written.

from cordova-android.

janpio avatar janpio commented on May 28, 2024

So you created a custom plugin?

from cordova-android.

subashdbc avatar subashdbc commented on May 28, 2024

Yes. But that is working as expected with below android version 7, but android version 7 and above is not working.

I am not sure what went wrong here.

from cordova-android.

janpio avatar janpio commented on May 28, 2024

(For the record: Such information would be nice if you provided it in the initial post instead of having other people start guessing what is going on)

I would create a super simple native Android app that implements just this and see if it works there or how it behaves in the different Android versions - then you can maybe exclude cordova-android as the culprit and just ask on StackOverflow as a normal Android question.

from cordova-android.

subashdbc avatar subashdbc commented on May 28, 2024

Yes. It would be great if you give any inputs from your simple app. Thanks

from cordova-android.

janpio avatar janpio commented on May 28, 2024

Seems I wasn't clear: I won't do that. You can do that to debug, understand and fix your problem.

from cordova-android.

subashdbc avatar subashdbc commented on May 28, 2024

I got it fixed by using this,

https://github.com/Evolution-36/cordova-plugin-file-opener2

from cordova-android.

Related Issues (20)

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.