select a row in a listview

by Igor Nesralla Ribeiro » Sat, 26 Mar 2011 02:41:18 GMT


Sponsored Links
 Hi,
I'm newbie on android dev. Sorry for any problem....I have a listview wich i
display 3 columns (id,restaurant,city) from a sqlite...(using a
simplecursoradapter to bind)how I select a row and open it to edit or view.

Anyone has a reference to send me or example !?

Thanks 
Igor

-----Original Message-----
From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of ehpaul
Sent: sexta-feira, 25 de maro de 2011 15:15
To: Android Developers
Subject: [android-developers] Re: Any way to detect if the GPS data is
"real"

Thanks for your reply. Sorry that I didn't post my question clearly.
As I am aware, it possible for my 3rd party app to manipulate the GPS
location. My question is that if there is any way to detect the location is
"Real" from the satellite instead of manipulated?





--


-- 



Re: select a row in a listview

by Justin Anderson » Sat, 26 Mar 2011 02:46:36 GMT


 You're really going to have to provide more information here, otherwise we
are only going to be guessing at what you really want to accomplish...

Thanks,
Justin Anderson
MagouyaWare Developer
 http://sites.google.com/site/magouyaware 


On Fri, Mar 25, 2011 at 12:41 PM, Igor Nesralla Ribeiro






-- 


Sponsored Links


RE: select a row in a listview

by Igor Nesralla Ribeiro » Sat, 26 Mar 2011 03:20:39 GMT


 Justin,

 

Well, i have a listview wich I list a restaurants informations like name and
city how i select a row and open a acitivity with more detail about the
restaurant I had opened ?!

Can you help me ?

 

Best Regards
Igor

 

 

From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of Justin Anderson
Sent: sexta-feira, 25 de maro de 2011 15:45
To: android-developers@googlegroups.com
Subject: Re: [android-developers] select a row in a listview

 

You're really going to have to provide more information here, otherwise we
are only going to be guessing at what you really want to accomplish...

Thanks,
Justin Anderson
MagouyaWare Developer
 http://sites.google.com/site/magouyaware 



On Fri, Mar 25, 2011 at 12:41 PM, Igor Nesralla Ribeiro <nesra...@gmail.com>



Hi,
I'm newbie on android dev. Sorry for any problem....I have a listview wich i
display 3 columns (id,restaurant,city) from a sqlite...(using a
simplecursoradapter to bind)how I select a row and open it to edit or view.

Anyone has a reference to send me or example !?

Thanks
Igor

-----Original Message-----
From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of ehpaul
Sent: sexta-feira, 25 de maro de 2011 15:15
To: Android Developers
Subject: [android-developers] Re: Any way to detect if the GPS data is
"real"

Thanks for your reply. Sorry that I didn't post my question clearly.
As I am aware, it possible for my 3rd party app to manipulate the GPS
location. My question is that if there is any way to detect the location is
"Real" from the satellite instead of manipulated?





--


--


 

-- 


-- 



Re: select a row in a listview

by Justin Anderson » Sat, 26 Mar 2011 03:31:09 GMT


 Well, that didn't really contain any more information...  Are you wanting to
programatically select a row to do that?  Are you wanting to do that when
the user clicks on an item in the listview?

Take a look at this notepad tutorial. It has a list of notes. When you click
a note it opens a new activity to edit the note.
 http://developer.android.com/resources/tutorials/notepad/index.html 

Thanks,
Justin Anderson
MagouyaWare Developer
 http://sites.google.com/site/magouyaware 


On Fri, Mar 25, 2011 at 1:20 PM, Igor Nesralla Ribeiro







-- 



RE: select a row in a listview

by Igor Nesralla Ribeiro » Sat, 26 Mar 2011 07:11:02 GMT


 Ops sorry for my english....yes I waiting a users click on a item in the
listview think this tutorial is goodut I have a questioni bind my
listview using a simplecursosadapter has any diference for this tutorial !?

 

Thanks in advance
 

Igor

 

 

From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of Justin Anderson
Sent: sexta-feira, 25 de maro de 2011 16:31
To: android-developers@googlegroups.com
Subject: Re: [android-developers] select a row in a listview

 

Well, that didn't really contain any more information...  Are you wanting to
programatically select a row to do that?  Are you wanting to do that when
the user clicks on an item in the listview?

Take a look at this notepad tutorial. It has a list of notes. When you click
a note it opens a new activity to edit the note.
 http://developer.android.com/resources/tutorials/notepad/index.html 

Thanks,
Justin Anderson
MagouyaWare Developer
 http://sites.google.com/site/magouyaware 



On Fri, Mar 25, 2011 at 1:20 PM, Igor Nesralla Ribeiro <nesra...@gmail.com>



Justin,

 

