es.ugr.swad.swadroid
Class MenuExpandableListActivity

java.lang.Object
  extended by ExpandableListActivity
      extended by es.ugr.swad.swadroid.MenuExpandableListActivity
Direct Known Subclasses:
MyGroupsManager, Rollcall, SWADMain

public class MenuExpandableListActivity
extends ExpandableListActivity

Superclass for add the options menu to all children classes of ExpandableListActivity

Author:
Juan Miguel Boyero Corral , Antonio Aguilera Malagon , Helena Rodriguez Gijon

Field Summary
protected static DataBaseHelper dbHelper
          Database Helper.
protected static Preferences prefs
          Application preferences.
 
Constructor Summary
MenuExpandableListActivity()
           
 
Method Summary
protected  void cleanDatabase()
          Deletes notifications and tests data from database
protected  void error(java.lang.String message)
          Shows an error message.
protected  void onCreate(Bundle savedInstanceState)
           
 boolean onCreateOptionsMenu(Menu menu)
           
protected  void onDestroy()
           
 boolean onOptionsItemSelected(MenuItem item)
           
protected  void onPause()
           
protected  void onResume()
           
protected  void onStart()
           
protected  void rateApplication()
          Rates the application in Android Market
protected  void setMenuDbClean()
           
protected  void shareApplication()
          Shares the application through the Android sharing options
 void showDialog(int title, int message)
          Shows a dialog.
protected  void viewPreferences()
          Shows Preferences screen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prefs

protected static Preferences prefs
Application preferences.


dbHelper

protected static DataBaseHelper dbHelper
Database Helper.

Constructor Detail

MenuExpandableListActivity

public MenuExpandableListActivity()
Method Detail

onStart

protected void onStart()

viewPreferences

protected void viewPreferences()
Shows Preferences screen


shareApplication

protected void shareApplication()
Shares the application through the Android sharing options


rateApplication

protected void rateApplication()
Rates the application in Android Market


cleanDatabase

protected void cleanDatabase()
Deletes notifications and tests data from database


error

protected void error(java.lang.String message)
Shows an error message.

Parameters:
message - Error message to show.

showDialog

public void showDialog(int title,
                       int message)
Shows a dialog.


onCreateOptionsMenu

public boolean onCreateOptionsMenu(Menu menu)

onOptionsItemSelected

public boolean onOptionsItemSelected(MenuItem item)

onCreate

protected void onCreate(Bundle savedInstanceState)

onDestroy

protected void onDestroy()

onPause

protected void onPause()

onResume

protected void onResume()

setMenuDbClean

protected void setMenuDbClean()