Android程序开机自动后台运行,如何不让界面显示

Android程序开机自动后台运行,怎么不让界面显示啊
希望Android程序开机自动在后台运行,但程序本身有活动和Service,程序入口是活动,怎么让开机启动后界面自动隐藏啊,如下是本人的代码,但活动界面会显示出来。望高手指点啊。
public void onReceive(Context context, Intent intent) {
if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) {
Intent newIntent = new Intent(context, WelcomeActivity.class);
newIntent.setAction("android.intent.action.MAIN");
newIntent.addCategory("android.intent.category.LAUNCHER");
newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);// 注意,必须添加这个标记,否则启动会失败
context.startActivity(newIntent);// }

------解决方案--------------------
不要启动activity,启动service即可

        Intent intent2 = new Intent(context,xxxService.class);
context.startService(intent2);

------解决方案--------------------
引用:
因为入口活动界面里有用户是否注册等等的逻辑判断的

全部放到service里面执行判断。
------解决方案--------------------
开机只启动service啊,activity可以在触发了某种条件下显示撒