我正在尝试在 android 中使用 facebook 创建登录,但我遇到了这个问题。我不确定我还没有看到或设置什么。
我尝试设置应用程序令牌/客户端密码,但它一直失败。
下面是我的代码: 清单文件
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.test.app">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".SplashScreenActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".FacebookLoginActivity">
<intent-filter>
<action android:name="android.intent.action.FACEBOOK_LOGIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="@string/app_name"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
tools:replace="android:theme" />
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAINACTIVITY" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/>
</application>
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
Run Code Online (Sandbox Code Playgroud)
Facebook登录活动
package com.test.app;
public class FacebookLoginActivity extends AppCompatActivity {
private TextView …Run Code Online (Sandbox Code Playgroud) 我如何使用 java 类中介器更改 wso2 esb 中的 HTTP 方法,目前我正在使用 mc.setDoingGET(false); mc.setDoingPOX(真);我想向 ESB 发送 post 请求,然后通过 GET 发送到网络服务,反之亦然,但上述代码根本不起作用
在我的hadoop安装中,我没有找到mapred-site.xml文件,但它有mapred-site.xml.template.
我已将以下属性添加到mapred.xml.template
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>localhost:9001</value>
</property>
</configuration>
Run Code Online (Sandbox Code Playgroud)
我错过了什么吗?
核心的site.xml
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>
</property>
Run Code Online (Sandbox Code Playgroud)
HDFS-site.xml中
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
Run Code Online (Sandbox Code Playgroud)
使用这些配置:
http://localhost:50070/ : Running
http://localhost:50060/ : Not Running
http://localhost:50030/ : Not Running
Run Code Online (Sandbox Code Playgroud) 是否可以在不使用任何算术或逻辑运算符的情况下添加两个数字?
如果是这样,我该怎么办?
解:
main(){
int x=10,y=21;
char *p=x;
printf("%d" , &p[y]);
}
Run Code Online (Sandbox Code Playgroud)
由于你没有得到答案,因此Atleast不会低估这个问题.