Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cmsc436spring2022-student
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andrej Rasevic
cmsc436spring2022-student
Commits
ecc21ba2
Commit
ecc21ba2
authored
3 years ago
by
Andrej Rasevic
Browse files
Options
Downloads
Patches
Plain Diff
updates
parent
be1d59f6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Labs/Lab3_DatamanagementLab/app/src/main/java/com/example/test_storageapp/MainActivity.kt
+0
-24
0 additions, 24 deletions
...src/main/java/com/example/test_storageapp/MainActivity.kt
with
0 additions
and
24 deletions
Labs/Lab3_DatamanagementLab/app/src/main/java/com/example/test_storageapp/MainActivity.kt
+
0
−
24
View file @
ecc21ba2
...
@@ -30,20 +30,11 @@ class MainActivity : AppCompatActivity() {
...
@@ -30,20 +30,11 @@ class MainActivity : AppCompatActivity() {
fun
Save
(
view
:
View
)
{
fun
Save
(
view
:
View
)
{
//TODO: Save name and uidtv to sharedpreference
//TODO: Save name and uidtv to sharedpreference
// val n = name.text.toString()
// val e = uidtv.text.toString()
// val editor = sharedpreferences.edit()
// editor.putString(Name, n)
// editor.putString(uid, e)
// editor.commit()
}
}
fun
clear
(
view
:
View
)
{
fun
clear
(
view
:
View
)
{
//TODO: Reset name and uidtv
//TODO: Reset name and uidtv
// name = findViewById<View>(R.id.etName) as TextView
// uidtv = findViewById<View>(R.id.etUid) as TextView
// name.text = ""
// name.text = ""
// uidtv.text = ""
// uidtv.text = ""
...
@@ -52,27 +43,12 @@ class MainActivity : AppCompatActivity() {
...
@@ -52,27 +43,12 @@ class MainActivity : AppCompatActivity() {
fun
Get
(
view
:
View
?)
{
fun
Get
(
view
:
View
?)
{
//TODO: Get name, shared preferences and uidtv
//TODO: Get name, shared preferences and uidtv
// name = findViewById<View>(R.id.etName) as TextView
// uidtv = findViewById<View>(R.id.etUid) as TextView
// sharedpreferences = getSharedPreferences(mypreference,
// Context.MODE_PRIVATE)
//
// if (sharedpreferences.contains(Name)) {
// name.text = sharedpreferences.getString(Name, "")
// }
// if (sharedpreferences.contains(uid)) {
// uidtv.text = sharedpreferences.getString(uid, "")
//
// }
}
}
fun
goToAnActivity
(
view
:
View
)
{
fun
goToAnActivity
(
view
:
View
)
{
//TODO: Start External activity using intent
//TODO: Start External activity using intent
// val intent = Intent(this, External::class.java)
// startActivity(intent)
}
}
companion
object
{
companion
object
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment