Class MainActivity


  • public class MainActivity
    extends Activity
    • Field Detail

      • MAINAPP_CUSTOM_REFRESH_ACTION

        public static final java.lang.String MAINAPP_CUSTOM_REFRESH_ACTION
        See Also:
        Constant Field Values
      • MAINAPP_SSL_ERROR

        public static final java.lang.String MAINAPP_SSL_ERROR
        See Also:
        Constant Field Values
      • MAINAPP_SHOW_PROGRESS

        public static final java.lang.String MAINAPP_SHOW_PROGRESS
        See Also:
        Constant Field Values
      • MAINAPP_HIDE_PROGRESS

        public static final java.lang.String MAINAPP_HIDE_PROGRESS
        See Also:
        Constant Field Values
      • hourMinuteSecondMilliSecDateFormat

        public final java.text.SimpleDateFormat hourMinuteSecondMilliSecDateFormat
    • Constructor Detail

      • MainActivity

        public MainActivity()
    • Method Detail

      • onPause

        protected void onPause()
      • onSaveInstanceState

        public void onSaveInstanceState​(Bundle savedInstanceState)
      • onRestoreInstanceState

        public void onRestoreInstanceState​(Bundle restoreInstanceState)
      • onResume

        protected void onResume()
      • onDestroy

        protected void onDestroy()
      • onCreate

        protected void onCreate​(Bundle savedInstanceState)
      • loadStationsData

        public void loadStationsData()
      • displayUpdateTime

        public void displayUpdateTime​(CurrentWeatherInfo currentWeatherInfo)
      • displayWeatherForecast

        public void displayWeatherForecast​(CurrentWeatherInfo weatherCard)
      • displayWeatherForecast

        public void displayWeatherForecast()
      • getWeatherForecast

        public void getWeatherForecast()
      • forcedWeatherUpdate

        public void forcedWeatherUpdate()
      • getColorFromResource

        public static int getColorFromResource​(Context context,
                                               int id)
      • setOverflowMenuItemColor

        public static void setOverflowMenuItemColor​(Context context,
                                                    Menu menu,
                                                    int id,
                                                    int string_id)
      • onCreateOptionsMenu

        public boolean onCreateOptionsMenu​(Menu menu)
      • onMenuOpened

        public boolean onMenuOpened​(int featureID,
                                    Menu menu)
      • onOptionsMenuClosed

        public void onOptionsMenuClosed​(Menu menu)
      • onOptionsItemSelected

        public boolean onOptionsItemSelected​(MenuItem mi)
      • showAboutDialog

        public void showAboutDialog()
      • showWhatsNewDialog

        public void showWhatsNewDialog()
      • deleteAreaDatabase

        public static void deleteAreaDatabase​(Context context)
      • askDialog

        public static void askDialog​(Context context,
                                     java.lang.Integer icon,
                                     java.lang.String title,
                                     java.lang.String[] text,
                                     DialogInterface.OnClickListener positiveListener)
      • onRequestPermissionsResult

        public void onRequestPermissionsResult​(int permRequestCode,
                                               java.lang.String[] perms,
                                               int[] grantRes)
      • onTrimMemory

        public void onTrimMemory​(int level)
      • standardizeGeo

        public java.lang.String standardizeGeo​(java.lang.String s)