1. Are you ready for the Galaxy S20? Here is everything we know so far!

How to create portfolio using googleFinance API

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

  1. roopalinasa

    roopalinasa Lurker
    Thread Starter

    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]
     


Loading...
Similar Threads - create portfolio using
  1. harrytapp
    Replies:
    0
    Views:
    78
  2. mdsousa
    Replies:
    0
    Views:
    256
  3. mdsousa
    Replies:
    3
    Views:
    348
  4. Stokestack
    Replies:
    0
    Views:
    563
  5. TheOuz
    Replies:
    0
    Views:
    485
  6. raccoon95
    Replies:
    0
    Views:
    417
  7. monInspiration
    Replies:
    0
    Views:
    545
  8. James Mountain
    Replies:
    1
    Views:
    512
  9. Rob
    Replies:
    0
    Views:
    308
  10. Leea9
    Replies:
    4
    Views:
    473

Share This Page

Loading...