我的应用程序中有function Write-HostCenter { param($Message) Write-Host ("{0}{1}" -f (' ' * (([Math]::Max(0, $Host.UI.RawUI.BufferSize.Width / 2) - [Math]::Floor($Message.Length / 2)))), $Message) }
Write-HostCenter '*'
Write-HostCenter '***'
Write-HostCenter '*****'
,共享按钮打开共享意图:
Service
从我的服务类调用它,我得到了Intent dialogIntent = new Intent(android.content.Intent.ACTION_SEND);
dialogIntent.addCategory(Intent.CATEGORY_LAUNCHER);
dialogIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
dialogIntent.setType("text/plain");
dialogIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, ytf.getTitle());
startActivity(dialogIntent);
:
Exception
知道问题在哪里?
答案 0 :(得分:3)
知道问题在哪里?
删除此行:
{{1}}