GithubHelp home page GithubHelp logo

I saw your "build.gradle" file and added lines. I can clearly see libc++_shared.so under "data/app/package/lib/arm64/" directory. Is that the right path where the lib should be present? about android-imagemagick7 HOT 6 CLOSED

molotovcherry avatar molotovcherry commented on May 27, 2024
I saw your "build.gradle" file and added lines. I can clearly see libc++_shared.so under "data/app/package/lib/arm64/" directory. Is that the right path where the lib should be present?

from android-imagemagick7.

Comments (6)

rupeshkumar22 avatar rupeshkumar22 commented on May 27, 2024

please have a look at the main activity. I made it small and easy to understand
https://drive.google.com/open?id=15_zX4OHGqVicpBavuzsVtRBrAwP56vMj
Waiting for your reply.
Thanks

from android-imagemagick7.

rupeshkumar22 avatar rupeshkumar22 commented on May 27, 2024

By mistake I created new issue and your previous comments got erased sorry for that.

from android-imagemagick7.

MolotovCherry avatar MolotovCherry commented on May 27, 2024

Looks like you forgot to use Context. See the Android docs. If you are using the AsyncTask, you will need to pass your context around so you can access it.

See how in L83 I passed this.
ProcessImageTask processTask = new ProcessImageTask(this);

L222 in the constructor I receive the Context and in L223 I put it into a WeakReference. L264 I grab the Context from the WeakReference and then I use it L277 to getFilesDir()


Since your function executecommand() is in the same class, why not just prefix getFilesDir() with this? this.getFilesDir()

Also, don't chmod 777 from the command line. Just look at my code. Everything you need to setup the binary is there. L26 setExecutableBit()

"I saw your "build.gradle" file and added lines. I can clearly see libc++_shared.so under "data/app/package/lib/arm64/" directory. Is that the right path where the lib should be present?"
libs*, but yes, it looks like you have it in the libs folder


Don't forget, if you don't use AsyncTask, then your UI will freeze up. If you have no UI, then maybe it doesn't matter, but just remember that.

from android-imagemagick7.

rupeshkumar22 avatar rupeshkumar22 commented on May 27, 2024

Hi @cherryleafroad ,
It's helpful that you advised me to use Async Task as my UI was freezing up previously while executing some other binaries. If I talk about my project, I am trying to integrate your main activity code into my main activity java file and I am getting a lot of exceptions that I can share. But It would be more helpful If you can provide me a proper android studio example project with all the necessary gradle files. I can understand you may be having your schedule but it would be easier for you, please try to share if possible. If you can just provide a project which can pass command and show output on the textview.
Thanks again!
Rupesh

from android-imagemagick7.

rupeshkumar22 avatar rupeshkumar22 commented on May 27, 2024

You can contact me at [email protected] thanks

from android-imagemagick7.

MolotovCherry avatar MolotovCherry commented on May 27, 2024

But It would be more helpful If you can provide me a proper android studio example project with all the necessary gradle files.

The necessary gradle files are already provided in the example app.

If I talk about my project, I am trying to integrate your main activity code into my main activity java file and I am getting a lot of exceptions that I can share.

My example code includes both examples of jmagick usage and binary usage. Make sure you delete/rewrite any code which is not according to your needs. My code is not meant to work out of the box, but rather is meant to serve as an example with enough detail to give you a head start to adapt it to your needs without needing to do so much extensive research through the Android docs. Java and Android knowledge is still required to understand it and adapt it to your needs, including solving general Java API exceptions. If you need additional help with Java programming exceptions, running binaries using Java / Android, or just Java in general please check the appropriate Android Docs, Java Docs, or Google / StackOverflow. I also recommend you to join a AndroidDev discord as these people can help you with general Android programming.

With the help of these other resources, including cross-referencing the Android example app code, the Quick Setup Instructions on the main page, and the FAQ, should allow you to recreate a working copy using the binary and/or libraries.


If you have a question or concern regarding this library which is not related to general Java / Android programming, please let me know. Thank you.

from android-imagemagick7.

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.