小编ojo*_*ifu的帖子

如何以编程方式获取Firebase中的注册用户列表

我正在开发一个基于Firebase的Android应用程序,我正在创建使用用户身份验证的电子邮件地址和密码方法signInWithEmailAndPassword注册,我可以注册多个用户,还可以在Firebase控制台上查看用户.但是,我想获取Firebase Auth上所有注册用户的列表.我可以使用当前用户FirebaseAuth.getInstance().getCurrentUser().但是,我想列出所有注册用户.那么,无论如何我可以获得注册用户列表吗?

android firebase firebase-authentication

14
推荐指数
1
解决办法
3万
查看次数

如何在将android studio从2.2.3更新到2.3后修复"Gradle的依赖缓存可能已损坏"错误?

在此输入图像描述

> Error:Failed to open zip file. Gradle's dependency cache may be
> corrupt (this sometimes occurs after a network connection timeout.) <a
> href="syncProject">Re-download dependencies and sync project (requires
> network)</a> <a href="syncProject">Re-download dependencies and sync
> project (requires network)</a>
Run Code Online (Sandbox Code Playgroud)

android

14
推荐指数
3
解决办法
4万
查看次数

如何将两个EditText放在同一行中

我想问你,我怎么能把两个EditText放在同一条线上?

xml android android-edittext

12
推荐指数
2
解决办法
1万
查看次数

是否可以从Firebase同步加载数据?

我正在尝试使用通过Firebase连接的对等方获取的数据来更新我的Android应用中的WebView部分.为此,执行将返回所需数据的阻塞操作可能会有所帮助.例如,Chat示例的实现将等待另一个聊天参与者在push.setValue()返回之前写入某些内容.Firebase可以实现这样的行为吗?

android firebase firebase-realtime-database

12
推荐指数
3
解决办法
1万
查看次数

