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
[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 - How to linkify activity

How to linkify activity

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

How to linkify activity

Postby hydroxboys » Wed Oct 20, 2010 4:54 pm

I just trying to linkify a text with the Linkify class recently but I'm stuck at how to showing new activity after clicking those links?!
here's the screenshoot of my pages:
Image
There's a 'Register' link that I want to show new Activity after a click takes place.

And this is my code:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. package com.tech2eco.login;
  2.  
  3. import java.util.regex.Pattern;
  4.  
  5. import android.app.Activity;
  6. import android.os.Bundle;
  7. import android.text.util.Linkify;
  8. import android.widget.TextView;
  9.  
  10. public class verify extends Activity {
  11.     private TextView regist;
  12.     public void onCreate(Bundle savedInstanceState) {
  13.                 super.onCreate(savedInstanceState);
  14.         setContentView(R.layout.main); 
  15.                 regist=(TextView) findViewById(R.id.lblReg);
  16.         Pattern regit=Pattern.compile("register");
  17.         String uri="content://com.tech2eco.login.register/";
  18.         Linkify.addLinks(regist,regit, uri);
  19.         }
  20. }
  21.  
Parsed in 0.017 seconds, using GeSHi 1.0.8.4


Maybe you are all having a simpler way to done this?
Thanks a lot for your answers.
hydroxboys
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Oct 20, 2010 4:37 pm

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 3 guests