Tutorial

У вашего приложения есть разрешение на неудачное завершение работы

Пол Бланделл (Paul Blundell)
Старший Android-разработчик, компания Novoda

При создании приложения для Marshmallow, 6.0, API 23 — новейшей версии ОС Android — могут происходить странные вещи, если оно не получило нужных разрешений. Код кажется правильным, но каждый раз завершается неудачно. В файле AndroidManifest указаны все необходимые разрешения, вы можете корректно вызывать программный интерфейс API для получения данных. Все идеально работает на другом эмуляторе (с предварительным выпуском Marshmallow). Давайте займемся отладкой.

  • Android* OS
  • Android*
  • 您有权崩溃

    Paul Blundell
    Novoda 资深安卓开发人员

    以 Marshmallow, 6.0, API 23(最新版的安卓)为标的,如果权限流程不正确,有可能发生稀奇古怪的事情。 程序代码看起来完全合法,但还是每次都崩溃。 AndroidManifest 中的权限全都正确,也调用了正确的 API 获取数据。 程序在其他模拟器上运行完美 (Marshmallow 之前未意识到)。 让我们一起来调试。

    权限分为两大类:dangerous(危险)和 normal(正常)。 本文其余部分明确讨论 dangerous(危险)权限。 在此处可阅读其差别的更多信息。

    “当你排除了不可能的情况后,其余的情况尽管是多么不可能,却必定是真实的。”

  • Android* OS
  • Android*
  • You Have Permission to Crash

    Paul Blundell
    Senior Android Developer at Novoda

    With targeting Marshmallow, 6.0, API 23, the latest version of Android*, strange things can happen if you don't get your permission flow correct. The code seems legit and yet it crashes every time. You have all the correct permissions in your AndroidManifest, you call the correct API to get your data. It runs perfectly well on your other emulator (pre-Marshmallow without realising). Let's debug together.

  • Android* OS
  • Android*
  • Você tem permissão de travar o sistema

    Paul Blundell
    Desenvolvedor Android Sênior na Novoda

    Na versão mais recente do Android (Marshmallow, 6.0, API 23), coisas estranhas podem acontecer se você não configurar corretamente seu fluxo de permissões. O código parece em ordem, mas para de funcionar o tempo todo. Você tem todas as permissões corretas no AndroidManifest, invoca a API correta para obter seus dados. Ele roda perfeitamente em seu outro emulador (anterior ao Marshmallow, sem explicação). Vamos depurar juntos.

  • Android* OS
  • Android*
  • Project template to develop WPF applications with Intel® RealSense™

    In Visual Studio Gallery is available the first version of my project templates for WPF applications that allows you to create applications written in C# that use Intel® RealSense™ SDK.

    The template can be downloaded directly from within Visual Studio by using the tool "Extensions and Updates" as shown in the next figure:

    Intel® Quark™ D1000 – PushButton ISR example (Windows Host)

    Summary -

    This guide covers using Intel® Quark™ D1000 microcontroller with the Eclipse* IDE to modify a simple firmware example provided with Intel® System Studio for Microcontrollers. This guide also show how to check the JTAG connection to the Intel® Quark™ D1000 microcontroller CRB (customer reference board) using OpenOCD to create and flash an image on to the board and to do the source line debugging using it.

    Please refer the following pdf file to check out the guide :

     

  • Professional
  • Professors
  • Students
  • Internet of Things
  • Intermediate
  • Intel® System Studio for Microcontrollers
  • Sensors
  • How to run Yocto Linux OS in a virtual machine

    Sometime we need a complete development environment to compile, deploy and test our solutions, and sometimes we can't play directly on the hardware, or, simply, the provided SDK is not enough for our development plans. This could be, for example, the case of Intel Edison or Galileo: how can I compile entire frameworks, runtimes and their dependencies on Yocto Linux OS?

    In this article I'll show how to create a runnable image of Yocto and how to test it inside QEMU, a basic software emulator; and following how to run it inside an Hypervisor, like Microsoft Hyper-V on Windows.

  • Partners
  • Professional
  • Professors
  • Students
  • Linux*
  • Internet of Things
  • Advanced
  • 如何在虚拟机中运行 Yocto Linux 操作系统

    有时我们需要一个完整的开发环境来编译、部署和测试解决方案,有时无法直接在硬件上操作,或者简单来说,提供的 SDK 不足以实行我们的开发计划。 这可能是,比如,英特尔 Edison 或 Galileo 所面临的情况:如何在 Yocto Linux 操作系统上编译整个框架、运行时,以及它们之间的依赖关系?

    本文将为大家介绍如何创建 Yocto* 的可运行映像,如何在基础软件模拟器 QEMU 中测试该映像,以及如何在管理程序(比如 Windows 上的 Microsoft Hyper-V)中运行该映像。

    操作本教程的前提条件

    • Debian/Ubuntu(已经过 Debian 8.2 amd64 的测试)
    • 互联网连接
    • 磁盘提供至少 100 GB 可用空间

    构建机器的前期准备工作

    以根身份(或通过 "sudo")运行以下命令

  • Partners
  • Professional
  • Professors
  • Students
  • Linux*
  • Yocto Project
  • Internet of Things
  • C/C++
  • Intermediate
  • yocto
  • virtual
  • machine
  • hyperV
  • hypervisor
  • Dev Kit
  • Development Tools
  • Device Management
  • Microcontrollers
  • Subscribe to Tutorial