Android Achartengine Problem Summary

Source: Internet
Author: User

Issue 1:Android.database.cursorindexoutofboundsexception:index-1 requested, with a size of 1

Workaround: This problem occurs when using the cursor, querying the data table in Android, the returned result set needs to be received with the cursor , but when traversing the cursor , it is important to note that the cursor the initial position starts at the place where the subscript is 1, that is, when the query is returned to the cursor query results, the value cannot be extracted from the cursor immediately. Therefore, when you do a traversal operation on the cursor , you need to call Cursor.movetofirst () First, for example:

if (Cursor.movetofirst ()) {Traversal operation}

Issue 2:error "Dataset and renderer should is not null and should has the same number of series" in Android

Workaround: The cause of this problem is that the renderer and dataset do not match, check the code, and see if the parameters passed in one by one correspond.

Issue 3:java.lang.NullPointerException

Resolution: Remember to initialize the array, for example: double[] arg = new DOUBLE[24];


This article from the "Program Ape Advanced Siege Lion" blog, declined reprint!

Android Achartengine Problem Summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.