Category "android"

getSystemService NullPointerException

package com.example.myapplication import android.app.Activity import android.content.Context import android.os.* import android.util.Log import android.vie

Questions regarding CRUD operations

I am new to Android Studio and I am training to do a CRUD. When I try to insert a plant in the database, the message "Plant inserted" does not appear. Do you ha

Screen recorder app not detecting my screen size (width and height)

Source: here With the following segment of code all my Android devices record with a maximum width of 960 rather than the device width. val metrics = resour

After upgraded to androidX Zip file '...' already contains entry 'AndroidManifest.xml', cannot overwrite Error while build

I'm new in Android development and I've been recently assigned to an android project, which was not updated for more than a year. I got the below error when I t

Animation yoyo keep run when typing Edittext

when typing edit text yoyo animation keep run how to keep typing show animation Once ? text_send.addTextChangedListener(new TextWatcher() { @Ove

Kotlin 1.6.0 (There are no problems in 1.5.21) + Proguard + Gson (Registering an InstanceCreator with Gson...)

I have enabled Proguard and configured the rules minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFil

react-native-svg - Marker / Line markerEnd doesn't work on Android

Simply trying to draw an arrow line using the following code import * as React from 'react'; import { Text, View, StyleSheet } from 'react-native'; import Svg,

Why doesn't my Android dynamic feature module's view have an id?

I'm seeing the following crash when inflating an Activity layout within a dynamic feature module: Caused by: java.lang.IllegalStateException: FragmentContainerV

Flutter initialization failed, java.lang.UnsatisfiedLinkError: dlopen failed: library "libflutter.so" not found

The app runs properly on iOS, but when I try to run it on an android I get the following error E/FlutterLoader( 9150): Flutter initialization failed. E/FlutterL

Is anyone implemented layout camera feature like Instagram in Android?

I have already tried with single activity and multiple fragment which is added programmatically as per layout(2x2,2x3) same as instagram. But when i load camera

how to make cursor on BasicTextField be centered on jetpack compose?

I have a problem, where I need a BasicTextField to customize the TextField as I want. Here I have tried to do a custom, but there is a problem with the cursor i

PHP and Android Keystore encryption / decryption

I've been trying to get this for hours now, and I can't find what's wrong. I'm using a php RESTful API that I made to encrypt data using asymmetric encryption.

how to make cursor on BasicTextField be centered on jetpack compose?

I have a problem, where I need a BasicTextField to customize the TextField as I want. Here I have tried to do a custom, but there is a problem with the cursor i

PHP and Android Keystore encryption / decryption

I've been trying to get this for hours now, and I can't find what's wrong. I'm using a php RESTful API that I made to encrypt data using asymmetric encryption.

java.lang.NullPointerException: Attempt to invoke interface method 'void android.database.Cursor.close()' on a null object reference

https://github.com/kamaleshdas1997/MyPets LOGCAT:- Process: com.example.mypets, PID: 21583 java.lang.NullPointerException: Attempt to invoke interface m

How to store a document files in root media or root directory using cordova android 10.0.0 (API30) APK

facing an issue while downloading a file in media directory (file:///storage/emulated/0/Android/Media/) Used plugin: [email protected] 2.cordova-plu

Xamarin.Forms: Reload a contentpage contained in a tabbedpage to update the data

The default language of my Xamarin.Forms app for Android is French. I would like the user to be able to change the language and choose English or Spanish. To d

How to pass runtime parameters to a ViewModel's constructor when using Hilt for dependency injection?

I'm wondering how to pass runtime parameters to a ViewModel's constructor while using Hilt for DI? Prior to using Hilt, I have a ViewModel that looks like this:

How to handle Fragment to not load again when coming from another fragment in Navigation Component in Android?

Scenario: I have 2 fragments ProductList and ProductDetail in my nav graph. And when i click on any product it opens the ProductDetail fragment using findNavCon

I am unable to use auto Image slider but not able to do so

I just wanted to use Auto image Slider, but after adding all the dependencies and other requirments like jitpack.io still I am unable to use sliderLayout of aut