Question: WORK IN ANDROID STUDIO There are some datasets available at http://utdallas.edu/~John.Cole/2017Spring . They contain information about various stocks for a period of time. The first
WORK IN ANDROID STUDIO
There are some datasets available at http://utdallas.edu/~John.Cole/2017Spring . They contain information about various stocks for a period of time. The first line of each file gives the column names, which are: Date, Open, High, Low, Close, Volume, and Adjusted Close. At least two data sets are available: INTC.txt and MSFT.txt, for Intel and Microsoft, respectively. Data elements are separated by commas, in standard CSV format. For example, to fetch Intel info (the user types in INTC), you would navigate to http://utdallas.edu/~John.Cole/2017Spring/INTC.txt.
Your mission is to write a program that requests a symbol from the user. Do not use buttons or a list for this, since if this were a real app, there could be thousands of symbols, which the user would know. The user then presses the Display button, and your program displays the data in a scrollable list, with columns. Obviously youll have to create an asynchronous task to handle the background processing, and youll have to create a layout for the list items. Display some sort of working indicator while youre fetching the data. Since you wont know how many lines of data there are, you cannot easily display progress.
If the user enters a symbol for which there is no data, that is, your Web request returns 404 Not Found, display a message and request a new symbol. If the system takes more than 45 seconds to respond to the request, display a message and request a new symbol.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
