Add another Activity search in listview

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Add another Activity search in listview

Postby dennie » Tue Aug 04, 2009 3:36 pm

Hi,
I have a list view load from database (sqlite). And I want to call another activity (have a EditText and a Button) to search data in ListView. The Search activity call when click Menu Search. When I type text on to search, it filter the list data alphabet when I type.
Can anyone help me with that problem?

Please help me, thanks!
dennie
Junior Developer
Junior Developer
 
Posts: 12
Joined: Sat Jul 18, 2009 8:10 am

Top

Postby TheChosen » Tue Aug 04, 2009 3:47 pm

This should be pretty much what you are looking for: http://developer.android.com/guide/tutorials/views/hello-listview.html.
TheChosen
Experienced Developer
Experienced Developer
 
Posts: 62
Joined: Tue Jan 06, 2009 7:18 pm
Location: Germany

Postby dennie » Wed Aug 05, 2009 3:13 am

So, how can I call a second activity to search in the first activity? That really my problem!

Thanks!
dennie
Junior Developer
Junior Developer
 
Posts: 12
Joined: Sat Jul 18, 2009 8:10 am

Postby dennie » Wed Aug 05, 2009 3:16 am

I'm newbie, so I really dont know how to code that, can someone help me? thanks!
dennie
Junior Developer
Junior Developer
 
Posts: 12
Joined: Sat Jul 18, 2009 8:10 am

Postby TheChosen » Wed Aug 05, 2009 10:39 am

I would suggest to start with some examples from the novice tutorial sections. There is also one showing how to pass values and return them to a subactivity. The keywords are Bundle and startActivityForResult.
TheChosen
Experienced Developer
Experienced Developer
 
Posts: 62
Joined: Tue Jan 06, 2009 7:18 pm
Location: Germany

Postby dennie » Wed Aug 05, 2009 2:46 pm

I try...

Thanks!
dennie
Junior Developer
Junior Developer
 
Posts: 12
Joined: Sat Jul 18, 2009 8:10 am

Top

Postby manzee » Thu Oct 01, 2009 6:00 am

Hi Dennie,

Did you get the solution for this?? I have a similar situation, Could you get any solution for this??
manzee
Once Poster
Once Poster
 
Posts: 1
Joined: Thu Oct 01, 2009 5:56 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 7 guests