netsurfers.gicp.net.common
类 Tools

java.lang.Object
  继承者 netsurfers.gicp.net.common.Tools

public class Tools
extends Object

Class tools include some tools for example message box

作者:
Ziliang Wang, E-mail: Lional.King@gmail.com

字段摘要
static String[][] mRandomName
           
 
构造方法摘要
Tools()
           
 
方法摘要
static void AlertDialog(Context ctx, CharSequence title, CharSequence message)
          Helper Alert will be created
static int getRandom(int maxvalue)
          You can get a random number from 0 to max value
static void launchBrowser(Context ctx, String url)
          Start a new activity which include action view
static void MessageBox(Context ctx, String text)
          Message box will be created
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

mRandomName

public static String[][] mRandomName
构造方法详细信息

Tools

public Tools()
方法详细信息

getRandom

public static int getRandom(int maxvalue)
You can get a random number from 0 to max value

参数:
maxvalue - The max of the random number
返回:
Return a random number

launchBrowser

public static void launchBrowser(Context ctx,
                                 String url)
Start a new activity which include action view

参数:
ctx - The context of this activity
url - The URI of this activity

MessageBox

public static void MessageBox(Context ctx,
                              String text)
Message box will be created

参数:
ctx - The context of this toast
text - The text of this toast

AlertDialog

public static void AlertDialog(Context ctx,
                               CharSequence title,
                               CharSequence message)
Helper Alert will be created

参数:
ctx - The context of this alert dialog
title - The title of this alert dialog
message - The message of this alert dialog