33import android .app .AlertDialog ;
44import android .content .DialogInterface ;
55import android .content .Intent ;
6- import android .content .pm .ActivityInfo ;
76import android .net .Uri ;
87import android .os .Bundle ;
98import android .support .v7 .app .AppCompatActivity ;
1514import android .widget .EditText ;
1615
1716import static openscience .crowdsource .video .experiments .AppConfigService .ACKNOWLEDGE_YOUR_CONTRIBUTIONS ;
17+ import static openscience .crowdsource .video .experiments .AppConfigService .URL_ABOUT ;
18+ import static openscience .crowdsource .video .experiments .AppConfigService .URL_SDK ;
19+ import static openscience .crowdsource .video .experiments .AppConfigService .URL_CROWD_RESULTS ;
20+ import static openscience .crowdsource .video .experiments .AppConfigService .URL_USERS ;
1821
1922/**
2023 * Screen with additional features like
@@ -61,12 +64,6 @@ public void onClick(View v) {
6164
6265 /*************************************************************************/
6366 private void addListenersOnButtons () {
64- //todo move out to AppConfigService
65- final String url_sdk = "http://github.com/ctuning/ck" ;
66- final String url_about = "https://github.com/ctuning/ck/wiki/Advanced_usage_crowdsourcing" ;
67- final String url_stats = "http://cknowledge.org/repo/web.php?action=index&module_uoa=wfe&native_action=show&native_module_uoa=program.optimization&scenario=experiment.bench.dnn.mobile" ;
68- final String url_users = "http://cTuning.org/crowdtuning-timeline" ;
69-
7067 Button b_sdk = (Button ) findViewById (R .id .b_sdk );
7168 Button b_about = (Button ) findViewById (R .id .b_about_app );
7269 Button b_stats = (Button ) findViewById (R .id .b_results );
@@ -76,7 +73,7 @@ private void addListenersOnButtons() {
7673 @ SuppressWarnings ({"unused" , "unchecked" })
7774 @ Override
7875 public void onClick (View arg0 ) {
79- Intent browserIntent = new Intent (Intent .ACTION_VIEW , Uri .parse (url_sdk ));
76+ Intent browserIntent = new Intent (Intent .ACTION_VIEW , Uri .parse (URL_SDK ));
8077 startActivity (browserIntent );
8178 }
8279 });
@@ -85,10 +82,10 @@ public void onClick(View arg0) {
8582 @ SuppressWarnings ({"unused" , "unchecked" })
8683 @ Override
8784 public void onClick (View arg0 ) {
88- AppLogger .logMessage ("Opening " + url_about + " ..." );
85+ AppLogger .logMessage ("Opening " + URL_ABOUT + " ..." );
8986
9087 Intent browserIntent =
91- new Intent (Intent .ACTION_VIEW , Uri .parse (url_about ));
88+ new Intent (Intent .ACTION_VIEW , Uri .parse (URL_ABOUT ));
9289
9390 startActivity (browserIntent );
9491 }
@@ -98,10 +95,10 @@ public void onClick(View arg0) {
9895 @ SuppressWarnings ({"unused" , "unchecked" })
9996 @ Override
10097 public void onClick (View arg0 ) {
101- AppLogger .logMessage ("Opening " + url_stats + " ..." );
98+ AppLogger .logMessage ("Opening " + URL_CROWD_RESULTS + " ..." );
10299
103100 Intent browserIntent =
104- new Intent (Intent .ACTION_VIEW , Uri .parse (url_stats ));
101+ new Intent (Intent .ACTION_VIEW , Uri .parse (URL_CROWD_RESULTS ));
105102
106103 startActivity (browserIntent );
107104 }
@@ -111,10 +108,10 @@ public void onClick(View arg0) {
111108 @ SuppressWarnings ({"unused" , "unchecked" })
112109 @ Override
113110 public void onClick (View arg0 ) {
114- AppLogger .logMessage ("Opening " + url_users + " ..." );
111+ AppLogger .logMessage ("Opening " + URL_USERS + " ..." );
115112
116113 Intent browserIntent =
117- new Intent (Intent .ACTION_VIEW , Uri .parse (url_users ));
114+ new Intent (Intent .ACTION_VIEW , Uri .parse (URL_USERS ));
118115
119116 startActivity (browserIntent );
120117 }
0 commit comments