Skip to content
Snippets Groups Projects
Commit ecc21ba2 authored by Andrej Rasevic's avatar Andrej Rasevic
Browse files

updates

parent be1d59f6
No related branches found
No related tags found
No related merge requests found
...@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment