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]
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - create portfolio using
  1. MackOS
    Replies:
    0
    Views:
    163
  2. Youssef Hammad
    Replies:
    0
    Views:
    459
  3. Murphler
    Replies:
    0
    Views:
    399
  4. App Update
    Replies:
    1
    Views:
    303
  5. electricpunch
    Replies:
    1
    Views:
    318
  6. Natann99
    Replies:
    0
    Views:
    422
  7. ChristopheA
    Replies:
    4
    Views:
    634
  8. icronitar
    Replies:
    3
    Views:
    769
  9. SANJISH KUMAR
    Replies:
    0
    Views:
    619
  10. wingnit
    Replies:
    0
    Views:
    335

Share This Page

Loading...