小编Hug*_*ugo的帖子

在Android Developer Console中删除Beta用户列表

我在Android开发者帐户中发布了一些应用程序.其中一些是作为封闭测试版发布的,我在其中使用用户列表来授予他们使用权限.现在我有一些旧的列表,我不再需要它们了.

问题是:如何删除(如果可能)列表?我知道如何编辑它们,添加和删除用户,但如何完全删除列表?

我知道这听起来很容易,但我找不到方法.也许谷歌的某个人忘记了"删除"按钮... 因为更多人要求它或者我可能找不到它.这有点烦人,因为我的所有应用程序共享该列表,所以我必须在许多无用的列表中进行选择.

提前致谢.

android beta-testing

30
推荐指数
2
解决办法
4354
查看次数

Estimote信标区域检测从后台服务

我最近开始测试Estimote Beacons,我正在尝试在进入信标区域时从后台服务发出通知,但不幸的是我的解决方案不起作用.它不会出错,但在发现信标时不会启动通知.我不知道它是否是一些代码错误或只是这样做的方式是错误的.我已经阅读了这个其他问题,但它看起来有点不同,因为我使用的是服务而不是活动,但也许答案是类似的(应用程序上下文相关)...

这是我的服务代码

public class BeaconsMonitoringService extends Service{

    private BeaconManager beaconManager;

    private String user;

    @Override
      public void onCreate() {
        // Configure BeaconManager.
        beaconManager = new BeaconManager(this);

      }

      @Override
      public int onStartCommand(Intent intent, int flags, int startId) {
          Toast.makeText(this, "Beacons monitoring service starting", Toast.LENGTH_SHORT).show();

          user = intent.getStringExtra("user");

            // Check if device supports Bluetooth Low Energy.
            if (!beaconManager.hasBluetooth()||!beaconManager.isBluetoothEnabled()) {
              Toast.makeText(this, "Device does not have Bluetooth Low Energy or it is not enabled", Toast.LENGTH_LONG).show();
              this.stopSelf();
            }

              connectToService();


          // If we get …
Run Code Online (Sandbox Code Playgroud)

android ibeacon ibeacon-android estimote

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

使用Android Studio进行代码检查时,资源xml文件中的"命名空间未绑定"

当我在Android Studio中执行代码时,它会为我的字符串和颜色res XML文件抛出此"未绑定的XML命名空间前缀 - 命名空间未绑定".这个例如:

<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="registro">#e73020</color>
<color name="entorno">#e73020</color>
</resources>
Run Code Online (Sandbox Code Playgroud)

这不是错误,它编译和执行良好,但我想知道为什么代码检查将此标记为警告或其他内容.

我在这里读过这篇文章,但是在3年内没有完全回答,所以我决定在不同的情况下发布类似的问题.

提前致谢!

xml android android-resources android-studio

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

使用 Zxing 库生成 ean13 条码,其下方显示代码编号 Android

我正在使用 Zxing 库从带有以下代码的字符串数字代码生成条形码位图:

public Bitmap encodeAsBitmap(String contents, BarcodeFormat format, int img_width, int img_height) throws WriterException {
    String contentsToEncode = contents;
    if (contentsToEncode == null) {
        return null;
    }
    Map<EncodeHintType, Object> hints = null;
    String encoding = guessAppropriateEncoding(contentsToEncode);
    if (encoding != null) {
        hints = new EnumMap<EncodeHintType, Object>(EncodeHintType.class);
        hints.put(EncodeHintType.CHARACTER_SET, encoding);
    }
    MultiFormatWriter writer = new MultiFormatWriter();
    BitMatrix result;
    try {
        result = writer.encode(contentsToEncode, format, img_width, img_height, hints);
    } catch (IllegalArgumentException iae) {
        // Unsupported format
        return null;
    }
    int width = …
Run Code Online (Sandbox Code Playgroud)

android barcode zxing

6
推荐指数
0
解决办法
1702
查看次数

Android 5.0,如何使用Etsy StaggeredGridView将网格滚动到固定位置

我已经和Etsy的StaggeredGridView合作了一段时间,我很满意它,但现在我遇到了一个我无法解决的问题.我需要滚动到列表中的固定位置(以像素或适配器位置),我正在使用它(是的,位置正好在标题下面,你可以看到):

gridView.scrollListBy(header.getHeight());
Run Code Online (Sandbox Code Playgroud)

此外,这种gridview不支持smoothScrollBy(int,int)等平滑滚动方法.一切都运行正常,但是两天前我更新了我用于测试的一个设备(一个Nexus 7)到Android 5.0.2版本(从4.4),现在该方法不再有效,给我这个例外:

java.lang.AbstractMethodError: abstract method "void android.widget.AbsListView.fillGap(boolean)"
at android.widget.AbsListView.trackMotionScroll(AbsListView.java:4968)
at android.widget.AbsListView.scrollListBy(AbsListView.java:4785)
Run Code Online (Sandbox Code Playgroud)

我想知道为什么它在Android 4.4中运行并在Android 5.0中出现此错误,对我来说这似乎很奇怪,如果你有任何解决方案,我会非常感激他们,非常感谢你的时间

android android-layout staggered-gridview android-5.0-lollipop

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