本文整理匯總了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);
}