Skip to content

Android application implemented for SFHMMY7 and the workshop "Groovy Android and the Holy Grails"

Notifications You must be signed in to change notification settings

SFHMMY-GAHG/GAHG-Android

Repository files navigation

GAHG-Android

Android application implemented for SFHMMY7 and the workshop "Groovy Android and the Holy Grails"

Instructions

  • Adding comments for every auto-generated function in MainActivity
  • RelativeLayout changes
    • Button (add ID, w=match_parent, layout_below, text(String-->execute))
    • EditText (w=match_parent, add ID, gravity=center_horizontal, hint)
    • TextView (add ID, w=match_parent, gravity=center, h=match_parent)

----Checkpoint----

  • MainActivity again...
    • onCreate()
      • find all views (and declare them as variables)
      • set listener for button (make activity implement listener and override OnClick function)
    • onClick()
      • Log.d and Toast and run for first time
      • switch on view pressed

----Checkpoint----

* create new function Execute()
	- Load text from editText
	- check if string is not null
	- set textView with string
	- show problem with Thread.sleep(2000)

----Checkpoint - Dimitris----

* AsyncTask
	- create and copy all the code
  • Create new PreferenceActivity --> SettingsActivity + ANDROID MANIFEST
    • create directory xml and new resource --> settings_main --> PreferenceScreen/PreferenceCategory/EditTextPreference (key, title, summary)
    • addPreferenceFromRecourse (settings_main)

----Checkpoint----

  • In MainActivity
    • In Execute()
      • SharedPreferences
      • check if username is not null
      • concatenate username to string from editText

----Checkpoint----

* Add remote_settings to PreferenceActivity
	- Server IP (key, title, summary)

----Checkpoint----

EXTRAS

  • Android Icon
  • Function for SharedPreference (maybe application)

About

Android application implemented for SFHMMY7 and the workshop "Groovy Android and the Holy Grails"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published