Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2022-81
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2022-81
2022-81
Commits
580c2428
Commit
580c2428
authored
Oct 07, 2022
by
Binuka Sihan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add java files
parent
bf35792a
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
586 additions
and
0 deletions
+586
-0
app/src/main/java/com/example/eketha/Fertilizer.java
app/src/main/java/com/example/eketha/Fertilizer.java
+88
-0
app/src/main/java/com/example/eketha/Growth.java
app/src/main/java/com/example/eketha/Growth.java
+87
-0
app/src/main/java/com/example/eketha/Login.java
app/src/main/java/com/example/eketha/Login.java
+14
-0
app/src/main/java/com/example/eketha/MainActivity.java
app/src/main/java/com/example/eketha/MainActivity.java
+56
-0
app/src/main/java/com/example/eketha/PetsAndDiseases.java
app/src/main/java/com/example/eketha/PetsAndDiseases.java
+89
-0
app/src/main/java/com/example/eketha/Register.java
app/src/main/java/com/example/eketha/Register.java
+14
-0
app/src/main/java/com/example/eketha/Weeds.java
app/src/main/java/com/example/eketha/Weeds.java
+87
-0
app/src/main/java/com/example/eketha/fertilizerHome.java
app/src/main/java/com/example/eketha/fertilizerHome.java
+38
-0
app/src/main/java/com/example/eketha/growthHome.java
app/src/main/java/com/example/eketha/growthHome.java
+37
-0
app/src/main/java/com/example/eketha/pdHome.java
app/src/main/java/com/example/eketha/pdHome.java
+38
-0
app/src/main/java/com/example/eketha/weedHome.java
app/src/main/java/com/example/eketha/weedHome.java
+38
-0
No files found.
app/src/main/java/com/example/eketha/Fertilizer.java
0 → 100644
View file @
580c2428
package
com.example.eketha
;
import
androidx.annotation.Nullable
;
import
androidx.annotation.RequiresApi
;
import
androidx.appcompat.app.AppCompatActivity
;
import
android.Manifest
;
import
android.content.Intent
;
import
android.content.pm.PackageManager
;
import
android.graphics.Bitmap
;
import
android.media.ThumbnailUtils
;
import
android.net.Uri
;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.provider.MediaStore
;
import
android.view.View
;
import
android.widget.Button
;
import
android.widget.ImageView
;
import
android.widget.TextView
;
import
java.io.IOException
;
public
class
Fertilizer
extends
AppCompatActivity
{
private
Button
camera
,
gallery
;
private
ImageView
imageView
;
private
TextView
result
;
private
int
imageSize
=
32
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_fertilizer
);
camera
=
findViewById
(
R
.
id
.
button
);
gallery
=
findViewById
(
R
.
id
.
button2
);
result
=
findViewById
(
R
.
id
.
result
);
imageView
=
findViewById
(
R
.
id
.
imageView
);
camera
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@RequiresApi
(
api
=
Build
.
VERSION_CODES
.
M
)
@Override
public
void
onClick
(
View
view
)
{
if
(
checkSelfPermission
(
Manifest
.
permission
.
CAMERA
)
==
PackageManager
.
PERMISSION_GRANTED
)
{
Intent
cameraIntent
=
new
Intent
(
MediaStore
.
ACTION_IMAGE_CAPTURE
);
startActivityForResult
(
cameraIntent
,
3
);
}
else
{
requestPermissions
(
new
String
[]{
Manifest
.
permission
.
CAMERA
},
100
);
}
}
});
gallery
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
cameraIntent
=
new
Intent
(
Intent
.
ACTION_PICK
,
MediaStore
.
Images
.
Media
.
EXTERNAL_CONTENT_URI
);
startActivityForResult
(
cameraIntent
,
1
);
}
});
}
@Override
protected
void
onActivityResult
(
int
requestCode
,
int
resultCode
,
@Nullable
Intent
data
)
{
if
(
resultCode
==
RESULT_OK
){
if
(
requestCode
==
3
){
Bitmap
image
=
(
Bitmap
)
data
.
getExtras
().
get
(
"data"
);
int
dimension
=
Math
.
min
(
image
.
getWidth
(),
image
.
getHeight
());
image
=
ThumbnailUtils
.
extractThumbnail
(
image
,
dimension
,
dimension
);
imageView
.
setImageBitmap
(
image
);
image
=
Bitmap
.
createScaledBitmap
(
image
,
imageSize
,
imageSize
,
false
);
// classifyImage(image);
}
else
{
Uri
dat
=
data
.
getData
();
Bitmap
image
=
null
;
try
{
image
=
MediaStore
.
Images
.
Media
.
getBitmap
(
this
.
getContentResolver
(),
dat
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
imageView
.
setImageBitmap
(
image
);
image
=
Bitmap
.
createScaledBitmap
(
image
,
imageSize
,
imageSize
,
false
);
// classifyImage(image);
}
}
super
.
onActivityResult
(
requestCode
,
resultCode
,
data
);
}
}
\ No newline at end of file
app/src/main/java/com/example/eketha/Growth.java
0 → 100644
View file @
580c2428
package
com.example.eketha
;
import
androidx.annotation.Nullable
;
import
androidx.annotation.RequiresApi
;
import
androidx.appcompat.app.AppCompatActivity
;
import
android.Manifest
;
import
android.content.Intent
;
import
android.content.pm.PackageManager
;
import
android.graphics.Bitmap
;
import
android.media.ThumbnailUtils
;
import
android.net.Uri
;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.provider.MediaStore
;
import
android.view.View
;
import
android.widget.Button
;
import
android.widget.ImageView
;
import
android.widget.TextView
;
import
java.io.IOException
;
public
class
Growth
extends
AppCompatActivity
{
private
Button
camera
,
gallery
;
private
ImageView
imageView
;
private
TextView
result
;
private
int
imageSize
=
32
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_growth
);
camera
=
findViewById
(
R
.
id
.
button
);
gallery
=
findViewById
(
R
.
id
.
button2
);
result
=
findViewById
(
R
.
id
.
result
);
imageView
=
findViewById
(
R
.
id
.
imageView
);
camera
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@RequiresApi
(
api
=
Build
.
VERSION_CODES
.
M
)
@Override
public
void
onClick
(
View
view
)
{
if
(
checkSelfPermission
(
Manifest
.
permission
.
CAMERA
)
==
PackageManager
.
PERMISSION_GRANTED
)
{
Intent
cameraIntent
=
new
Intent
(
MediaStore
.
ACTION_IMAGE_CAPTURE
);
startActivityForResult
(
cameraIntent
,
3
);
}
else
{
requestPermissions
(
new
String
[]{
Manifest
.
permission
.
CAMERA
},
100
);
}
}
});
gallery
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
cameraIntent
=
new
Intent
(
Intent
.
ACTION_PICK
,
MediaStore
.
Images
.
Media
.
EXTERNAL_CONTENT_URI
);
startActivityForResult
(
cameraIntent
,
1
);
}
});
}
@Override
protected
void
onActivityResult
(
int
requestCode
,
int
resultCode
,
@Nullable
Intent
data
)
{
if
(
resultCode
==
RESULT_OK
){
if
(
requestCode
==
3
){
Bitmap
image
=
(
Bitmap
)
data
.
getExtras
().
get
(
"data"
);
int
dimension
=
Math
.
min
(
image
.
getWidth
(),
image
.
getHeight
());
image
=
ThumbnailUtils
.
extractThumbnail
(
image
,
dimension
,
dimension
);
imageView
.
setImageBitmap
(
image
);
image
=
Bitmap
.
createScaledBitmap
(
image
,
imageSize
,
imageSize
,
false
);
// classifyImage(image);
}
else
{
Uri
dat
=
data
.
getData
();
Bitmap
image
=
null
;
try
{
image
=
MediaStore
.
Images
.
Media
.
getBitmap
(
this
.
getContentResolver
(),
dat
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
imageView
.
setImageBitmap
(
image
);
image
=
Bitmap
.
createScaledBitmap
(
image
,
imageSize
,
imageSize
,
false
);
// classifyImage(image);
}
}
super
.
onActivityResult
(
requestCode
,
resultCode
,
data
);
}
}
\ No newline at end of file
app/src/main/java/com/example/eketha/Login.java
0 → 100644
View file @
580c2428
package
com.example.eketha
;
import
androidx.appcompat.app.AppCompatActivity
;
import
android.os.Bundle
;
public
class
Login
extends
AppCompatActivity
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_login
);
}
}
\ No newline at end of file
app/src/main/java/com/example/eketha/MainActivity.java
0 → 100644
View file @
580c2428
package
com.example.eketha
;
import
androidx.appcompat.app.AppCompatActivity
;
import
androidx.cardview.widget.CardView
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.view.View
;
public
class
MainActivity
extends
AppCompatActivity
{
private
CardView
cardView1
,
cardView2
,
cardView3
,
cardView4
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_main
);
cardView1
=
findViewById
(
R
.
id
.
card1
);
cardView2
=
findViewById
(
R
.
id
.
card2
);
cardView3
=
findViewById
(
R
.
id
.
card3
);
cardView4
=
findViewById
(
R
.
id
.
card4
);
cardView1
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
getApplicationContext
(),
pdHome
.
class
);
startActivity
(
intent
);
}
});
cardView2
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
getApplicationContext
(),
weedHome
.
class
);
startActivity
(
intent
);
}
});
cardView3
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
getApplicationContext
(),
fertilizerHome
.
class
);
startActivity
(
intent
);
}
});
cardView4
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
getApplicationContext
(),
growthHome
.
class
);
startActivity
(
intent
);
}
});
}
}
\ No newline at end of file
app/src/main/java/com/example/eketha/PetsAndDiseases.java
0 → 100644
View file @
580c2428
package
com.example.eketha
;
import
androidx.annotation.Nullable
;
import
androidx.annotation.RequiresApi
;
import
androidx.appcompat.app.AppCompatActivity
;
import
android.Manifest
;
import
android.content.Intent
;
import
android.content.pm.PackageManager
;
import
android.graphics.Bitmap
;
import
android.media.ThumbnailUtils
;
import
android.net.Uri
;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.provider.MediaStore
;
import
android.view.View
;
import
android.widget.Button
;
import
android.widget.ImageView
;
import
android.widget.LinearLayout
;
import
android.widget.TextView
;
import
java.io.IOException
;
public
class
PetsAndDiseases
extends
AppCompatActivity
{
private
Button
camera
,
gallery
;
private
ImageView
imageView
;
private
TextView
result
;
private
int
imageSize
=
32
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_pets_and_diseases
);
camera
=
findViewById
(
R
.
id
.
button
);
gallery
=
findViewById
(
R
.
id
.
button2
);
result
=
findViewById
(
R
.
id
.
result
);
imageView
=
findViewById
(
R
.
id
.
imageView
);
camera
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@RequiresApi
(
api
=
Build
.
VERSION_CODES
.
M
)
@Override
public
void
onClick
(
View
view
)
{
if
(
checkSelfPermission
(
Manifest
.
permission
.
CAMERA
)
==
PackageManager
.
PERMISSION_GRANTED
)
{
Intent
cameraIntent
=
new
Intent
(
MediaStore
.
ACTION_IMAGE_CAPTURE
);
startActivityForResult
(
cameraIntent
,
3
);
}
else
{
requestPermissions
(
new
String
[]{
Manifest
.
permission
.
CAMERA
},
100
);
}
}
});
gallery
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
cameraIntent
=
new
Intent
(
Intent
.
ACTION_PICK
,
MediaStore
.
Images
.
Media
.
EXTERNAL_CONTENT_URI
);
startActivityForResult
(
cameraIntent
,
1
);
}
});
}
@Override
protected
void
onActivityResult
(
int
requestCode
,
int
resultCode
,
@Nullable
Intent
data
)
{
if
(
resultCode
==
RESULT_OK
){
if
(
requestCode
==
3
){
Bitmap
image
=
(
Bitmap
)
data
.
getExtras
().
get
(
"data"
);
int
dimension
=
Math
.
min
(
image
.
getWidth
(),
image
.
getHeight
());
image
=
ThumbnailUtils
.
extractThumbnail
(
image
,
dimension
,
dimension
);
imageView
.
setImageBitmap
(
image
);
image
=
Bitmap
.
createScaledBitmap
(
image
,
imageSize
,
imageSize
,
false
);
// classifyImage(image);
}
else
{
Uri
dat
=
data
.
getData
();
Bitmap
image
=
null
;
try
{
image
=
MediaStore
.
Images
.
Media
.
getBitmap
(
this
.
getContentResolver
(),
dat
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
imageView
.
setImageBitmap
(
image
);
image
=
Bitmap
.
createScaledBitmap
(
image
,
imageSize
,
imageSize
,
false
);
// classifyImage(image);
}
}
super
.
onActivityResult
(
requestCode
,
resultCode
,
data
);
}
}
\ No newline at end of file
app/src/main/java/com/example/eketha/Register.java
0 → 100644
View file @
580c2428
package
com.example.eketha
;
import
androidx.appcompat.app.AppCompatActivity
;
import
android.os.Bundle
;
public
class
Register
extends
AppCompatActivity
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_register
);
}
}
\ No newline at end of file
app/src/main/java/com/example/eketha/Weeds.java
0 → 100644
View file @
580c2428
package
com.example.eketha
;
import
androidx.annotation.Nullable
;
import
androidx.annotation.RequiresApi
;
import
androidx.appcompat.app.AppCompatActivity
;
import
android.Manifest
;
import
android.content.Intent
;
import
android.content.pm.PackageManager
;
import
android.graphics.Bitmap
;
import
android.media.ThumbnailUtils
;
import
android.net.Uri
;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.provider.MediaStore
;
import
android.view.View
;
import
android.widget.Button
;
import
android.widget.ImageView
;
import
android.widget.TextView
;
import
java.io.IOException
;
public
class
Weeds
extends
AppCompatActivity
{
private
Button
camera
,
gallery
;
private
ImageView
imageView
;
private
TextView
result
;
private
int
imageSize
=
32
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_weeds
);
camera
=
findViewById
(
R
.
id
.
button
);
gallery
=
findViewById
(
R
.
id
.
button2
);
result
=
findViewById
(
R
.
id
.
result
);
imageView
=
findViewById
(
R
.
id
.
imageView
);
camera
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@RequiresApi
(
api
=
Build
.
VERSION_CODES
.
M
)
@Override
public
void
onClick
(
View
view
)
{
if
(
checkSelfPermission
(
Manifest
.
permission
.
CAMERA
)
==
PackageManager
.
PERMISSION_GRANTED
)
{
Intent
cameraIntent
=
new
Intent
(
MediaStore
.
ACTION_IMAGE_CAPTURE
);
startActivityForResult
(
cameraIntent
,
3
);
}
else
{
requestPermissions
(
new
String
[]{
Manifest
.
permission
.
CAMERA
},
100
);
}
}
});
gallery
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
cameraIntent
=
new
Intent
(
Intent
.
ACTION_PICK
,
MediaStore
.
Images
.
Media
.
EXTERNAL_CONTENT_URI
);
startActivityForResult
(
cameraIntent
,
1
);
}
});
}
@Override
protected
void
onActivityResult
(
int
requestCode
,
int
resultCode
,
@Nullable
Intent
data
)
{
if
(
resultCode
==
RESULT_OK
){
if
(
requestCode
==
3
){
Bitmap
image
=
(
Bitmap
)
data
.
getExtras
().
get
(
"data"
);
int
dimension
=
Math
.
min
(
image
.
getWidth
(),
image
.
getHeight
());
image
=
ThumbnailUtils
.
extractThumbnail
(
image
,
dimension
,
dimension
);
imageView
.
setImageBitmap
(
image
);
image
=
Bitmap
.
createScaledBitmap
(
image
,
imageSize
,
imageSize
,
false
);
// classifyImage(image);
}
else
{
Uri
dat
=
data
.
getData
();
Bitmap
image
=
null
;
try
{
image
=
MediaStore
.
Images
.
Media
.
getBitmap
(
this
.
getContentResolver
(),
dat
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
imageView
.
setImageBitmap
(
image
);
image
=
Bitmap
.
createScaledBitmap
(
image
,
imageSize
,
imageSize
,
false
);
// classifyImage(image);
}
}
super
.
onActivityResult
(
requestCode
,
resultCode
,
data
);
}
}
\ No newline at end of file
app/src/main/java/com/example/eketha/fertilizerHome.java
0 → 100644
View file @
580c2428
package
com.example.eketha
;
import
androidx.appcompat.app.AppCompatActivity
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.LinearLayout
;
public
class
fertilizerHome
extends
AppCompatActivity
{
private
LinearLayout
layer1
,
layer2
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_fertilizer_home
);
layer1
=
findViewById
(
R
.
id
.
layer2
);
layer2
=
findViewById
(
R
.
id
.
layer3
);
layer1
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
getApplicationContext
(),
Fertilizer
.
class
);
startActivity
(
intent
);
}
});
layer2
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
getApplicationContext
(),
Fertilizer
.
class
);
startActivity
(
intent
);
}
});
}
}
\ No newline at end of file
app/src/main/java/com/example/eketha/growthHome.java
0 → 100644
View file @
580c2428
package
com.example.eketha
;
import
androidx.appcompat.app.AppCompatActivity
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.LinearLayout
;
public
class
growthHome
extends
AppCompatActivity
{
private
LinearLayout
layer1
,
layer2
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_growth_home
);
layer1
=
findViewById
(
R
.
id
.
layer2
);
layer2
=
findViewById
(
R
.
id
.
layer3
);
layer1
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
getApplicationContext
(),
Fertilizer
.
class
);
startActivity
(
intent
);
}
});
layer2
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
getApplicationContext
(),
Fertilizer
.
class
);
startActivity
(
intent
);
}
});
}
}
\ No newline at end of file
app/src/main/java/com/example/eketha/pdHome.java
0 → 100644
View file @
580c2428
package
com.example.eketha
;
import
androidx.appcompat.app.AppCompatActivity
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.LinearLayout
;
public
class
pdHome
extends
AppCompatActivity
{
private
LinearLayout
layer1
,
layer2
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_pd_home
);
layer1
=
findViewById
(
R
.
id
.
layer2
);
layer2
=
findViewById
(
R
.
id
.
layer3
);
layer1
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
getApplicationContext
(),
Fertilizer
.
class
);
startActivity
(
intent
);
}
});
layer2
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
getApplicationContext
(),
Fertilizer
.
class
);
startActivity
(
intent
);
}
});
}
}
\ No newline at end of file
app/src/main/java/com/example/eketha/weedHome.java
0 → 100644
View file @
580c2428
package
com.example.eketha
;
import
androidx.appcompat.app.AppCompatActivity
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.LinearLayout
;
public
class
weedHome
extends
AppCompatActivity
{
private
LinearLayout
layer1
,
layer2
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_weed_home
);
layer1
=
findViewById
(
R
.
id
.
layer2
);
layer2
=
findViewById
(
R
.
id
.
layer3
);
layer1
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
getApplicationContext
(),
Fertilizer
.
class
);
startActivity
(
intent
);
}
});
layer2
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
getApplicationContext
(),
Fertilizer
.
class
);
startActivity
(
intent
);
}
});
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment