<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>6 Jul 2015 02:06:00 Z</lastBuildDate><pubDate>28 Jun 2015 00:48:00 Z</pubDate><description>I have an application where a persistent thread shot and generates a notification when a new event arrives. All this does it very well.&#13;
&#13;
I need that shot when the notification prompted the application is in the background and to the foreground so that the user sees.&#13;
&#13;
I have this procedure but has errors&#13;
&#13;
&#13;
public void startNewActivity(Context context, String packageName) {&#13;
Intent intent = context.getPackageManager().getLaunchIntentForPackage(packageName);&#13;
if (intent != null) {&#13;
// We found the activity now start the activity&#13;
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);&#13;
context.startActivity(intent);&#13;
} else {&#13;
// Bring user to the market or let them choose an app?&#13;
intent = new Intent(Intent.ACTION_VIEW);&#13;
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);&#13;
intent.setData(Uri.parse("market://details?id=" + packageName));&#13;
context.startActivity(intent);&#13;
}&#13;
}&#13;
&#13;
&#13;
Thanks for your help&#13;
Tobias</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52915-bring-application-wdm/read.awp</link><title>bring up my application WDM 18</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52915-bring-application-wdm-52972/read.awp</comments><pubDate>6 Jul 2015 02:06:00 Z</pubDate><description>Danny thank you very much&#13;
&#13;
It is just what was wanted, everything worked perfectly.&#13;
&#13;
Thanks Danny&#13;
&#13;
Tobias :spos::)</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52915-bring-application-wdm-52972/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52915-bring-application-wdm-52972/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52915-bring-application-wdm/read.awp">bring up my application WDM 18</source><title>Re: bring up my application WDM 18</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52915-bring-application-wdm-52924/read.awp</comments><pubDate>29 Jun 2015 17:07:00 Z</pubDate><description>Tobias,&#13;
&#13;
I'm not sure it is perfect, but this does work correctly for my Android application&#13;
&#13;
public static void JBringAppTo…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52915-bring-application-wdm-52924/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52915-bring-application-wdm-52924/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52915-bring-application-wdm/read.awp">bring up my application WDM 18</source><title>Re: bring up my application WDM 18</title></item></channel></rss>
