Back to project page tasktracker-android.
The source code is released under:
Copyright (c) 2012 Remo Mueller https://github.com/remomueller This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. To view a copy of this lice...
If you think the Android project tasktracker-android 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 com.github.remomueller.tasktracker.android; /*from www .ja v a 2s .c o m*/ import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.EditText; public class MainActivity extends Activity { public final static String HOST_URL = "https://sleepepi.partners.org/edge/tasktracker"; public final static String USERNAME = "com.example.mysecondapp.USERNAME"; public final static String PASSWORD = "com.example.mysecondapp.PASSWORD"; // private EditText usernameText; // private EditText passwordText; // private String username; // private String password; // /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // setContentView(R.layout.main); // usernameText = (EditText) findViewById(R.id.username); // passwordText = (EditText) findViewById(R.id.password); } // // Login // public void myClickHandler(View view) // { // username = usernameText.getText().toString(); // password = passwordText.getText().toString(); // // new DownloadWebpageText().execute(stringUrl); // // new DownloadJSONSTickies().execute(stringUrl); // Intent intent = new Intent(this, StickiesIndex.class); // intent.putExtra(USERNAME, username); // intent.putExtra(PASSWORD, password); // startActivity(intent); // } }