Category "android"

How to debug Apps in Android Enterprise Work Profile

I've just started developing with Android Enterprise and need to deploy an app in work profile. My policy (see below) allows installation of apk with debug bu

getContentResolver() is not working

I have a class name MyPhoneStateListener. Here, I want to use getContentResolver, but there is some problem in the class. It's not my main activity. Cursor cur

app:showAsAction ifRoom is not working on appcompat action bar

I have an action bar with the following menu items; <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.c

create collage images view gallery in android [closed]

I would like to make 10 images in collage format the sample layout is given bellow: this is sample image I would like to make this type of

How to perform a touch and hold gesture using AccessibilityService?

Path clickPath = new Path(); clickPath.moveTo(x, y); GestureDescription.StrokeDescription clickStroke = new GestureDescription.StrokeDescription(clickPath, 0, 1

Loading Image using Glide in Android

I am trying to load an image from a URL into my imageview using glide but it is not working. I cannot download and display the image. I have added all the depen

Flutter cannot delete build folder when flutter clean is executed

Whenever I try to clean my flutter project by using the command flutter clean I get an error saying Failed to remove build. A program may still be using a fi

React navigation: navigate causes app to crash on expo client

I have the below navigation stack. I am trying to navigate from login to signup. Things seem to work completely fine on the android emulator. But when i try to

Timing the capture of screen shots using Androids MediaProjector

I have used mtsahkis's example to implement a screen capture system on Android: https://github.com/mtsahakis/MediaProjectionDemo/blob/master/src/com/mtsahakis/m

How to hide an item from Recycler View on a particular condition?

I am using Firebase Recycler Adapter (Firebase UI Library) to populate Recycler View. I want to hide an item(row) on a condition. I have a LinearLayout contain

How does the Android Viewmodel works internally, internal working of view model

How does the Android Viewmodel works internally? How Viewmodel save the data when the activity gets destroyed and recreated when the device get rotated

Flutter cannot delete build folder when flutter clean is executed

Whenever I try to clean my flutter project by using the command flutter clean I get an error saying Failed to remove build. A program may still be using a fi

Failed to open /qemu.conf, err: 2

I got this error while using windows command prompt to connect a android virtual device to visual studio code. However opens the android virtual device but stil

Failed to open /qemu.conf, err: 2

I got this error while using windows command prompt to connect a android virtual device to visual studio code. However opens the android virtual device but stil

Could not get unknown property 'mavenUser' for Credentials

All I am getting following error in build.gradle in Android Studio : Could not get unknown property 'mavenUser' for Credentials [username: null] of typ

Could not get unknown property 'mavenUser' for Credentials

All I am getting following error in build.gradle in Android Studio : Could not get unknown property 'mavenUser' for Credentials [username: null] of typ

Error: Not found: 'dart:js' import 'dart:js';

I am creating a PopupMenuButton() in the AppBar section. This is my file: import 'dart:js'; import 'package:bfdi_app/settings.dart'; import 'package:cached_n

javax.mail.util.SharedByteArrayInputStream cannot be cast to javax.mail.Multipart

public void parseEml(Message msg) throws Exception { Address[] froms = msg.getFrom(); if (froms != null) { InternetAddress addr = (InternetAddr

Flutter || W/DynamiteModule( 4887): Local module descriptor class for com.google.android.gms.providerinstaller.dynamite not found

When I fetch data from Firebase Firestore, data is not shown. And it gives me this problem. Is it related to Firebase or anything else? W/DynamiteModule( 4887):

Script file to run in android devices with help of the sh present in adb shell

I am facing a problem in writing a shell script for android devices to be run only on sh present in the device (/system/bin/sh). I have written the following s