Category "android"

gradle not syncing when adding firebase to android studio

So I'm trying to add the Firebase SDK to my Android Studio app as per the instructions from the Firebase website (see picture). Adding the line classpath 'com

What android broadcasts are sent by gmaps while navigating?

I am developing an android application which captures the location of every turn the user made while navigating from a source to a destination. My application w

The AsyncTask API is deprecated in Android 11. What are the alternatives?

Google is deprecating Android AsyncTask API in Android 11 and suggesting to use java.util.concurrent instead. you can check out the commit here * * @deprecate

Fixed Grid inside LazyColumn in Jetpack Compose?

Currently in Jetpack Compose, this code throws an IllegalStateException because you cannot nest two vertically scrolling Composables: @ExperimentalFoundationApi

.net maui blazor - Show image from android internal storage

Im using the .net maui blazor to get the device to take a photo, then as its taken it, i wish to display it on the screen so the user can see what image they ha

How to draw an overlay on top of mobile vision barcode scanner?

I have been trying to get this done but with no succes for the last couple of days. I am trying to add a squarebox overlay ( wouldbe nice if it could contain 2

com.google.android.gms.common.SignInButton button not displaying in design using Firebase

Connected Firebase with my Android project and here is my build.gradle file code: apply plugin: 'com.android.application' android { compileSdkVersion 26

Generated Android espresso test fails to run, AndroidJUnitRunner failed to resolve: Landroidx/test/platform/io/FileTestStorage;

After recording a simple espresso test on my app the test fails to run and I'm hoping someone can guide me as to why this is happening. The resulting error is:

android studio: the emulator cannot be launched more than once

So, I have Android studio installed, and I cannot use the emulator more than once. So once installed, the emulator works very well at the first use. when I cl

Expo app runs on ios and emulator but not on android device

The Expo app will build and run correctly on ios simulator, ios device, and android emulator. but when I build an apk and run on an android device the app freez

Unhandled Exception: DioError PONSE]: Http status error [500]

I made FormData use the dio package to upload images to the database, but my compilation was running "flutter run", an error appeared. After I see the error th

Can firebase messaging services can be android:exported="false"?

Like to confirm if we can set android:exported="false" for instance id service and messaging service. I tested by keeping android:exported="false" and notifica

Why don't my multiline textviews have the same height?

I have 3 textviews with 2 lines. I placed them in the horizontal LinearLayout with same weight. The problem is that when I put text into this TextViews, they ha

How to create GridView using Jetpack Compose

How to create Gridview in Jetpack compose without using recycler view or android.widget.gridview ?

App not installing in emulator after upgrading to android studio chipmunk

So pushing the run app button in android studio compiles the app. But it does not install the compiled app into emulator. App is compiled successfully . > Ta

It is possible to compile with Api 23 (6.0) and to maintain the old permission system (install-time)?

I readed this in the official android blog: Permission Changes With Marshmallow, permissions have moved from install-time to runtime. This is a mandatory chan

Error type 3. Activity class {com.awesome_project/ com.awesome_project.MainActivity} does not exist in react native (Android device)

I've created the project using the following command. react-native init Awesome_Project I've started the packager using the following command. react

I'm getting a "Error inflating class com.google.android.material.navigation.NavigationView"

I have looked at other posts to this problem and I can't seem to solve it, so I'm hoping that its just a case that I am missing something obvious. Here is my c

flutter build apk installing platform-tools repeatedly

I have installed flutter and android-SDK ( without android studio ) on windows-10. Installation completed successfully and everything is fine and no errors in w

Do not concatenate text displayed with setText. Use resource string with placeholders

I am a newbie in android development, I want to provide a number to setText, I am facing this problem and tried many ways to solve it. Code is: public class Gam