[android-developers] Re: list add item error

2009-06-25 Thread Odessa Silverberg
On Jun 24, 2:18 pm, tstanly tsai.sta...@gmail.com wrote: hi all, it's so strange!! i have a list decleared: public static ListString list1=new ArrayListString(); and use list1.add(str); it is ok! but use list1.add(index,str); program will be error You probably tried to write at an

[android-developers] Re: list add item error

2009-06-24 Thread Mark Murphy
tstanly wrote: hi all, it's so strange!! i have a list decleared: public static ListString list1=new ArrayListString(); and use list1.add(str); it is ok! but use list1.add(index,str); program will be error What is the error? -- Mark Murphy (a Commons Guy)

[android-developers] Re: list add item error

2009-06-24 Thread Tsai stanly
with the location parameter, when into the app,will show the application demo(process demo.app) has stopped on unexpectedly, please try again without location, it works!! 2009/6/24 Mark Murphy mmur...@commonsware.com tstanly wrote: hi all, it's so strange!! i have a list decleared:

[android-developers] Re: list add item error

2009-06-24 Thread Mark Murphy
Tsai stanly wrote: with the location parameter, when into the app,will show the application demo(process demo.app) has stopped on unexpectedly, please try again without location, it works!! And your Java stack trace tells you...what? You can examine your Java stack trace via adb logcat,

[android-developers] Re: list add item error

2009-06-24 Thread Tsai stanly
thanks for your help! from my DDMS on my Eclipse, it just show: [2009-06-24 20:06:02 - DeviceMonitor]Error reading jdwp list: EOF and how to use the adb logcat? thanks! 2009/6/24 Mark Murphy mmur...@commonsware.com Tsai stanly wrote: with the location parameter, when into the app,will

[android-developers] Re: list add item error

2009-06-24 Thread Mark Murphy
Tsai stanly wrote: thanks for your help! from my DDMS on my Eclipse, it just show: [2009-06-24 20:06:02 - DeviceMonitor]Error reading jdwp list: EOF It should show many more lines than that. There may be some issue connecting DDMS in Eclipse with your device or emulator. and how to use