Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Is there a good way of dynamically displaying graphs in an Android application. Is there a tool for it?
There are many opinions to do graphing. If you want static graphing you can use these API's/code samples.
AChartEngine
Draw a Graph
Charts4j
AndroidPlot - one of the best looking ones, does dynamic plots too and is now open sourced.
TeeChart
So many others to choose from but most are static and non of these can handle real time data plots, i.e. ECG wave forms. One example you might want to look at is the Tricorder android example. Problem it is really complex to setup and if you just want the graphs, there is so much code to rip out. It can be done but I even noticed there is a lag the longer you run the program.
So far the only way I have found a real good dynamic graphing, is to do it yourself and use the SurfaceView and then draw usin the path.lineTo() see below for previous SO answer for this solution.
SO example
Try GraphView
https://www.youtube.com/watch?v=lokgFp9h85o
I used these video series on GraphView to plot real time graph from data coming from adruino .
I use the library MPAndroidChart (https://github.com/PhilJay/MPAndroidChart), is the best library for this kind of things in Android.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
As you maybe know, the Google Map API has changed few months ago and the way to implement it in a JPanel changed as well. I was looking for a solution all week and never found it.
I found some tests from google on github but it never show how to put it in an interface.
So does someone know how to put a Google Map (from the new Google Map API) in a JPanel ?
You can still embed a web browser such as the on in JavaFX and use the normal google maps example html+javascript and make javascript calls through that browser component. Though beware that the browser component in javafx has had severe issues with google maps in the past. Some versions have worked great, some not so much...
A high performance prepared java swing component that is a wrapper around chromium browser for google maps with pure java api:s is available for commercial and open source:
https://www.teamdev.com/jxmaps
Trying their demo it shows great performance (I've no affiliation).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am looking to develop a little Java piece that can capture an image using a digital camera and I can't find a suitable API - I know this is duplicating similar questions but they are old, and after finding lots of old old threads everywhere complaining about the lack of an API I am asking again to see if anybody knows of where this may have been developed - and offered free of course (mine is just a personal project - no distribution).
I want to capture still images from a digital camera, or a DSLR - I have applied for Canons SDK but I do not think it will be approved as it will not be benefiting them at all.
The image must not be a screenshot of a feed retrieved from the camera - I want to capture a native image using the shutter of the camera - and retrieve it in the app for processing - this way I do not get an awfully grainy image, I get one at full quality.
I have been looking into a few API's but if they are not extortionately expensive (JTWAIN), they simply do not do what I want (JFM).
So, are there any out there? Am I just looking in the wrong places?
apparently Xuggler seems to do the job, you can use it with or without maven or even build it yourself, even ant is possible. There are quite a few tutorials on the subject, even on SO
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I'd like to develop a web based 2d game, similar to flashgames.
It should supports Sprites etc., so that it's really easy to do the graphic stuff. I don't have flash, so are there any reliable (JavaScript) engines maybe, with active Users?
...Or could I use Java instead, build an offline game and afterwards, make it playable in a webbrowser with a certain plugin? That would be really nice.
A good 2D library in JavaScript is http://gamejs.org (I'm the main dev) - it supports sprites, collisions, etc.
If you are already familiar with Flash ('similar to flashgames'?) then you might want to try http://easeljs.com
Finally, here's a pretty complete but probably overwhelmingly long list of JavaScript game engines: https://github.com/bebraw/jswiki/wiki/Game-Engines
If you want to use Java would a Java Applet be the technology you are searching for.
I dont think that JavaScript would be a good choice as soon as it gets a bit more graphic intense
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I am looking for a library that can accept a chunk of audio data and return the average amplitude over time within a given frequency band.
I've already asked this question over at comp.dsp, but it's clear to me that acquiring the know-how to build this on my own using a basic FFT library is going to require more time and energy than I have at present. Here is my original question with more detai: http://groups.google.com/group/comp.dsp/browse_thread/thread/e04f78d439e9e2bd
I've found lots of nice libraries for playing with sound (I used JSyn in the past), but none of these seem to be set up to return quick and dirty spectral information about a sound sample.
Any pointers would be much appreciated.
This Archived Blog shows a java implementation of the FFT algorithm which is very concise and reads audio files and calculates the frequency spectrum.
You could also check Jtranforms open source FFT library
Unfortunately the blog is gone, here are some other resources on FFT.
http://web.archive.org/web/20160301081621/http://www.wikijava.org/wiki/The_Fast_Fourier_Transform_in_Java_(part_1)
http://www.royvanrijn.com/blog/2010/06/creating-shazam-in-java/
Not java but added for the explanation: https://jakevdp.github.io/blog/2013/08/28/understanding-the-fft/
have a look at the jAudio package in jMir, there is probably much more than what you need ...
Have you taken a look at this:
http://download.oracle.com/javase/tutorial/sound/TOC.html
I have also used the Java Media Framework for video processing but I believe that they provide a good API for sound processing too. You should also look into that.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm looking into making a 2D game in Java and I've run into a problem with animation: how do I do tweening in Java? Are there any libraries or maybe something I can find bindings for?
Also, please understand that I do not want to simply move an image, I want to do morphing in a way that when making drawings for animation I can use a few keyframes to fill in the in-between frames to generate the animation.
I built an Universal Tween Engine for Java:
http://code.google.com/p/java-universal-tween-engine/
Tweens can be applied to every object (no just graphics objects, everything!), every object attribute can be tweened, and it supports every Robert Penner easing equation too.
Also, the engine is optimized to not instantiate anything at runtime (except during initialization), so it can be used for Android games without fearing the garbage collector.
The timing framework is what I think you are looking for.
Also I can well recommend the book Filthy Rich Clients if you are it to writing rich apps.
An alternative is also the jgoodies:Animation library