Well, i have a listview wich I list a restaurants informations like name and
city how i select a row and open a acitivity with more detail about the
restaurant I had opened ?!

Can you help me ?

 

Best Regards
Igor

 

 

From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of Justin Anderson
Sent: sexta-feira, 25 de maro de 2011 15:45
To: android-developers@googlegroups.com
Subject: Re: [android-developers] select a row in a listview

 

You're really going to have to provide more information here, otherwise we
are only going to be guessing at what you really want to accomplish...

Thanks,
Justin Anderson
MagouyaWare Developer
 http://sites.google.com/site/magouyaware 

On Fri, Mar 25, 2011 at 12:41 PM, Igor Nesralla Ribeiro <nesra...@gmail.com>



Hi,
I'm newbie on android dev. Sorry for any problem....I have a listview wich i
display 3 columns (id,restaurant,city) from a sqlite...(using a
simplecursoradapter to bind)how I select a row and open it to edit or view.

Anyone has a reference to send me or example !?

Thanks
Igor

-----Original Message-----
From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of ehpaul
Sent: sexta-feira, 25 de maro de 2011 15:15
To: Android Developers
Subject: [android-developers] Re: Any way to detect if the GPS data is
"real"

Thanks for your reply. Sorry that I didn't post my question clearly.
As I am aware, it possible for my 3rd party app to manipulate the GPS
location. My question is that if there is any way to detect the location is
"Real" from the satellite instead of manipulated?





--


--


 

-- 



-- 


 

-- 


-- 



RE: select a row in a listview

by Kostya Vasilyev » Sat, 26 Mar 2011 07:17:11 GMT


 You can use listView.setOnItemClickListener. It will be passed the clicked
item's position as well as its id.
26.03.2011 2:12  "Igor Nesralla Ribeiro" <nesra...@gmail.com>
:

-- 



RE: select a row in a listview

by Igor Nesralla Ribeiro » Sat, 26 Mar 2011 07:27:23 GMT


 Thanks Kostya
 

Any way to get a _id on a textview ecause I bind the listview from a databse

 

From: android-developers@googlegroups.com 
[mailto:android-developers@googlegroups.com] On Behalf Of Kostya Vasilyev
Sent: sexta-feira, 25 de maro de 2011 20:17
To: android-developers@googlegroups.com
Subject: RE: [android-developers] select a row in a listview

 

You can use listView.setOnItemClickListener. It will be passed the clicked 
item's position as well as its id.

26.03.2011 2:12  "Igor Nesralla Ribeiro" <nesra...@gmail.com> 
:

-- 


-- 



RE: select a row in a listview

by Kostya Vasilyev » Sat, 26 Mar 2011 07:48:36 GMT


 You shouldn't have to - get your data from the adapter.

Note the click listener's "parent" parameter, that's your list view. Get the
adapter from that, then call getItem in the adapter to get your data.
26.03.2011 2:27  "Igor Nesralla Ribeiro" <nesra...@gmail.com>
:
databse
android-developers@googlegroups.com] On Behalf Of Kostya Vasilyev
item's position as well as its id.
:

-- 



RE: select a row in a listview

by Igor Nesralla Ribeiro » Sat, 26 Mar 2011 11:51:03 GMT


 Can you send me a example !?

 

From: android-developers@googlegroups.com 
[mailto:android-developers@googlegroups.com] On Behalf Of Kostya Vasilyev
Sent: sexta-feira, 25 de maro de 2011 20:48
To: android-developers@googlegroups.com
Subject: RE: [android-developers] select a row in a listview

 

You shouldn't have to - get your data from the adapter.

Note the click listener's "parent" parameter, that's your list view. Get the 
adapter from that, then call getItem in the adapter to get your data.

26.03.2011 2:27  "Igor Nesralla Ribeiro" <nesra...@gmail.com> 
:

-- 


-- 



Other Threads

1. Using DNS Lookup

Hi,

             Is there any API to use dns lookup in android? my app
connect to a server, and to final user, we don't want that user need
to enter the ip, but a hostname. I found dnsjava, a lib to handle
that, but if Android would have this, it becomes better.

Thanks a lot

Breno
--~--~---------~--~----~------------~-------~--~----~

2. SlidingDrawer throws RuntimeException in onMeasure

hi
i would like to do some tests on SlidingDrawer
however i always found RuntimeException when SlidingDrawer.onMeasure
is called
i check the code and think the exception is caused by unspecified
MeasureSpec

so i would like to ask how to setup the MeasureSpec in SlidingDrawer?

thanks
--~--~---------~--~----~------------~-------~--~----~

3. Q: kernel module compilation / inside vs. outside kernel source tree

4. Creation of XML

5. Emulator does not find new skins (1.5)

6. SDK-1.5 Emulator does not find skin

7. How to execute a application automatically after android booting?