[android-beginners] Re: what is the fast way to save/load string from/in an array?

2009-08-26 Thread Roman ( T-Mobile USA)
Instead of using Strings, try to use StringBuffer. Normally the usage of StringBuffer's is more efficient than normal Strings. By the way for analyzing your code to find out where you spend most of the time, use the traceview tool. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick

[android-beginners] Re: what is the fast way to save/load string from/in an array?

2009-08-26 Thread Liviu Ungureanu
Thank you very much!i will try tonight.. Thanks! On Aug 26, 2009 7:31 PM, Roman ( T-Mobile USA) roman.baumgaert...@t-mobile.com wrote: Instead of using Strings, try to use StringBuffer. Normally the usage of StringBuffer's is more efficient than normal Strings. By the way for analyzing your

[android-beginners] Re: what is the fast way to save/load string from/in an array?

2009-08-25 Thread Yusuf Saib (T-Mobile USA)
Can you post the code that takes a long time? How long does it take, for how many strings? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of

[android-beginners] Re: what is the fast way to save/load string from/in an array?

2009-08-25 Thread Liviu Ungureanu
Thank you for reply,, I want to save the history for my application in a file on sdcard. First i tried to save it as xml and parse it to load...but these actions take a lot of time..(almost 8 seconds for 20 strings on a HTC Hero device); this is the code: package com.app.lookitup2; import