1. Download our Official Android App: Forums for Android!

Apps How to create portfolio using googleFinance API

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

  1. roopalinasa

    roopalinasa Lurker
    Thread Starter
    Rank:
    None
    Points:
    25
    Posts:
    6
    Joined:
    Mar 24, 2010

    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...