Category "android"

Flutter - getApplicationDocumentsDirectory() : How to get the path in android and iOS

Directory tempDir = await getTemporaryDirectory(); String tempPath = tempDir.path; In android native code, I use getCacheDir() How do i get the getApplicatio

This Error Force close my app when I'm inspecting my table : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x10

I have table in my application and I'm Running my app on Huawei y9 and this error pops up after a 30 sec and force close my application. I link my other questio

Android Google map Cluster Item marker with dynamic image URL - overwrite URL with all marker

In my app having cluster on map, Top/Main cluster marker show total marker count, click on that show all sub cluster item marker. In Cluster item(Sub cluster m

com.twitter.sdk.android.core.TwitterApiException: HTTP request failed, Status: 403

I have recently added fabric plugin in my android studio, but i am not finding twitter login option on that plugin. When i search on google then i found one qu

Get filePath for Recents,Downloads,Images from Uri of ACTION_GET_CONTENT Intent android

I am invoking image picker in my android app using intent ACTION_GET_CONTENT. In onActivityResult() I get Uri using data.getData(). Now I am using an already ex

How to move Google Map marker automatically as driver is moving

I'm trying to figure out how we can track driver position on Google map as he is moving. Here's my code: public class TrackDriverActivity extends AppCompatActiv

CardView remove border

I want too remove a border on my cardView. I try set elavation to 0 dp , app:cardPreventCornerOverlap to false and app:cardUseCompatPadding to true , but I can

Android TextView with Clickable Links: how to capture clicks?

I have a TextView which is rendering basic HTML, containing 2+ links. I need to capture clicks on the links and open the links -- in my own internal WebView (no

Room Persistence: Error:Entities and Pojos must have a usable public constructor

I'm converting a project to Kotlin and I'm trying to make my model (which is also my entity) a data class I intend to use Moshi to convert the JSON responses fr

Set View Width Programmatically

I am trying to set the width and height of a view in code to show an ad for a free app I am working on. All of the UI is done in XML with the exception of this

java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0

I am trying to get datafrom database in a list. This is my code: private class LoadData extends AsyncTask<Void, Void, Void> { private ProgressDialog

Equivalent of RelativeLayout in Flutter

Is there a way to implement something similar to what RelativeLayout does on Android? In particular I'm looking for something similar to centerInParent, layout

Dynamic height of TextView within a GridLayout

I have a problem using GridLayout using library compatibility (not tried without). I am using app:layout_gravity="fill_horizontal" instead of android:layout_gra

How to open a different activity on recyclerView item onclick

i am using a recyclerView to show my listitems in the navigation drawer.I have implemented the onclickListener but i have been stuck on how to open a different

How to remove button shadow (android)

I want to remove the shadow from the button to make it seem more flat. I have this right now: But I want this:

Where is data is stored in android Database and how to see all?

I want to know where is all the stored in android. Like inbox messages are stored in content://sms/inbox and outbox msgs in content://sms/outbox or may b

Could not resolve io.fabric.tools:gradle:1.+

I'm having an issue with building my project. First time build. I'm behind a proxy and all other dependencies downloaded only this having an issue. I tried a f

SearchView not getting focus

EDIT For anyone wondering, my problem was I was using android.widget.SearchView instead of android.support.v7.widget.SearchView. I hope this helps anyone else w

keytool error: java.io.FileNotFoundException: C:\AndroidWorkspace\androidKey\public.jks (The system cannot find the path specified)

I am to trying to create a signed app in Android Studio, but i am stuck at this error which says keytool error: java.io.FileNotFoundException: C:\AndroidWor

Execution failed for task ':app:installRelease' react-native

I wanted to create an android apk file in react-native. I followed the instructions as per the link below https://reactnative.dev/docs/signed-apk-android Gene