|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectnetsurfers.gicp.net.common.Tools
public class Tools
Class tools include some tools for example message box
字段摘要 | |
---|---|
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 |
字段详细信息 |
---|
public static String[][] mRandomName
构造方法详细信息 |
---|
public Tools()
方法详细信息 |
---|
public static int getRandom(int maxvalue)
maxvalue
- The max of the random number
public static void launchBrowser(Context ctx, String url)
ctx
- The context of this activityurl
- The URI of this activitypublic static void MessageBox(Context ctx, String text)
ctx
- The context of this toasttext
- The text of this toastpublic static void AlertDialog(Context ctx, CharSequence title, CharSequence message)
ctx
- The context of this alert dialogtitle
- The title of this alert dialogmessage
- The message of this alert dialog
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |