小编Chi*_*mar的帖子

FirebaseCloudMessaging:FirebaseInstanceId后台同步失败 - SERVICE_NOT_AVAILABLE

我在Android中使用Firebase云消息传递(FCM)API进行推送通知.当我实施那个时间完美的工作,但现在它找不到谷歌播放的服务.

错误是:

FirebaseInstanceId:后台同步失败:SERVICE_NOT_AVAILABLE,

请帮我解决一下.我在gradle文件中使用了以下依赖项.

dependencies {
    compile files('libs/ksoap2-android-assembly-3.4.0-jar.jar')
    compile 'com.android.support:appcompat-v7:23.0.0'
    compile files('libs/gson-2.2.4.jar')
    compile files('libs/activation.jar')
    compile files('libs/mail.jar')
    compile files('libs/additionnal.jar')
    compile 'com.android.support:multidex:1.0.1'
    compile 'com.facebook.android:facebook-android-sdk:4.14.0'
    compile 'com.google.firebase:firebase-messaging:9.0.2'

    compile('com.google.android.gms:play-services:9.0.2') {
        exclude group: "play-services-wallet"
        exclude module: "play-services-wallet"
        exclude group: "play-services-ads"
        exclude module: "play-services-ads"
    }

}
Run Code Online (Sandbox Code Playgroud)

感谢您抽时间阅读.

android firebase firebase-cloud-messaging

26
推荐指数
6
解决办法
4万
查看次数

Instagram分享问题:有时我收到消息"无法加载图片"

我正在使用社交应用程序的共享功能Intent.

我在Instagram上分享图片时遇到问题.

有时我收到消息

无法加载图片.

这是我的代码:

String path="content://media/external/images/media/32872";

Intent shareIntent = new Intent();
shareIntent.setType("image/jpeg");
shareIntent.setAction(Intent.ACTION_SEND);
shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(path));
shareIntent.setPackage("com.instagram.android");
startActivity(shareIntent);
Run Code Online (Sandbox Code Playgroud)

我该如何摆脱这个问题?

android android-intent instagram

9
推荐指数
2
解决办法
4120
查看次数

如何解析JSONString到数据集?

我正在使用Web服务创建一个C#应用程序.在我的Web服务中,我正在使用JSONString数据.但我无法将此字符串转换为DataSet.

JSONString是:

{
    "Table": [
        {
            "DisplayVoucherNumber": "A101239Z",
            "ActualDate": "08/07/2013",
            "AccountName": "shyamal",
            "Pcs": "50",
            "Weight": "500.000"
        }
    ],
    "Table1": [
        {
            "DisplayVoucherNumber": "R101249B",
            "ActualDate": "11/07/2013",
            "AccountName": "vipul",
            "NetWeight": "90.000",
            "Weight": "80.000",
            "Difference": "10.000"
        },
        {
            "DisplayVoucherNumber": "R101249B",
            "ActualDate": "11/07/2013",
            "AccountName": "vipul",
            "NetWeight": "500.000",
            "Weight": "100.000",
            "Difference": "400.000"
        }
    ]
}
Run Code Online (Sandbox Code Playgroud)

c# json type-conversion

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