Thursday, July 12, 2012

Interactive Charts in Andriod with Crosshairs and Data ToolTip

Interactive Charts in Andriod with Crosshairs and Data ToolTip

Making interactive chart on andriod is a tricky buisness , i had to face a lots of issues in one of my recent project to show interactive charts with crosshairs and data on crosshairs.
When i started with the project i used achartengine library which had lots of inbuilt charts , but it lacked crosshairs and user interactivity.
Then i started looking a afreechart, its a andriod version of jfreechart which had crosshairs in it, but it do not have developer guide as that is paid but it supported what i needed.

Here are the screenshots of data interactive charts in my application.

I would love to help if some body get struck on the same like i did as its very annoying.
Cheers

Varun Rathore

Friday, July 6, 2012

Ksoap2 Getting Values of Property or Attribute in Andriod

Hi All,

You can get the values and names of Attibutes and Properties in Ksoap2 SoapObject

// GETTING ATTIRIBUTE NAME AND VALUES IN KSOAP2
        for (int i = 0; i < yourSoapObject.getAttributeCount(); i++)
        {
            AttributeInfo attInfo = new AttributeInfo();
            yourSoapObject.getAttributeInfo(i, attInfo);
            String attributeName = attInfo.name;
            String attributeValue = yourSoapObject.getAttribute(i).toString();
          }

 // GETTING PROPERTY NAME AND VALUES IN KSOAP2
            for (int i = 0; i < yourSoapObject.getPropertyCount(); i++)
            {

                PropertyInfo attInfo = new PropertyInfo();
                yourSoapObject.getPropertyInfo(i, attInfo);
                String propertyName = attInfo.name;
                String propertyValue = yourSoapObject.getProperty(i).toString();
              }

Cheers
Varun Rathore           


 


About Me