1. Check out our companion app, Forums for Android! Download from Google Play

How to create portfolio using googleFinance API

Discussion in 'Application Development' started by roopalinasa, May 27, 2010.

  1. roopalinasa

    roopalinasa Member
    Thread Starter
    25

    Mar 24, 2010
    6
    0
    25
    Hi
    I am developing an android application, in which I have to create a portfolio at Google Finance(using libraries). For this I am using API from link below:

    http://code.google.com/apis/finance/doc ... Portfolios

    And

    I am getting the error as follows:

    Could not find method javax.xml.parsers.SAXParserFactory.getSchema, referenced from method com.google.gdata.util.common.xml.parsing.SecureGenericXMLFactory$SecureSAXParserFactory.getSchema


    Plz see the below code :

    private static PortfolioEntry makePortfolioEntry(String portfolioName, String currencyCode) {
    PortfolioEntry entry = new PortfolioEntry();
    entry.setTitle(new PlainTextConstruct(portfolioName));
    PortfolioData data = new PortfolioData();
    data.setCurrencyCode(currencyCode);
    entry.setPortfolioData(data);
    return entry;
    }

    private static void insertPortfolioEntry(FinanceService service, String feedUrl, PortfolioEntry entry)
    throws IOException, MalformedURLException, ServiceException {
    System.out.println("Inserting Entry at location: " + feedUrl);
    service.insert(new URL(feedUrl), entry);
    }


    Can smbody help me out ??? [​IMG]
     

    Advertisement

Share This Page

Loading...