|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectActivity
com.blogspot.applications4android.comicreader.core.ComicActivity
public class ComicActivity
Useful class for defining some of the common things for all the activities used in this application.
Field Summary | |
---|---|
protected static int |
mColor1
color1 for the list view row |
protected static int |
mColor2
color2 for the list view row |
Constructor Summary | |
---|---|
ComicActivity()
|
Method Summary | |
---|---|
protected void |
displayHtml(int layout_id,
int web_view_id,
java.lang.String page)
Set the content view and display a html page. |
protected void |
ExitActivity(View v)
Exit from this activity. |
void |
hideResetButton()
Hide the reset button which comes when double-tap is succeeded |
protected void |
onPause()
Called when the activity is finished. |
protected void |
onResume()
Called when the activity is first created. |
protected ComicClassList |
setupComicsList(java.lang.String pref)
Helper function to setup the comic list |
void |
showResetButton()
Display the reset button which comes when double-tap is succeeded |
protected void |
storeComicClassList(ComicClassList list,
boolean store)
Helper function to store the list of comics |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static int mColor1
protected static int mColor2
Constructor Detail |
---|
public ComicActivity()
Method Detail |
---|
public void hideResetButton()
public void showResetButton()
protected void onResume()
savedInstanceState
- bundle containing saved data from a previous onPause.protected void onPause()
savedInstanceState
- bundle containing saved data from a previous onPause.protected void ExitActivity(View v)
v
- View which generated this callback.protected void displayHtml(int layout_id, int web_view_id, java.lang.String page)
layout_id
- the resource-id of the layout for which to set the content view.web_view_id
- resource-id of the webView widget where to display the html page.page
- the desired html page.protected void storeComicClassList(ComicClassList list, boolean store) throws java.io.IOException, ComicSDCardFull
list
- comic liststore
- whether to store or not
ComicSDCardFull
java.io.IOException
protected ComicClassList setupComicsList(java.lang.String pref) throws ComicSortException, ComicNotFoundException, java.io.IOException, JSONException
pref
- sort type pref-key
ComicSortException
ComicNotFoundException
JSONException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |