Ask wrote:
> I had used the same..
> but it gives the Exception in first iteration itself..

1. You have not allocated any space for your test char[].

2. You are going to go past the end of your buffer char[], since your
loop is testing for '\n', which does not exist in your
statically-declared array.

I recommend all newcomers to Java learn Java outside of Android first,
whether using free resources
(http://en.wikibooks.org/wiki/Java_Programming) or print books (_Head
First Java_) or whatever. Android is unusual enough that it may be
difficult to learn Java and Android at the same time.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Training in Germany, 18-22 January 2010: http://bignerdranch.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
-~----------~----~----~----~------~----~------~--~---

Reply via email to