本文整理汇总了Java中android.app.Application.getString方法的典型用法代码示例。如果您正苦于以下问题:Java Application.getString方法的具体用法?Java Application.getString怎么用?Java Application.getString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.app.Application
的用法示例。
在下文中一共展示了Application.getString方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createShareView
import android.app.Application; //导入方法依赖的package包/类
@NonNull
private static Page createShareView(Application application, ShareManager shareManager, AttachmentManager attachmentManager) {
return new Page(
SHARE_PAGE_KEY,
R.drawable.ic_share,
application.getString(R.string.share_page_title),
new ShareViewFactory(shareManager, attachmentManager),
Collections.<TargetScreen>emptySet()
);
}
示例2: createKVPage
import android.app.Application; //导入方法依赖的package包/类
@NonNull
private static Page createKVPage(Application application, KVSaver kvSaver) {
return new Page(
KEYVALUE_PAGE_KEY,
R.drawable.ic_keyvalue,
application.getString(R.string.system_info_page_title),
new KVPageFactory(kvSaver),
Collections.<TargetScreen>emptySet()
);
}
示例3: AdsManager
import android.app.Application; //导入方法依赖的package包/类
public AdsManager(Application application, @StringRes int admobApp, boolean debug) {
this(application, application.getString(admobApp), debug);
}
示例4: DownloadsDatabase
import android.app.Application; //导入方法依赖的package包/类
@Inject
public DownloadsDatabase(@NonNull Application application) {
super(application, DATABASE_NAME, null, DATABASE_VERSION);
DEFAULT_DOWNLOADS_TITLE = application.getString(R.string.untitled);
}
示例5: BookmarkDatabase
import android.app.Application; //导入方法依赖的package包/类
@Inject
public BookmarkDatabase(@NonNull Application application) {
super(application, DATABASE_NAME, null, DATABASE_VERSION);
DEFAULT_BOOKMARK_TITLE = application.getString(R.string.untitled);
}
示例6: GoogleSuggestionsModel
import android.app.Application; //导入方法依赖的package包/类
public GoogleSuggestionsModel(@NonNull Application application) {
super(application, ENCODING);
mSearchSubtitle = application.getString(R.string.suggestion);
}
示例7: BaiduSuggestionsModel
import android.app.Application; //导入方法依赖的package包/类
public BaiduSuggestionsModel(@NonNull Application application) {
super(application, ENCODING);
mSearchSubtitle = application.getString(R.string.suggestion);
}
示例8: DuckSuggestionsModel
import android.app.Application; //导入方法依赖的package包/类
public DuckSuggestionsModel(@NonNull Application application) {
super(application, ENCODING);
mSearchSubtitle = application.getString(R.string.suggestion);
}