Category "android"

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

Gradle 4.0 Unable to find a matching configuration

I am trying to open my existing project in new Android Studio 3.0 canary 2. I updated Gradle according to instructions, changed names for dependency configurati

Gradle 4.0 Unable to find a matching configuration

I am trying to open my existing project in new Android Studio 3.0 canary 2. I updated Gradle according to instructions, changed names for dependency configurati

How to dismiss an AlertDialog on a FlatButton click?

I have the following AlertDialog. showDialog( context: context, child: new AlertDialog( title: const Text("Location disab

Send notification to specific user firebase in flutter

How do I send a notification to another user when one user presses a button? Can someone show me a code snippet? I realize that this question was asked before,

How to open the Google Play Store directly from my Android application?

I have open the Google Play store using the following code Intent i = new Intent(android.content.Intent.ACTION_VIEW); i.setData(Uri.parse("https://play.google

An instance of OnFlingListener already set in Recyclerview

I'm using a RecyclerView in my Android app. I've many cardviews in my RecyclerView, such that only 1 cardview is displayed to the user at a time. The user has t

Calculating Internet Speed in android

I am working with an App which contains web service things. In that I need to know the status when the Internet speed is low. How to find the internet speed le

telephonyManager.listen not working after targetSdkVersion is set to 31 or android 12

After i upgrade the targetSdkVersion to 31 telephonyManager.listen is not working. Consider following line of code: telephonyManager.listen(phoneStateListener,P

gridview with image and text android

I successfully created a gridview populated with images. Now, what I want to do is put a text below the image. This is the screenshot of my app so far. http:

The specified child already has a parent. You must call removeView() on the child's parent first (Android)

I have to switch between two layouts frequently. The error is happening in the layout posted below. When my layout is called the first time, there doesn't occu