Use the debugger, Luke :) Check the value of tmp3 just before you call Integer.parseInt.
I am assuming you actually added a value to tmp2, so when you call get(1) there is something there.
-- Kostya 01.01.2011 15:38, Mystique пишет:
Hi, please help me out. == This is ok == String tmp1 = "123" int seed = Integer.parseInt(tmp1); == This is not ok == ArrayList<String> tmp2 = new ArrayList<String>(); String tmp3 = tmp2.get(1); //Added some value to the ArrayList, Toast value of tmp3 and sees the correct value int seed = Integer.parseInt(tmp3); // I get runtime error here, what is wrong? Happy new year.
-- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

