[android-beginners] Re: getting item name from listview.

2008-06-26 Thread Romain Guy
getChildAt(position) won't work if you scroll the list. You are just trying to retrieve the data in an unusual way. Like we said before, you should talk to the Adapter, not to ListView to get the data. You could also call obtainItem(int position) on the ListView, which is similar to calling adapte

[android-beginners] Re: getting item name from listview.

2008-06-26 Thread Sylvester Steele
phew! finally, (TextView)fruitsList.getChildAt(position)).getText() worked. But why are all these typecasting acrobatics necessary? I mean why isn't there a simple method that does this? Or is what I am asking too unusual? Thanks Mark and thanks Romain. Sylvester --~--~-~--~~-

[android-beginners] Newbie Question] Run Simple Project

2008-06-26 Thread NoOne
Hello, I've just started on android and i was trying to run some samples, but all the time i try to run some code i get this error message: " Application not responding The Application com.google.android is not responding" I installed eclipse and android and everything seemed to be right till

[android-beginners] Linkify-ing links with a text mask

2008-06-26 Thread kingkung
Can I Linkify a link with a display text that doesn't begin with http://? For instance, I want the link to go to "http://www.google.com";, but I want the text to say "Click here for Google" --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-beginners] [Newbie Question] Run Simple Project

2008-06-26 Thread NoOne
Hello, I've just started on android and i was trying to run some samples, but all the time i try to run some code i get this error message: " Application not responding The Application com.google.android is not responding" I installed eclipse and android and everything seemed to be right till

[android-beginners] Re: [Newbie Question] Run Simple Project

2008-06-26 Thread Ricardo Canastro
Hello, I've just started on android and i was trying to run some samples, but all the time i try to run some code i get this error message: " Application not responding The Application com.google.android is not responding" I installed eclipse and android and everything seemed to be right till t

[android-beginners] To change "Home Application", possible??

2008-06-26 Thread Hsun-Cheng Hu
Hi all, Is it possible to change the "Home Application", which is the application displaying while user click "home" button?? I found there are some videos in Youtube contains different home UI, like the following: http://tw.youtube.com/watch?v=muIqc7TP1bs http://tw.youtube.com/watch?v=-rKa8j4

[android-beginners] Re: getting item name from listview.

2008-06-26 Thread Fräntz Miccoli
Maybe you have no toString method right implemented for the object you are trying to diplay On Thu, Jun 26, 2008 at 5:51 PM, Sylvester Steele <[EMAIL PROTECTED]> wrote: > > > > On Jun 26, 2:31 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote: > > Somewhere, you must have created an Adapter and set it o

[android-beginners] Re: getting item name from listview.

2008-06-26 Thread Romain Guy
Then you need to cast the resulting item to a Cursor and use Cursor's method to read the value of the column you are interested in. Another approach, that was mentioned already, is simply to cast the view that was clicked into whatever view you use to represent the data and then ask the view for t

[android-beginners] Re: getting item name from listview.

2008-06-26 Thread Sylvester Steele
On Jun 26, 2:31 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote: > Somewhere, you must have created an Adapter and set it on the > ListView. In your onItemClick() method, there's a parameter called > position. It gives you the index of the clicked item in the adapter. > You just need to call myAdapte

[android-beginners] Generating a RelativeLayout in Java

2008-06-26 Thread Fräntz Miccoli
Can someone please give me an example of an implentation of a custom view extending a relative layout and not using XML. For exemple the builder of mine with absolutelayout : public VideoListRowView(Context context,int position) { super(context); //WARNING YOU MUST DEFINE EAC

[android-beginners] Re: testing my app

2008-06-26 Thread Frederico Affini
It's not a problem. The Android SDK doesn't has an application to handle SMS messages, so you will have to either create one or get one in the web so you can test SMS messages. Regards, Fred On Thu, Jun 26, 2008 at 5:54 AM, Sylvester Steele <[EMAIL PROTECTED]> wrote: > > I see a similar option

[android-beginners] accessing the phone number of an incoming call..

2008-06-26 Thread Sylvester Steele
Is it possible to get the phone number of an incoming call that is currently ringing? Thanks, Sylvester --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to a

[android-beginners] Re: getting item name from listview.

2008-06-26 Thread Romain Guy
Somewhere, you must have created an Adapter and set it on the ListView. In your onItemClick() method, there's a parameter called position. It gives you the index of the clicked item in the adapter. You just need to call myAdapter.getItem(position) and you will get the result you want. On Thu, Jun

[android-beginners] Re: getting item name from listview.

2008-06-26 Thread Sylvester Steele
I am still stuck here, someone please help! Sylvester On Jun 23, 11:09 am, Sylvester Steele <[EMAIL PROTECTED]> wrote: >  Actually, they both return a View. You need to cast the View to the > type > > > you created as your entries (e.g., TextView), then get the data out of > > there (e.g., getTe

[android-beginners] Re: testing my app

2008-06-26 Thread Sylvester Steele
I see a similar option to test smss also, but it doesn't seem to work. I typed: sms send +1234 qwer . The console says OK but no sms appears in the emulator. How do I fix this? Sylvester --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-beginners] Re: Re-use already existing code on the android platform

2008-06-26 Thread Fräntz Miccoli
Maybe you should try google Have juste a little look on the android website and you'll have all your answers. On Wed, Jun 25, 2008 at 9:08 PM, 3,14 <[EMAIL PROTECTED]> wrote: > > I have some questions regarding re-using existing code on the android > platform. > > 1) Are there any way to re-