• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How to create portfolio using googleFinance API

roopalinasa

Lurker
Mar 24, 2010
6
0
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 ???
icon_question.gif
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones