How to open application with notification from LocalNotifications plugin in PhoneGap
2012-11-27 16:18
405 查看
在phonegap plugin 的localnotification的AlarmReciever.java文件中。
将
mainActivity 是你的主类也是就是入口类
此处修改后你点击信息后直接打开你的应用程序。
将
final PendingIntent contentIntent = PendingIntent.getActivity(context, 0, new Intent(), 0);
替换为:
final PendingIntent contentIntent = PendingIntent.getActivity(context, 0, new Intent(context,mainActivity.class), 0);
mainActivity 是你的主类也是就是入口类
此处修改后你点击信息后直接打开你的应用程序。
相关文章推荐
- How to make Office VBA code interact with a VSTO application-level add-in
- How to get the password text in a text with password property from another process using C++ - 用C++如何从不同进程获取密码框文本
- How to open a web site with the default web browser in a NEW window
- How to avoid Excel from prompting "The file you are trying to open, , is in a different format than specified by the file extension"? (转)
- How to open/read/write a local file from an applet
- How to debug c++ console application with argument in visual studio 2012
- How to open another page in HTML5 Builder Server Mobile Application
- How to access local directory with script executed in oozie?
- How to use plugin audio codecs in OpenH323 and OPAL
- ZZ: How to remove 'Open in Windows Explorer' from the 'Actions Menu'
- How to resolve "your security settings have blocked an untrusted application from running" in Mac
- How to resolve "your security settings have blocked an untrusted application from running" in Mac
- How to change the name in open with list / File association.
- how to do graphics in java(quote from big java, 5e)?
- How to display values with in piechart using Jfreechart(values in sector )
- how to query name server with command line in Windows.
- How to use GET and POST methods in HTTP from a MIDlet
- This application failed to start because it could not find or load the Qt platform plugin "xcb" in "