无法构建PlusClient

    import com.google.android.gms.common.ConnectionResult;
    import com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks;
    import com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener;
    import com.google.android.gms.plus.GooglePlusUtil;
    import com.google.android.gms.plus.PlusClient;
    import android.os.Bundle;
    import android.app.Activity;
    import android.app.ProgressDialog;
    import android.content.Intent;
    import android.content.IntentSender.SendIntentException;
    import android.util.Log;
    import android.view.Menu;
    import android.view.View;
    import android.widget.Button;
    import android.widget.Toast;

    public class MainActivity extends Activity implements ConnectionCallbacks,
            OnConnectionFailedListener {

        private static final int REQUEST_CODE_RESOLVE_ERR = 7;
        private ProgressDialog mConnectionProgressDialog;
        private PlusClient mPlusClient;
        private ConnectionResult mConnectionResult;
        private String TAG = "GmailLogin";

        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main);

            int errorCode = GooglePlusUtil.checkGooglePlusApp(this);
            if (errorCode != GooglePlusUtil.SUCCESS) {
                GooglePlusUtil.getErrorDialog(errorCode, this, 0).show(); …
Run Code Online (Sandbox Code Playgroud)

android google-plus

11
推荐指数
3
解决办法
2万
查看次数

在Android中存储用户登录凭据的最佳位置

我正在创建一个Android应用程序,我不能(?)找到有关在Google App Engine上验证应用程序用户的任何信息(不使用用户的Google帐户).在Android设备上存储用户名和密码是一种很好的做法.然后将应用程序使用的数据存储在Google App Engine上?

google-app-engine android

11
推荐指数
1
解决办法
2万
查看次数

如何查看电子邮件是否已在Firebase简单登录中注册?

我正在使用firebase(使用Angularfire)来获取html5手机应用程序.用户仅在开始屏幕中输入他们的电子邮件,然后,根据该电子邮件是否已经注册,用户分别被重定向到登录或注册页面.对于step1,我们如何查询firebase简单登录以确定电子邮件是否已注册?

html5 firebase firebase-security angularfire

11
推荐指数
2
解决办法
1万
查看次数

错误:任务':后端:appengineEndpointsGetClientLibs执行失败

使用Google App Engine Java模板模板将Google Cloud Endpoint后端添加到Android应用时,会向项目中添加两个类(以及其他内容).

然后我们鼓励我们根据自己的要求修改这些类.所以,我决定删除模型类(MyBean)和端点类(MyEndpoint),并用我自己的类替换它们.当我尝试重建/清理项目时,收到错误消息:

 Error:Execution failed for task ':backend:appengineEndpointsGetClientLibs'.    
 There was an error running endpoints command get-client-lib:  
 <package-name>.MyEndpoint
Run Code Online (Sandbox Code Playgroud)

我找了几个小时来解决这个问题,直到找到原因.所以我决定分享它,因为这个问题甚至不存在于SO(请纠正我,如果我错了)

google-app-engine android google-cloud-endpoints

10
推荐指数
1
解决办法
3035
查看次数

片段重叠工具栏的布局

使用以下代码替换/将我的Fragment放在DrawerLayout的FrameLayout中:

<?xml version="1.0" encoding="utf-8"?>
  <android.support.v4.widget.DrawerLayout      
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools"
  android:id="@+id/drawer_layout"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:fitsSystemWindows="true"
  tools:openDrawer="start">


<include
    layout="@layout/app_bar_base"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />


<FrameLayout
    android:id="@+id/container"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />


<!--drawer items-->
<android.support.design.widget.NavigationView
    android:id="@+id/nav_view"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:layout_gravity="start"
    android:fitsSystemWindows="true"
    app:headerLayout="@layout/nav_header_base"
    app:menu="@menu/activity_base_drawer" />

 </android.support.v4.widget.DrawerLayout>
Run Code Online (Sandbox Code Playgroud)

app_bar_base.xml 包含工具栏和FAB:

<?xml version="1.0" encoding="utf-8"?>
    <android.support.design.widget.CoordinatorLayout  
     xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:app="http://schemas.android.com/apk/res-auto"
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:fitsSystemWindows="true"
     tools:context=".BaseActivity">

<android.support.design.widget.AppBarLayout
    android:layout_width="match_parent"
    android:id="@+id/appBar"
    android:layout_height="wrap_content"
    android:theme="@style/AppTheme.AppBarOverlay">

    <android.support.v7.widget.Toolbar
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        android:background="?attr/colorPrimary"
        app:popupTheme="@style/AppTheme.PopupOverlay" />

</android.support.design.widget.AppBarLayout>



<android.support.design.widget.FloatingActionButton
    android:id="@+id/fab"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="bottom|end"
    android:layout_margin="@dimen/fab_margin"
    android:src="@android:drawable/ic_dialog_email" />

</android.support.design.widget.CoordinatorLayout>
Run Code Online (Sandbox Code Playgroud)

当我运行我的应用程序时,结果如下:

在此输入图像描述

如您所见,片段的布局与工具栏重叠.如何解决这个问题?

我已经尝试将Toolbar和FrameLayout放在LinearLayout中,如下所示:

 <LinearLayout
    android:layout_width="match_parent"
    android:orientation="vertical"
    android:layout_height="match_parent">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"> …
Run Code Online (Sandbox Code Playgroud)

android

10
推荐指数
4
解决办法
2万
查看次数

抛出异常:FormatException: Invalid radix-10 number

尝试从TextFormFeild. 我已经多次使用这个小部件,但我没有在任何时候收到这个错误。有人知道具体是什么意思吗?

这将是一个很大的帮助。以下只是整个(1084 行)代码的一部分,我认为错误可能是:(我还初始化了controller:'bowlerIndexController = new TextEditingController(text: "");':/)...

 void changeBowler(BuildContext context) {
showDialog(
    context: context,
    builder: (context) {
      return new SimpleDialog(
        title: new Text("Who is bowling next?",
            style:
                new TextStyle(fontSize: 18.0, fontWeight: FontWeight.bold)),
        children: <Widget>[
          new Column(
            children: List<Widget>.generate(teamBowling.length, (index) {
              return Padding(
                padding: const EdgeInsets.all(8.0),
                child: new Row(
                  children: <Widget>[
                    new Padding(
                      padding: new EdgeInsets.all(2.0),
                      child: new Text(
                        (index + 1).toString(),
                        style: new TextStyle(fontSize: 15.0),
                      ),
                    ),
                    new Text(teamBowling[index].player["Name"],
                        style: new TextStyle(
                            fontSize: 18.0, fontWeight: …
Run Code Online (Sandbox Code Playgroud)

radix dart flutter

10
推荐指数
1
解决办法
2万
查看次数