r a
r a

Reputation: 441

how to disable ANR dialog on android achartengine layout zoom with 15000 points

In my program, i put achartengine lineplot in a layout.

I got an ANR dialog when i want to zoom in from 15000 points display. I know it will work, i have to wait and choose wait if ANR pop out. But im getting sick of clicking wait button everytime i wanna zoom. Anyone know how to disable this ANR dialog?

Upvotes: 2

Views: 1292

Answers (1)

r a
r a

Reputation: 441

With achart engine, the zoom pinch is not so responsive when you have a lot of points displayed , i improve my plotting by reducing the number of number plotted (fixed to 500 points per display) by taking only the maximum of certain number of points. I add a zoom listener so everytime the user zoom in, i replot it with more points in the zoomed area.

Upvotes: 2

Related Questions