我正在使用邮递员从我的 firestore api 获取数据
https://firestore.googleapis.com/v1beta1/projects/myapp-ef511/databases/countries
Run Code Online (Sandbox Code Playgroud)
但我明白了,虽然我的规则是公开的
{
"error": {
"code": 401,
"message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"status": "UNAUTHENTICATED"
}
}
Run Code Online (Sandbox Code Playgroud)
我怎样才能做到这一点?我计划在未来使用改造。
在我的应用程序中,我想处理用户点击PlayerView 但OnClickListener 不被调用并且不引发异常。我添加app:use_controller="false"
到 XML PlayerView。
我试图设置OnTouchListener但我需要MotionEvent.ACTION_UP被调用,这也没有发生(因为我不想在用户滚动时处理这种情况,我需要在用户点击 PlayerView 时处理这种情况)。
class FeedHolder extends RecyclerView.ViewHolder {
private TextView displayName, jobTitle, action, date, likedBy;
private ImageIndicator profile_pic;
private ImageView videoOptions, likeImage, shareImage;
private PlayerView playerView;
private WebView webView;
@SuppressLint("SetJavaScriptEnabled")
FeedHolder(View itemView) {
super(itemView);
profile_pic = itemView.findViewById(R.id.profile_pic);
likedBy = itemView.findViewById(R.id.tv_like_by);
date = itemView.findViewById(R.id.tv_date);
likeImage = itemView.findViewById(R.id.img_like);
shareImage = itemView.findViewById(R.id.img_share);
displayName = itemView.findViewById(R.id.tv_display_name);
jobTitle = itemView.findViewById(R.id.tv_job_title);
action = itemView.findViewById(R.id.btn_action);
videoOptions = itemView.findViewById(R.id.video_options);
playerView = itemView.findViewById(R.id.exo_player);
webView = …Run Code Online (Sandbox Code Playgroud) 我使用主题而不是布局来显示启动画面,但我很困惑为不同的屏幕密度设置的分辨率图像,因为<item>标签的宽度和高度属性可用API> 22.
背景drawable
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/colorAccent" />
<item >
<bitmap
android:gravity="center"
android:src="@drawable/splash_logo" />
</item>
</layer-list>
Run Code Online (Sandbox Code Playgroud)
样式
<style name="SplashTheme" parent="Theme.AppCompat.NoActionBar">
<item name="android:windowBackground">@drawable/splash_background</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorPrimary">@color/colorPrimary</item>
</style>
Run Code Online (Sandbox Code Playgroud) 如果我在公共模式下使用 firebase 实时数据库发布我的 android 应用程序会怎样,因为我不需要任何身份验证。它说
公共访问使您的数据库对任何人开放,即使是不使用您的应用程序的人,因此在设置身份验证时一定要再次限制您的数据库。
如果他们的应用程序未连接到我的数据库并且他们也没有 firebase 帐户的登录密码,我不清楚如何访问我的数据库。
提前谢谢
android firebase firebase-security firebase-realtime-database
我正在尝试通过执行与我的子树的更新同步
git pull -s subtree react master
但是整个存储库被复制到错误的文件夹中,而不是我在添加新存储库作为子树时提到的文件夹。
如何删除子树或更改子树的目录?