I have a GraphView that is not updated when new data is added, it changes the Y value to accommodate for the new data, but it doesn\'t draw them, here is the co
Wow actually works now, took me quite a while to notice I need a Handler... Thanks, heres my code for other noobs like me:
refreshButton.setOnClickListener(new View.OnClickListener()
{
public void onClick(View v)
{
graphHandler.post(
graphRunnable = new Runnable()
{
public void run()
{
sensorSeries.appendData(new GraphViewData(xgraph, dataAcx), false, 20);
graphView.redrawAll();
myLabel.setText(""+dataAcx+" "+xgraph);
xgraph++;
dataAcx++;
}
}
);
}
});