android - Start an app from a running background service -


just wondering if possible launch install application background service. have packagename well.

an installed application can invoked using packagemanager class

startactivity(backgroundservice.this.getpackagemanager()                 .getlaunchintentforpackage(packagename)                 .setflags(intent.flag_activity_new_task)); 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -