Category "android"

Is it possible to use Paging (As part of android jetpack) without using Room DB?

Right now I'm working on an Android project which contains a RecyclerView with a large amount of data. For improving the app's performance I wish to implement

How to load MainActivity.java from server?

I'm developing an app in which the code is in MainActivity.java (locally) but I would like know how can I load MainActivity.java externally? Example: Save the

Show RecyclerView/PopupWIndow by anchoring below or above edittext depending on where the cursor is and depending on screen available height

I am trying to display @ user mentions like facebook or twitter. I am able to implement this functionality. But i have a ui problem. If edittext is at the botto

RelativeLayout is taking fullscreen for wrap_content

Why does FOOBARZ get layed out all the way at the bottom when no elements are layout_height="fill_parent" in other words, all elements are wrap_content for heig

Show RecyclerView/PopupWIndow by anchoring below or above edittext depending on where the cursor is and depending on screen available height

I am trying to display @ user mentions like facebook or twitter. I am able to implement this functionality. But i have a ui problem. If edittext is at the botto

Camera Preview in Expo is Distorted

I'm using Camera that comes from expo package and I'm having trouble with camera preview distortion. The preview makes images appear wider in landscape view and

java.lang.SecurityException: Requires ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION permission

I am developing an android where I want to get user location using NETWORK_PROVIDER,I am not using GPS for this purpose.I am getting following exception java.l

Unresolved reference in kotlin with id and activity_main

I'm actually creating a new app in kotlin to display an xml file in boxes with the informations formatted To problem is that when I'm building the app, there i

Incoming call notification like WhatsApp in Flutter

I have implemented Audio and video call using Agora for Android and iOS. What I need now a way to show notification with Accept and Reject buttons for calls. I

Android gallery with caption

I have been following the gallery example here: http://developer.android.com/resources/tutorials/views/hello-gallery.html and adding a text to show up under the

java.lang.SecurityException: Requires ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION permission

I am developing an android where I want to get user location using NETWORK_PROVIDER,I am not using GPS for this purpose.I am getting following exception java.l

Incoming call notification like WhatsApp in Flutter

I have implemented Audio and video call using Agora for Android and iOS. What I need now a way to show notification with Accept and Reject buttons for calls. I

Flutter App won't build appbundle/APK or run on Android after android studio 3.5

Basically my app run and build on iOS but doesn't on Android anymore after I updated Android studio to 3.5 version and i really need to be able to post a releas

How can I generate a random number in a certain range?

How can I create an app that generates a random number in Android using Eclipse and then show the result in a TextView field? The random number has to be in a r

How to insert a new line in strings in Android

I'm creating an android application and within it there is a button that will send some information in an email, and I don't want to have everything all in one

Error in running npx react-native CLI in Android emulator

Getting error while running npx react-native CLI in Android emulator command: npx react-native run-android error: BUILD FAILED in 3s at makeError (D:\TestPr

Manifest merger failed with multiple errors, see logs

first of all i am new to Android, i have imported an eclipse project to android studio. On building project it is showing this error "Error:Execution failed

How do i retrive text from sdcard and set text view accordingly?

I am using gridview and layout inflater to display icon with text. It should look like this: My text file contains following data: Profile 0|Profile 1|Profile

Unable to install the Android USB driver on Windows 7

So I want to use my new Nexus 5 for debugging my apps.I tried to install the Android USB driver via the device manager But my nexus is listed as portable devic

How to hide a button programmatically?

I have a RelativeLayout which contains two buttons. Which are overlapped on each other. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:a