AboutActivity.java :  » App » theedge2010 » com » alphacsp » theedge » ui » activities » Android Open Source

Android Open Source » App » theedge2010 
theedge2010 » com » alphacsp » theedge » ui » activities » AboutActivity.java
package com.alphacsp.theedge.ui.activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.view.View;
import android.widget.TextView;
import com.alphacsp.theedge.R;

/**
 * Created by IntelliJ IDEA.
 * User: Gilad
 * Date: 14/11/10
 * Time: 23:16
 */
public class AboutActivity extends Activity {
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.about_activity);
        final TextView registerTextView = (TextView) findViewById(R.id.register);
        final String text = "<a href='http://www.javaedge.com/jedge/register.jsp'>Register Now</a>";
        registerTextView.setMovementMethod(LinkMovementMethod.getInstance());
        registerTextView.setText(Html.fromHtml(text));

    }

    public void onHomeClick(View view) {
        final Intent intent = new Intent(getApplicationContext(), HomeActivity.class);
        intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
        startActivity(intent);
    }

    @SuppressWarnings({"UnusedDeclaration"})
    public void onSearchClick(View v) {
        onSearchRequested();
    }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.