Back to project page unicef_gis_mobile.
The source code is released under:
MIT License
If you think the Android project unicef_gis_mobile 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 org.unicef.gis.ui; /* w w w . j a v a 2s. co m*/ import org.unicef.gis.R; import org.unicef.gis.infrastructure.data.UnicefGisStore; import android.app.Activity; import android.content.Intent; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; public class ConfigureServerUrlActivity extends Activity { private TextView welcome; private EditText editUrl; private Button buttonSave; @Override protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_configure_server_url); welcome = (TextView) findViewById(R.id.configure_server_url_welcome); welcome.setText(R.string.welcome); editUrl = (EditText) findViewById(R.id.configure_server_url_edit_url); editUrl.setText(R.string.example_url); buttonSave = (Button) findViewById(R.id.configure_server_url_button_save); buttonSave.setText(R.string.save_address); }; public void saveAddress(View view) { UnicefGisStore store = new UnicefGisStore(this); store.saveAddress(editUrl.getText().toString()); startActivity(new Intent(this, FetchTagsActivity.class)); } }