I need to create a graph for a page of an android app i am creating. I have looked everywhere on line, but i can't find a good tutorial for graphics and graphing? And i also don't want to use somebody else's code.
What methods am i supposed to use inorder to create a proper layout for lets say a line graph?
Can anybody recommend a tutorial for making a graph that is actually usefull?
Thank You in Advance
You can use the library chartdroid without having to worry about any copyright mess.
Otherwise go here for a tutorial that might help you write your own.
I implemented graphs a while back using the jQuery based JavaScript library flot to draw graphs on android in a webview. Graphs can be drawn using HTML and JavaScript files stored locally, or from the internet. You'll find some useful information to get you started here but i dont know of any tutorials, i think writing your own code from scratch to display graphs would be alot of work, i think you should consider using existing libraries!
Related
I'm struggling to understand how am I meant to interact with the "graph" and "calculator" stuff from the mediapipe library. More specifically, I'd like to write some Android code that uses landmarks from the holistic (pose + hands in my case) solution, with the final goal of writing a flutter application that compiles both for Android and iOS.
I've managed to build a few of the sample apps (thanks to docker), and I think I roughly understand what the graphs do. However, I don't understand how to interact with them from within the code. The Hello World! for Android tutorial doesn't really explain this. There are examples that include this type of behaviour (e.g. here), but I don't really know where is all the required information coming from (e.g. how would I find out the right functions and string constants to get holistic landmarks?)
For example, in Python I could get data via something like holistic.process(image).pose_landmarks, and then compute e.g. position or angle of hips. And as far as I can see there are some similar Android API-s available, although not for all solutions - including holistic. So what if I don't want to wait for the API-s development, and want to use the graphs instead? That part is not so clear.
As a bonus, please do feel free to drop any links which further explain/document the "graph" and "calculator" stuff I've mentioned earlier, as I've not used anything like this before and find it a little difficult to google.
Thanks.
I've realised there are docs available: https://google.github.io/mediapipe/framework_concepts/framework_concepts.html
Not sure how I've missed this...
I'm using MuPDF to open and edit PDFs in my android application, but I need of some way to get the current page in a bitmap format.
I've been reading the code, but I've not succeed. Someone can help me?
We have a similar feature in our Android customizable magazine app, using muPDF: we generate page thumbnails in bitmap format.
This app is open source and available on Github. You can see there how we implemented this feature.
The MuPDF API is a C level one. It's certainly capable of doing what you want - see apps/mudraw.c for code that does this, or even doc/render.c.
In the example android viewer, we needed to be able to do some things from java. So, we wrapped up a small fraction of the API with jni and exposed that (see android/jni/mupdf.c). This does just enough for what we need, and nothing more.
If you want to get access to parts of the API that aren't exposed, (and it sounds to me like you do) then you'll have to wrap up that for yourself.
In an ideal world, we'd have it set up so that there was a direct mapping from java classes down to the underlying MuPDF API, but we haven't had the time/need to do that yet. If anyone out there is interested in doing such a thing, do get in touch...
In my application the customer want me to embed a tutorial to help users learn it. This tutorial would be in the form of a screen with animations showing how to perform tasks.
Before implementing this ... I want know if there is any framework already out there, that I can easily use?
Thanks
You could embed a video file using a VideoView.
No. You'll have to do this manually. Designing a general framework or library to do this would be very hard since the use cases will wildly vary from app to app.
I am working on a 3D carousel view for Android and I am running into various issues. Any help is greatly appreciated.
I tried Renderscript using this carousel as an example but noticed some classes were now deprecated i.e. RenderScriptGL.SurfaceConfig. I searched but could not find any information on what to use instead.
Does anyone know and/or can point me to documentation?
RenderScript as a graphic's component has been deprecated all together moving forward. So I would highly advise against using it. However, it is still being used as a compute language.
This looks like a pretty good open sourced library. I would start here.
http://www.codeproject.com/Articles/146145/Android-3D-Carousel
I'm trying to create an active reading application prototype for my course project in Android platform. I'm new to Android SDK, and I cannot figure out how to use WebView's native functions, because I need to use them to implement selecting / highlighting / copying texts using gestures. I saw that WebView has a function setSelection but it's private and I cannot use it.
But I think may be there is something that I miss. May be I need to use something else. Please, give me some suggestion, links, books where I can find useful information.