Comments (6)
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.
By mistake I created new issue and your previous comments got erased sorry for that.
from android-imagemagick7.
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.
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.
You can contact me at [email protected] thanks
from android-imagemagick7.
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)
- Example command HOT 3
- How to use Cipher in Android? HOT 1
- Can you provide a complete android example?
- Help needed to generate .so file in GitHub Actions HOT 7
- Unable to save images HOT 7
- if anybody compil please share apk HOT 4
- ะคะพัะพ
- Permission denied for targetSdkVersion > 28 HOT 6
- New and reliable jmagick lib from scratch HOT 2
- Confused between Static and Shared. HOT 8
- Missing some class definitions HOT 6
- please add it to f-droid HOT 6
- Instructions for running directly from ADB shell HOT 4
- convert heif to png HOT 7
- OpenMP ../jniLibs/arm64-v8a/libomp.so: Error while running build-release command windows 10 HOT 6
- how to use this software? HOT 4
- Still no Implementation HOT 17
- How to use the shared libraries with flutter android?
- error: variable 'output' set but not used [-Werror,-Wunused-but-set-variable] HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-imagemagick7.