在商品屏幕中,我可以添加一个ProductOffer的子网格.我有一个PreCreate ProductOffer插件,它检查一些条件以显示错误消息并停止创建.
所以在这个插件中我添加了:
throw new InvalidPluginExecutionException("My message");
Run Code Online (Sandbox Code Playgroud)
但是没有显示对话框消息,而是在子网格上面显示错误通知,并显示消息:" ISV代码中止了操作 ".
请告诉我为什么我的信息没有显示?以及如何解决这个问题?
非常感谢你.
我有两个应用程序,一个作为主应用程序,另一个作为服务.在服务应用清单文件中,我配置了如下服务:
<service android:name=".services.FirstService">
<intent-filter>
<action android:name="ch.service.action.FIRST_SERVICE"/>
</intent-filter>
</service>
Run Code Online (Sandbox Code Playgroud)
在主应用程序中,我启动了一项服务:
Intent intent = new Intent("ch.service.action.FIRST_SERVICE");
startService(intent);
Run Code Online (Sandbox Code Playgroud)
在这里,我必须复制"ch.service.action.FIRST_SERVICE".我怎么能避免这个?我如何分享一些常见的常量,例如在服务应用中定义一个,并且可以在主应用中检索?
任何答案都表示赞赏.