Category "android"

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

Android Studio - Java JVM

I downloaded the latest version of Android Studio, but I can not use it. The following message appears: Failed to create JVM: error code -4 JVM Path: C:\Progra

How to create constructor of custom view with Kotlin

I'm trying to use Kotlin in my Android project. I need to create custom view class. Each custom view has two important constructors: public class MyView extend

Connect Thumbor with AWS - s3

I have a bucket with photos on AWS. When I try to access the photo url {photoUrl = https://aws-name-dev.s3.amazonaws.com/photo.jpg} in browser I got 'access d

Android Galaxy Tab : Why is the launch icon surrounded by a pink border?

I followed the icon design guidelines from android and so I have icon in different size: drawable-hdpi (96x96) drawable-hdpi (72x72) drawable-ldpi (36x36) draw

Facebook share error : "the page you requested cannot be displayed right now"

I have used custom stories to do the facebook share and the share happens correctly and displays in posted user's facebook wall. See below: The issue when wh

How to create local notification in react native and android

I am trying to create a local notification in android using react-native. My application is completely local, so I don't want to use GCM or FCM. I saw this ques

How to SHA1 hash a string in Android?

In Objective C I've been using the following code to hash a string: -(NSString *) sha1:(NSString*)stringToHash { const char *cStr = [stringToHash UTF8S