我是JHipster的新人。我试图找出以下一段代码,真的没有得到它
You have to add below line of code in onCreate method:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
...
FacebookSdk.sdkInitialize(this);
Uri targetUrl =
AppLinks.getTargetUrlFromInboundIntent(this, getIntent());
if (targetUrl != null) {
Log.i("Activity", "App Link Target URL: " + targetUrl.toString());
} else {
AppLinkData.fetchDeferredAppLinkData(
activity,
new AppLinkData.CompletionHandler() {
@Override
public void onDeferredAppLinkDataFetched(AppLinkData appLinkData) {
//process applink data
}
});
}
}
Refer: "https://developers.facebook.com/docs/app-invites/android?locale=it_IT"
我在哪里可以找到entity.action.word?
我正在尝试添加按钮功能。真的很困惑。请帮帮我
答案 0 :(得分:5)
这些是引用i18n JSON文件中的条目的键。对于您安装的每种语言,entity.action.edit
都在global.json
文件中,如下所示:
{
...
"entity": {
"action": {
...
"edit": "Edit"
...
}
}
...
}