小编Uri*_*kel的帖子

使用android的sip进行Android视频通话

我想在android中开发一个视频通话程序.我想过使用android 2.3.3中引入的内置sip.但是,我该如何发起视频通话?我看到它不受支持.

android sip video-streaming

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

Gradle - Android - 在应用程序审核中导致编译错误 - 放大旧依赖项

我正在尝试集成 In App Review,但收到此编译错误:

Duplicate class com.google.android.play.core.common.IntentSenderForResultStarter found in modules jetified-core-1.9.1-runtime (com.google.android.play:core:1.9.1) and jetified-core-common-2.0.0-runtime (com.google.android.play:core-common:2.0.0)
Duplicate class com.google.android.play.core.common.LocalTestingException found in modules jetified-core-1.9.1-runtime (com.google.android.play:core:1.9.1) and jetified-core-common-2.0.0-runtime (com.google.android.play:core-common:2.0.0)
Duplicate class com.google.android.play.core.common.PlayCoreDialogWrapperActivity found in modules jetified-core-1.9.1-runtime (com.google.android.play:core:1.9.1) and jetified-core-common-2.0.0-runtime (com.google.android.play:core-common:2.0.0)
Duplicate class com.google.android.play.core.listener.StateUpdatedListener found in modules jetified-core-1.9.1-runtime (com.google.android.play:core:1.9.1) and jetified-core-common-2.0.0-runtime (com.google.android.play:core-common:2.0.0)
Duplicate class com.google.android.play.core.review.ReviewInfo found in modules jetified-core-1.9.1-runtime (com.google.android.play:core:1.9.1) and jetified-review-2.0.0-runtime (com.google.android.play:review:2.0.0)
Duplicate class com.google.android.play.core.review.ReviewManager found in modules jetified-core-1.9.1-runtime (com.google.android.play:core:1.9.1) and jetified-review-2.0.0-runtime (com.google.android.play:review:2.0.0)
Duplicate class com.google.android.play.core.review.ReviewManagerFactory found in modules jetified-core-1.9.1-runtime (com.google.android.play:core:1.9.1) and jetified-review-2.0.0-runtime …
Run Code Online (Sandbox Code Playgroud)

android gradle aws-amplify-sdk-android

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

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

Android - 在外部浏览器中打开网址会导致无限循环

我的应用程序可以默认打开链接:

<category android:name="android.intent.category.BROWSABLE" />
    <data
        android:host="example.com"    
        android:scheme="http" />
    <data
        android:host="www.example.com"
        android:scheme="http" />
             ....
Run Code Online (Sandbox Code Playgroud)

现在,我的应用程序中有一个我不支持的链接.所以我在同时做的是用外部浏览器打开它.像这样:

String requestURL = "www.example.com/unsupportedlink";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(requestURL));
mActivity.startActivity(i);
Run Code Online (Sandbox Code Playgroud)

我期望它会在浏览器上打开,但是如果用户选择默认情况下应用程序打开所有链接("Allways open"而不是"Just Once"),则再次调用app并发送链接再次访问浏览器 - 它会导致无限循环.我怎么能避免这个?

android android-intent

8
推荐指数
1
解决办法
666
查看次数

如何缩短jQuery函数?

我有这个jQuery函数可以工作.除了微小的变化外,每两行是相同的.我怎样才能缩短它?

$(".c1").delay(5000).fadeOut("slow", function() {
    $("#phone").addClass("c2").fadeIn("slow", function() {
        $(".c2").delay(5000).fadeOut("slow", function() {
            $("#phone").addClass("c3").fadeIn("slow", function() {
                $(".c3").delay(5000).fadeOut("slow", function() {
                    $("#phone").addClass("c4").fadeIn("slow", function() {
                        $(".c4").delay(5000).fadeOut("slow", function() {
                            $("#phone").addClass("c5").fadeIn("slow", function() {
                                $(".c5").delay(5000).fadeOut("slow", function() {
                                    $("#phone").addClass("c6").fadeIn("slow", function() {
                                        $(".c6").delay(5000).fadeOut("slow", function() {
                                            $("#phone").addClass("c7").fadeIn("slow", function() {
                                                $(".c7").delay(5000).fadeOut("slow", function() {
                                                    $("#phone").addClass("c8").fadeIn("slow", function() {
                                                        $(".c8").delay(5000).fadeOut("slow", function() {
                                                            $("#phone").addClass("c9").fadeIn("slow", function() {
                                                                $(".c9").delay(5000).fadeOut("slow", function() {
                                                                    $("#phone").addClass("c1").fadeIn("slow");
                                                                });
                                                            });
                                                        });
                                                    });
                                                });
                                            });
                                        });
                                    });
                                });
                            });
                        });
                    });
                });
            });
        });
    });
});
});
Run Code Online (Sandbox Code Playgroud)

javascript jquery jquery-callback

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

图像中的嵌套按钮

我尝试在Android XML中的图像中放置一个常规按钮.怎么做到呢?我试过这样的事情:

<ImageView ....... 
          <Button .... />
</ImageView>
Run Code Online (Sandbox Code Playgroud)

点代表代码.显然这不是方法,因为平台引发了异常.

有人可以帮忙吗?

xml android button

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

getDefaultSharedPreferences和IntentService崩溃

我试图运行它但它崩溃时它到达getDefaultSharedPreferences().为什么?

这是首选项活动.IntentService当它被摧毁时它会发射

import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
import android.os.Bundle;
import android.preference.EditTextPreference;
import android.preference.PreferenceActivity;
import android.preference.PreferenceManager;

public class CCTDetectorActivity extends PreferenceActivity implements
        OnSharedPreferenceChangeListener {

    private SharedPreferences settings;
    static public String nameOfFile = "name_of_file";
    static public String nameOfFileDefaultValue = "detected_f.xml";
    static public String portNumber = "port_number";
    static public String portNumberDefaultValue = "25015";
    static public String keepAlive = "keep_alive";
    static public String keepAliveDefaultValue = "3";
    static public String nameOfSettings = "settings";

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState); …
Run Code Online (Sandbox Code Playgroud)

java crash android preferences intentservice

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