小编Pra*_*nik的帖子

在Android工作室刷新远程Git分支

远程存储库中有一个新分支,但它不会出现在android studio的git分支中.如何刷新该列表以显示新分支?

我试过git branch -r 但是新的分支没有显示在列表中.

git android refresh remote-branch android-studio

22
推荐指数
2
解决办法
8746
查看次数

在测试应用更新时,安装无提示阻止Android版本构建签名APK

当我尝试更新我的应用程序(在已经从playstore安装的应用程序上手动安装带有更高版本的已签名APK)时,它未安装("未安装应用程序")并在Studio中显示以下错误:

I/Finsky: [1144] com.google.android.finsky.verifier.impl.en.c(263): Verifying id=8, result=-1
I/Finsky: [1144] com.google.android.finsky.verifier.impl.dq.a(37): 
Installation silently blocked for com.somename.somename
I/Finsky: [1] com.google.android.finsky.verifier.impl.en.c(139): Verification 
complete: id=8, package_name=com.somename.somename
V/ActivityThread: SVC-Destroying service 
com.google.android.finsky.verifier.impl.PackageVerificationService@995aa6e
V/ActivityManager: Broadcast: Intent { 
act=com.android.packageinstaller.ACTION_INSTALL_COMMIT flg=0x10 (has extras) 
} ordered=false userid=0 callerApp=null
V/ActivityManager: Broadcast: Intent { 
act=com.google.android.gms.safetynet.action.HARMFUL_APP_BLOCKED flg=0x10 } 
ordered=false userid=0 callerApp=ProcessRecord{6b6f45e 
1758:com.google.android.gms/u0a13}
D/InstallAppProgress: Installation error code: 3
Run Code Online (Sandbox Code Playgroud)

com.somename.somename我的包名在哪里

在Playstore上运行的应用程序已签名v1 signature,并且新生成的签名APK也是使用v1 signature.

compileSdkVersion 23 buildToolVersion 26.0.1 targetSdkVersion 23

对于SDK Versions >= M 我查了一下"应用",在"设置"尝试"卸载所有用户",但应用程序没有列在那里(因此被完全卸载)

因为SDK Versions < M …

android updates failed-installation

20
推荐指数
1
解决办法
5202
查看次数

Facebook Fresco使用wrap_content

我有一堆drawables,我想用壁画加载,我想使用wrap_content这些图像的大小,我怎么能在壁画的xml中做到这一点?或者,如果不可能使用xml,您如何在代码中执行此操作?

<com.facebook.drawee.view.SimpleDraweeView
          android:id="@+id/myImage"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          fresco:placeholderImage="@mipmap/myImage"/>
Run Code Online (Sandbox Code Playgroud)

除非我设置固定大小,否则上述代码无效.

android facebook fresco

15
推荐指数
2
解决办法
8730
查看次数

Facebook为电子邮件和生日返回undefined

我试图使用Facebook的API,提供first_name,last_name,gender,email,birthday在我的网站上注册.我使用了Graph API并生成了具有必要范围的访问令牌.我尝试在我创建应用程序的个人帐户中正确返回字段,但对于FB测试用户和朋友的帐户,它返回电子邮件和生日为"未定义".在graph.facebook.com中,它显示了朋友帐户的以下错误.

在此输入图像描述

Facebook在doulingo上返回我朋友的同一帐户的电子邮件ID.

我是否错误地设置了权限,还是有任何其他问题?

email jquery scope facebook-graph-api facebook-access-token

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

如何在Web应用程序中使用jquery播放所有格式的视频

我有一个Web应用程序,用户可以上传所有格式的视频.我尝试过HTML5视频标签,但它只播放仅适用于chrome的mp4文件.我也尝试过videojs插件,它也播放mp4文件.我应该将视频转换为mp4格式还是有任何播放所有类型视频的jquery视频插件?

video jquery html5-video

9
推荐指数
0
解决办法
994
查看次数

gradle中依赖项的动态版本(使用+)

compile 'com.localytics.android:library:3.8+'在我的项目中使用.
我想知道在创建发行版apk时或每次用户打开应用程序(从playstore下载)时都会选择此依赖项的最新版本.

dependencies android versions build.gradle android-gradle-plugin

8
推荐指数
0
解决办法
1126
查看次数

无法在Android应用程序中安装Fabric插件的数字

如果我试图在eclipse中从fabric插件安装数字,它会显示进度条,如下面的屏幕截图所示.它永远不会成功.

在此输入图像描述

eclipse android twitter-fabric

5
推荐指数
0
解决办法
233
查看次数

调用popBackStack()时屏幕冻结

我有两个片段A和B.
我已使用以下代码从A切换到B:

    FragmentManager fragmentManager;
    FragmentTransaction transaction;
    fragmentManager = getActivity().getFragmentManager();
    transaction = fragmentManager.beginTransaction();
    transaction.setCustomAnimations(R.animator.enter_anim, R.animator.exit_anim,R.animator.popenter, R.animator.popexit);
    transaction.replace(R.id.fragmentLayout, new B())
            .addToBackStack("tag").commit();
Run Code Online (Sandbox Code Playgroud)

B包含SQLite操作(SugarORM).
从A切换到B时,即使我使用AsyncTask&IntentService进行数据库操作,屏幕也会冻结.
此外,当我按后退按钮[ getFragmentManager().popBackStack();]键,屏幕冻结了几秒钟,它切换从B.回A之前
popBackStack动画太不可见.
我尝试在imageview中显示不确定的进度条和动画列表,但它们也冻结了,看起来好像它们是静态图像.

android freeze fragment fragment-backstack

5
推荐指数
0
解决办法
636
查看次数

使用 Glide 库显示模糊图像

我正在尝试使用Glide显示模糊图像,但显示错误图像。我不知道为什么会显示错误图像。URL工作正常,但仍然只显示错误图像

这是我的代码

 Glide.with(context)
                .load("http://www.gadgetsaint.com/wp-content/uploads/2016/11/cropped-web_hi_res_512.png")
                .diskCacheStrategy(DiskCacheStrategy.NONE)
                .bitmapTransform(new BlurTransformation(context))
                .error(R.drawable.error_image)
                .into(imageView);
Run Code Online (Sandbox Code Playgroud)

模糊转换类:

public class BlurTransformation extends BitmapTransformation {

private RenderScript rs;

public BlurTransformation(Context context) {
    super(context);

    rs = RenderScript.create(context);
}

@SuppressLint("NewApi")
@Override
protected Bitmap transform(BitmapPool pool, Bitmap toTransform, int outWidth, int outHeight) {
    Bitmap blurredBitmap = toTransform.copy(Bitmap.Config.ARGB_8888, true);

    // Allocate memory for Renderscript to work with
    Allocation input = Allocation.createFromBitmap(
            rs,
            blurredBitmap,
            Allocation.MipmapControl.MIPMAP_FULL,
            Allocation.USAGE_SHARED
    );
    Allocation output = Allocation.createTyped(rs, input.getType());

    // Load up an instance of the specific …
Run Code Online (Sandbox Code Playgroud)

android android-glide

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