com.main.campustream
Class Campustream

java.lang.Object
  extended by Activity
      extended by com.main.campustream.Campustream

public class Campustream
extends Activity

Author:
Bryan Crabtree

Field Summary
static java.lang.String accessToken
           
static java.lang.String currentProfileUsername
           
static java.lang.String hashedPassword
           
static java.lang.String newsAsker
           
static java.lang.String newsCategory
           
static java.lang.String newsCategoryTitle
           
static java.lang.String newsID
           
static java.lang.String newsMessage
           
static java.lang.String newsReply
           
static java.lang.String newsSection
           
static java.lang.String newsTitle
           
static java.lang.Boolean notifications
           
static java.lang.String password
           
static java.lang.String[] profileAvatars
           
static java.lang.String[] profileAvatarStatuses
           
static Drawable[] profileIcons
           
static java.lang.String questionAsker
           
static java.lang.String questionCategoryTitle
           
static java.lang.String questionID
           
static java.lang.String questionMessage
           
static java.lang.String questionSection
           
static java.lang.String questionTitle
           
static java.lang.Boolean rememberMe
           
static java.lang.String SavedInfo
           
static java.lang.String statusID
           
static java.lang.String username
           
 
Constructor Summary
Campustream()
           
 
Method Summary
 java.lang.String authenticate()
          Authenticates the user.
static java.lang.String correctString(java.lang.String message)
          Replaces invalid characters in a string.
static Bitmap DownloadImage(java.lang.String URL)
          Downloads an image from the specified URL.
 void onCreate(Bundle savedInstanceState)
           
static java.io.InputStream OpenHttpConnection(java.lang.String urlString)
          Opens an HTTP connection with the specified URL.
static java.lang.String removeTags(java.lang.String message)
          Removes text tags from a string.
 void userLogin(View button)
          Called when the user presses the "Login" button.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SavedInfo

public static final java.lang.String SavedInfo
See Also:
Constant Field Values

username

public static java.lang.String username

password

public static java.lang.String password

hashedPassword

public static java.lang.String hashedPassword

accessToken

public static java.lang.String accessToken

rememberMe

public static java.lang.Boolean rememberMe

notifications

public static java.lang.Boolean notifications

currentProfileUsername

public static java.lang.String currentProfileUsername

profileAvatars

public static java.lang.String[] profileAvatars

profileAvatarStatuses

public static java.lang.String[] profileAvatarStatuses

profileIcons

public static Drawable[] profileIcons

questionCategoryTitle

public static java.lang.String questionCategoryTitle

questionSection

public static java.lang.String questionSection

questionID

public static java.lang.String questionID

questionTitle

public static java.lang.String questionTitle

questionMessage

public static java.lang.String questionMessage

questionAsker

public static java.lang.String questionAsker

newsCategoryTitle

public static java.lang.String newsCategoryTitle

newsSection

public static java.lang.String newsSection

newsCategory

public static java.lang.String newsCategory

newsID

public static java.lang.String newsID

newsReply

public static java.lang.String newsReply

newsTitle

public static java.lang.String newsTitle

newsMessage

public static java.lang.String newsMessage

newsAsker

public static java.lang.String newsAsker

statusID

public static java.lang.String statusID
Constructor Detail

Campustream

public Campustream()
Method Detail

onCreate

public void onCreate(Bundle savedInstanceState)

userLogin

public void userLogin(View button)
Called when the user presses the "Login" button.

Parameters:
button -

authenticate

public java.lang.String authenticate()
Authenticates the user.

Returns:

OpenHttpConnection

public static java.io.InputStream OpenHttpConnection(java.lang.String urlString)
                                              throws java.io.IOException
Opens an HTTP connection with the specified URL.

Parameters:
urlString -
Returns:
Throws:
java.io.IOException

DownloadImage

public static Bitmap DownloadImage(java.lang.String URL)
Downloads an image from the specified URL.

Parameters:
URL -
Returns:

correctString

public static java.lang.String correctString(java.lang.String message)
Replaces invalid characters in a string.

Parameters:
message -
Returns:

removeTags

public static java.lang.String removeTags(java.lang.String message)
Removes text tags from a string.

Parameters:
message -
Returns: