Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Listview to new page

Listview to new page

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

Listview to new page

Postby Beavo » Wed Nov 09, 2011 1:54 pm

Hi,

Has anyone got an example file of a listview menu opening a new page.

I can't seem to find one anywhere.

All the examples I have found just show a listview opening a short message when clicked.

I need it to open another page.

Hope that made sense.
Cheers
Beavo
Beavo
Junior Developer
Junior Developer
 
Posts: 18
Joined: Sun Oct 31, 2010 4:09 pm
Location: Bristol, England

Top

Re: Listview to new page

Postby redbulletnl » Wed Nov 09, 2011 2:27 pm

Code: Select all
if(((TextView) view).getText().equals("number one")){
          myIntent = new Intent(view.getContext(), a_class.class);
         }
         
         if(((TextView) view).getText().equals("number 2")){
          myIntent = new Intent(view.getContext(), number2.class);
         }

         if(((TextView) view).getText().equals("number three")){
          myIntent = new Intent(view.getContext(), 3thClass.class);
         }


i hope this is what youre searching for ;)
redbulletnl
Experienced Developer
Experienced Developer
 
Posts: 84
Joined: Wed Sep 14, 2011 7:44 am

Re: Listview to new page

Postby Beavo » Wed Nov 09, 2011 5:56 pm

Many thanks for reply.

I'll try and figure out what to do with that code.

Strange that I can't seem to find any example files that do this though, it must be a common request.
Cheers
Beavo
Beavo
Junior Developer
Junior Developer
 
Posts: 18
Joined: Sun Oct 31, 2010 4:09 pm
Location: Bristol, England

Re: Listview to new page

Postby redbulletnl » Thu Nov 10, 2011 10:00 am

yes thats strange :)
i was looking it a long time ago, but couldnt find it so i cobiend 2 codes :)
redbulletnl
Experienced Developer
Experienced Developer
 
Posts: 84
Joined: Wed Sep 14, 2011 7:44 am

Re: Listview to new page

Postby goldstar » Mon Nov 14, 2011 1:30 pm

wired ....


----------------------------
מנעולן
מנעולן בתל אביב
goldstar
Freshman
Freshman
 
Posts: 3
Joined: Mon Oct 03, 2011 1:36 pm

Top

Return to General

Who is online

Users browsing this forum: No registered users and 2 guests