Back to project page Android-App-Project___Stay-Anonymous.
The source code is released under:
Apache License
If you think the Android project Android-App-Project___Stay-Anonymous listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package mobile_final; //from w w w .j av a 2 s . c o m import com.google.cloud.backend.R; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class TestActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.fragment_test); final VoteHandler voter = new VoteHandler(this); Button testButton = (Button) findViewById(R.id.testButton); testButton.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { voter.raiseAVote(10, "testVote"); } }); } }