import android.app.Activity;
import android.app.Service;
import android.app.WallpaperManager;
import android.content.Intent;
import android.os.Bundle;
public class Preview extends Activity {
public Preview() {
// TODO Auto-generated constructor stub
}
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
Intent intent = new Intent();
intent.setAction(WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER);
String pkg = Service.class.getPackage().getName();
}
}
の使い方が気になりますService.class.getPackage().getName();
。パッケージ名が取得されていることがわかります。私の質問は、Service.class の使用に関するものです。それが何を意味するか、またはどのオブジェクトがアクセスされているか。