Android Open Source - T-CEP-Alert Links Activity






From Project

Back to project page T-CEP-Alert.

License

The source code is released under:

MIT License

If you think the Android project T-CEP-Alert listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.ruscoe.tcepalert;
/*w w  w  . j a v  a 2 s  .c  om*/
import android.app.Activity;
import android.os.Bundle;
import android.text.method.LinkMovementMethod;
import android.widget.TextView;

/**
 * An activity used to display a list of useful links to the user.
 * 
 * @author Dan Ruscoe
 */
public class LinksActivity extends Activity
{
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
      super.onCreate(savedInstanceState);
      
      setContentView(R.layout.links);
      
      TextView tCepUrl = (TextView) findViewById(R.id.tCepUrl);
      tCepUrl.setMovementMethod(LinkMovementMethod.getInstance());
      
      TextView topangaSurvivalUrl = (TextView) findViewById(R.id.topangaSurvivalUrl);
      topangaSurvivalUrl.setMovementMethod(LinkMovementMethod.getInstance());
      
      TextView alertLaUrl = (TextView) findViewById(R.id.alertLaUrl);
      alertLaUrl.setMovementMethod(LinkMovementMethod.getInstance());
    }
}




Java Source Code List

org.ruscoe.tcepalert.AboutActivity.java
org.ruscoe.tcepalert.AlertAdapter.java
org.ruscoe.tcepalert.AlertUpdateCheck.java
org.ruscoe.tcepalert.AlertView.java
org.ruscoe.tcepalert.AlertsActivity.java
org.ruscoe.tcepalert.LatestAlertsActivity.java
org.ruscoe.tcepalert.LinksActivity.java
org.ruscoe.tcepalert.MainActivity.java
org.ruscoe.tcepalert.SettingsActivity.java
org.ruscoe.tcepalert.constants.Constants.java
org.ruscoe.tcepalert.dao.AlertDAO.java
org.ruscoe.tcepalert.dao.AlertUpdateData.java
org.ruscoe.tcepalert.dao.CachedAlertData.java
org.ruscoe.tcepalert.dao.SettingsData.java
org.ruscoe.tcepalert.models.Alert.java
org.ruscoe.tcepalert.web.NetworkActivity.java
org.ruscoe.tcepalert.web.WebService.java