blob: 072922898040885e5640f71de496fabca1cf987e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package net.miz_hi.smileessence.command.user;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
public class UserCommandOpenPage extends UserCommand
{
private Activity activity;
public UserCommandOpenPage(Activity activity, String userName)
{
super(userName);
this.activity = activity;
}
@Override
public String getName()
{
return "ユーザーページを開く";
}
@Override
public void workOnUiThread()
{
String userPage = "http://twitter.com/" + userName;
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(userPage));
activity.startActivity(intent);
}
}
|