[Problem]String-Array

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

[Problem]String-Array

Postby gzjoekeny » Fri Nov 27, 2009 7:08 pm

my problem is:

I'd like to make an app that helps people check the currency rate from a web site. First I made a string array contains country names, after user have chosen the type of currency, like USD to CAD, I will have to "translate" the type name(USD, CAD) into codes like 01, 02, so the website can handle my request, how could I do this translation?
gzjoekeny
Once Poster
Once Poster
 
Posts: 1
Joined: Fri Nov 27, 2009 7:03 pm

Top

Postby padde » Fri Nov 27, 2009 7:28 pm

There are several ways to do that. Enumeration, Map or two String arrays.
It depends on how you present the choices to the user or if you want to store more info behind the strings the user
can see.

Give us some more info how you want it do work or some code you want to get adjusted.
padde
Master Developer
Master Developer
 
Posts: 443
Joined: Wed Apr 08, 2009 4:52 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests