title: Android: initializing a list with a large number of items
body: <p>I need to use a list with more than 31 thousand strings for a dropdown menu. Now, if I declare this List/Array in java, I get the error that says the code is too large to compile. On the other hand, if I put these values in <code>string-array</code> in strings.xml, I get the message <code>Resource compilation failed</code> when I try to build the application.</p>
  <p>What else can be done to store this list?</p>
  <p>I don't want to keep the data in server and fetch it using API because it will increase my server cost.</p>