Category "android"

Check for internet connectivity from Unity

I have a Unity project which I build for Android and iOS platforms. I want to check for internet connectivity on Desktop, Android, and iOS devices. I've read ab

how to make overlay window view clickable and touchable in android

I am trying to learn how to create an overlay window similar to Facebook chat head messenger icon in Android. I managed to create the following class which ena

How to check whether a known uri file exists in Android storage?

The file uri is known, such as `file:///mnt/sdcard/Download/AppSearch_2213333_60.apk` I want to check if this file can open or not in background, how to do?

ActionbarSherlock - customize submenu on item? (like in Chrome & Opera for mobile)

I am working on an application and using ActionbarSherlock as my actionbar and would like to know how can I customize my submenu of an item like in Chrome &

Android dynamic feature modules do not work, cannot access resources properly

I am having trouble accessing a resource located in dynamic feature raw folder from my main activity. The installation of the dynamic feature works fine and I c

AppBarLayout Background

I want to do this, In the preview of Android Studio looks good but in runtime I get this As you can see at begin of the screen the color is white, I want t

Failed to resolve attribute at index 13 at android.content.res.TypedArray.getDrawable()

My android app runs on a sdk 23 emulator just perfectly, but when I tried to run it on a tablet with sdk version 21, I got this exception: java.lang.RuntimeE

How can I get string resource in Jetpack composable test

We can get the string resource in Composable through stringResource like @Composable fun Heading( @StringRes textResource: Int ) { Text( text =

Android ViewPager and TabLayout are not working fast

There are nested fragments with TabLayout and ViewPager. Each fragment has listview inside it so they get call together and now I'm getting an issue of slow pro

Material Date Picker title is out of place

I'm having this weird issue when using MaterialDatePicker. While it works, the title and current date are not displaying as they should. Any ideas on what is ha

Can someone provide a good explanation of Dagger 2?

I'm really having a hard time understanding the Dagger 2 Dependency injection system. I understand the use of the @Inject annotation to tell Dagger we need to

"Error retrieving information from server RPC S-7 AEC-0" while testing Google in-app billing

I am trying to implement Google in app billing to my Application. I created SKU product id and implemented the billing process in code. While I am trying to tes

Android Accessability RecyclerView reading "in list X items"

So I am using RecyclerView for a page. When the user goes from outside the recyclerview to inside the recyclerview, talkback reads "in list X items" (x is numbe

An error occurred while creating the AVD. See idea.log for details. ubuntu 16.04

I followed the the link below, to create a android virtual device(AVD). https://developer.android.com/studio/run/managing-avds.html As soon as I click on fini

Set all text style changes in one place in Compose UI similar to styles.xml

Previously you could define all of your style changes as a single style in XML which was really convenient especially if you had a lot of different styles. The

How to hook into a method with int[] using xposed?

I am trying to hook into this method in NotificationManagerService using Xposed: void enqueueNotificationInternal(final String pkg, final String opPkg, final i

StorageException: An unknown error occurred, please check the HTTP result code and inner exception for server response

I use Firebase Storage to upfile. But it does not work THIS IS MY CODE. FirebaseStorage storage = FirebaseStorage.getInstance(); StorageReference storageRef = s

Get architecture type (ABI) to C preprocessor for Android NDK

I'm trying to control my C code in an Android NDK project depending on the selected ABI library. As a start, I want the NDK library method to answer, with a st

How to adjust font size to fit view in React Native for Android?

How I can make the font size of the text auto change inside a view in react native? I have text with different lengths, some of which doesn't fit the view so d

ImageView on a GridView

I have a GridView: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height=