What's "tools:context" in Android layout files?

Starting with a recent new version of ADT, I've noticed this new attribute on the layout XML files, for example: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" ...

Android "tools" namespace in layout xml documentation

Per the question here, https://stackoverflow.com/questions/11078487/android-whats-toolscontext-in-layout-files/11110969#11110969 The 'tools' namespace reference...

Using SimpleXML with Android and Gradle

I'm having troubles trying to compile an Android application with Gradle 0.5.+ and Android Studio, using SimpleXML. This is the error: Gradle: Execution failed for task...

Is there a way to show a preview of a RecyclerView's contents in the Android Studio editor?

When I add the RecyclerView to the layout, it shows up as a blank screen. Is there a way, such as through the tools namespace, to show a preview of the content of the RecyclerView?

What's the purpose of tools:openDrawer="start" when creating a DrawerLayout (with NavigationView) from the wizard?

Creating an activity with navigation drawer in Android Studio causes this to be shown in the XML code: <android.support.v4.widget.DrawerLayout ...

integrating org.apache.poi and the javax.xml.stream.* package (stax-api) in android - how to set the --core-library argument in Android Studio?

I'm using Android studio 1.5.1 I'd like to include the org.apache.poi-ooxml library in my android project. To include that library I needed to include some other library dependencies, among which...

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformClassesWithDexForDebug'

Due to 65K error in my project I need it to migrate to Android Studio . While running ./gradlew assembleDebug I am getting the error: Execution failed for task...

Tools namespace attribute for showing layout in ViewPager in design time

The tools namespace allows for showing view properties in layout designer. For example using tools:listItem="@layout/{custom_layout} it is possible to show list with custom row layout in Android...

Accessing Cloud Storage from Android

I've been unable to find any concrete documentation on how to use Cloud Storage from an Android application. I did come across this client library from the Google Cloud SDK, however have run into...

Android Library CardView attribute not found

I have created a library that uses Android CardView. The library is available as aar file. When I add the aar file to the project, it gives the following error, on syncing. I still have not used...

Compile Tensorflow C++ API for ARM64-v8a

Here is the link to the tensorflow issue I posted. https://github.com/tensorflow/tensorflow/issues/16795 I try to compile tensorflow C++ API on android arm64-v8a and I am stuck. Here is the code I...

CardViews not showing in RecyclerView

I have a simple CardView inside a RecyclerView but I can't see any cards appearing. Here's my current code: MainActivity.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout...

How to use androidx.recyclerview.widget.RecyclerView with tools:listitem?

How to use androidx.recyclerview.widget.RecyclerView with tools:listitem? I have this layout: <?xml version="1.0" encoding="utf-8"?> <androidx.recyclerview.widget.RecyclerView ...

How to change the view of Design Tab of menu layout file for Bottom Navigation Activity (tools:showIn)

I only want to see my design as bottom navigation view so I had tried the following on menu.xml file by setting tools:showIn="bottom_navigation_view" but it is not making any effect to my design...

Error CS0234 The type or namespace name 'Android' does not exist in the namespace 'Xamarin.Forms.Platform

When I create a new blank cross-platform project in Visual Studio 2017 I get about six errors. All on 'MainActivity.cs' page. I'm running VS2017 that updated to support Core 2.1. I'm not sure what...

Unhandled Exception: System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)

Im checking a connection for an online database for a Xamarin.android but this erroer keeps on appearing..im planning to connect it to a rasp pi database for my research project..pls help using...

Display an image in Android Studio using ImageView in layout preview

I'm working on an Android app. I create an item layout for a recycler view and I'd like to display a preview of it in Android Studio using layout preview with tools namespace. To accomplish this...

Xamarin Android ImageView not showing

As in the title, image is not showing up neither in designer nor in runtime. The image is a random one 82x53 pixels, 629 B, created in Paint and saved as png. Clearing and rebuilding solution...

Android Deeplinking how to fix asset verifier toggles between success & failure, SHA256 in firebase, min target 16, optimal intents & splash handling

I had app deeplinking working for iOS but for a long while it was only partially working for Android - it would show the dissambugity popup but wouldn't go directly into the app (as though...

msbuild ignores passed ReferencePath

Summary: I'm passing /p:ReferencePath to msbuild, when building a Xamarin.Android project. This does work with Visual Studio 2017, but not with Visual Studio 2019. In detail: I have two...

Android Emulator Web Browser Needs Camera Permissions on macOS Catalina

I am in charge of testing a mobile-compliant website that also needs access to the device camera and microphone. I needed to expand the ability to test different Android devices, so I downloaded...

Binary XML file line #1: Error inflating class fragment Error for Google Maps in Xamarin Android

I'm getting the error in the title of the question at SetContentView(Resource.Layout.activity_main); when I run the app. I have two XML files. include_main.xml contains a framelayout where the map...

Android resource linking failed AAPT: unknown option '--proguard-minimal-keep-rules'

My Android Studio was working fine, everything was good but after updating Android Studio to the latest version and updating gradle I got the following error Could you please provide the solution,...

Xamarin Android binding duplicate packages causing "Program type already present" build error

I am trying to build Xamarin Android binding libraries for two different RFID hand held scanner SDKs (from two different companies), and then reference them in a Xamarin.Android project. So the...

Why does the designer use "@+id" instead of "@id" for constraints?

I've always understood @+id to indicate the creation of a new ID (generally used with android:id), and @id to reference it elsewhere, as explained at length in a popular question here and in the...

Adhara Socket doesn't work on iOS Flutter

I want to achieve real-time Socket.IO in Flutter. i have downloaded the Adhara Socket Package and it doesn't work on iOS, makes my build failed in both Android Studio & xCode. library link:...

Android SDK on Docker for ARM64 (Raspberry Pi 4) for building APK

*I am trying to create an ARM64 Docker image which is able to build an apk file of my React Native app.* Background: For exercise purposes I built a Kubernetes cluster wiht 5 Raspberry Pi 4...

creating android library on jitpack error

I am following tutorial: https://medium.com/@anujguptawork/how-to-create-your-own-android-library-and-publish-it-750e0f7481bf to create android library. Everything works fine, but when I go to...

Failed to load IDynamiteLoader from GmsCore: Application package com.google.android.gms not found

In My flutter app google Ad is not loading in android app but works in ios. I am using both AdMob and Firebase Database and i am using Macbook pro M1 and anroid emulator is downloaded...

New .Net MAUI App project throws 'The name 'InitializeComponent' does not exist in the current context' build errors

I've attempted to start playing with .Net MAUI and I've setup my development environment following the steps as described...