From e256484912a9fda142a0d13d4365bfc512328a00 Mon Sep 17 00:00:00 2001 From: SARBJIT SINGH Date: Sun, 21 Feb 2021 20:36:04 +0000 Subject: [PATCH 1/7] add readme file --- README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..a17ee0f --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# AndroidWeatherApp From 363fe17dbe7527c10d2fca164689699183829048 Mon Sep 17 00:00:00 2001 From: sarbjeet Date: Sun, 28 Feb 2021 10:27:33 +0000 Subject: [PATCH 2/7] city button is active now --- .../executionHistory/executionHistory.lock | Bin 17 -> 17 bytes .gradle/5.4.1/fileHashes/fileHashes.lock | Bin 17 -> 17 bytes .../buildOutputCleanup.lock | Bin 17 -> 17 bytes .idea/workspace.xml | 92 +++++++++--------- 4 files changed, 47 insertions(+), 45 deletions(-) diff --git a/.gradle/5.4.1/executionHistory/executionHistory.lock b/.gradle/5.4.1/executionHistory/executionHistory.lock index d32fd5fd17d2519fd77c2588ee34a77b70029e4a..9d928aa5e3699f61c5aed25747dd2c6dfaea40d7 100644 GIT binary patch literal 17 TcmZQxccac%(2JRc0Rp4}Ch!8% literal 17 TcmZQxccac%(2JRc0RqGUChP*v diff --git a/.gradle/5.4.1/fileHashes/fileHashes.lock b/.gradle/5.4.1/fileHashes/fileHashes.lock index 41e9e527fd1a94b0e0d3af6b09f6b04523274475..ebef59f99f3ca0bd0fd890753ca951e6c3f55f44 100644 GIT binary patch literal 17 UcmZQBW?b25A+u#M0|a;h04Og5mjD0& literal 17 UcmZQBW?b25A+u#M0|a;g04Oa3l>h($ diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock index b430abea53b6537121eb38a70bf50914e490ede7..df0ba8083a336a88ce8ec86b94d5ee8670d33503 100644 GIT binary patch literal 17 UcmZSXd#_$3#Q0_k0|eLu04|>c>;M1& literal 17 UcmZSXd#_$3#Q0_k0|eLt04|*a>Hq)$ diff --git a/.idea/workspace.xml b/.idea/workspace.xml index e2d9849..9ec7d5e 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -12,7 +12,9 @@ - + + + - @@ -42,11 +43,11 @@ - + - + @@ -56,8 +57,8 @@ - - + + @@ -129,6 +130,9 @@ + + + @@ -140,9 +144,6 @@ @@ -328,10 +370,17 @@ + + + + + + + - - + + @@ -340,33 +389,25 @@ - - - - - - - - - + + - - + - - + + - - + + @@ -374,5 +415,13 @@ + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/tees/ac/uk/a0321466/weatherapp/MainActivity.java b/app/src/main/java/com/tees/ac/uk/a0321466/weatherapp/MainActivity.java index 91e9d81..c47d3a4 100644 --- a/app/src/main/java/com/tees/ac/uk/a0321466/weatherapp/MainActivity.java +++ b/app/src/main/java/com/tees/ac/uk/a0321466/weatherapp/MainActivity.java @@ -27,5 +27,14 @@ public void onClick(View view){ } }); + Intent g= getIntent(); + String city= g.getStringExtra("city"); + if(city !=null){ + Toast.makeText(MainActivity.this, "search :" + city,Toast.LENGTH_SHORT).show(); + } + else{ + Toast.makeText(MainActivity.this, "sorry you entered empty value", Toast.LENGTH_SHORT).show(); + } + } } diff --git a/app/src/main/res/layout/activity_city_finder.xml b/app/src/main/res/layout/activity_city_finder.xml index 6e4a378..64e1921 100644 --- a/app/src/main/res/layout/activity_city_finder.xml +++ b/app/src/main/res/layout/activity_city_finder.xml @@ -19,22 +19,50 @@ - - + + + + +