Android Open Source - govchecker Open Aus Search Droid






From Project

Back to project page govchecker.

License

The source code is released under:

GNU General Public License

If you think the Android project govchecker 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 com.govchecker;
//  ww w  . j a  v a 2 s  . co  m
import com.govchecker.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;


public class OpenAusSearchDroid extends Activity
{
  /** Called when the activity is first created. */

  private Button repbutt;
  private Button senbutt;
  private Button hansbutt;
  private ImageView gcLogo;
  private OpenAusDB dh;

  @Override
  public void onCreate(Bundle savedInstanceState)
  {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    repbutt = (Button) findViewById(R.id.SearchRep_Reps);
    senbutt = (Button) findViewById(R.id.SearchRep_Senate);
    gcLogo = (ImageView) findViewById(R.id.gcLogo);
    gcLogo.setImageResource(R.drawable.gc);
    hansbutt = (Button) findViewById(R.id.SearchHansard);
    this.dh = new OpenAusDB(this);

    repbutt.setOnClickListener(new View.OnClickListener()
    {
      public void onClick(View v)
      {
        // TODO Auto-generated method stub
        Intent myIntent = new Intent(v.getContext(), SearchRepsActivity.class);
        startActivityForResult(myIntent, 0);
      }
    });

    senbutt.setOnClickListener(new View.OnClickListener()
    {
      public void onClick(View v)
      {
        // TODO Auto-generated method stub
        Intent myIntent = new Intent(v.getContext(), SearchSenate.class);
        startActivityForResult(myIntent, 0);
      }
    });

    hansbutt.setOnClickListener(new View.OnClickListener()
    {
      public void onClick(View v)
      {
        // TODO Auto-generated method stub
        Intent myIntent = new Intent(v.getContext(), SearchHansardActivity.class);
        startActivityForResult(myIntent, 0);
      }
    });

  }
  @Override
  public void onPause()
  {
    super.onPause();
  }


}




Java Source Code List

com.govchecker.HansardSearchDisplay.java
com.govchecker.HansardSearch.java
com.govchecker.OAWebView.java
com.govchecker.OpenAusDB.java
com.govchecker.OpenAusSearchDroid.java
com.govchecker.RepSearch.java
com.govchecker.Rep_Display.java
com.govchecker.Rep_Object.java
com.govchecker.SearchHansardActivity.java
com.govchecker.SearchRepsActivity.java
com.govchecker.SearchSenate.java
com.govchecker.Utilities.java
com.govchecker.VoteResultDisplay.java