Category "android"

How to get link speed programmatically?

I am working on an app and it is almost finished except only one thing: I don't know how to get link speed and place it in the status bar.I am new to Java so if

Phonegap Android permissions, config.xml and plugins

I have a Phonegap app that I'm currently developing and testing for Android. Problem is, when I publish to device, the Android Manifest is full of permission re

How to resolve the duplicate column name error in Room Db migration

I added the below code for adding a column to the SithluBody table when migration. static final Migration MIGRATION_3_4 = new Migration(3, 4) { @Override

Android app link not working in android 12 always opening in browser

I have hosted assetlinks file into our domain https://ourdomain/.well-known/assetlinks.json And also verified this using https://developers.google.com/digital-a

How to prevent a splash screen image from stretching

I am creating a game. At the moment, for my splash screen, I use an image. The problem is it stretches. How do I prevent that? android:layout_width="match_p

Android: How to open Call Log (missed-outgoing-incoming call view)?

I am able to open the Call Log through the following lines: Intent showCallLog = new Intent(); showCallLog.setAction(Intent.ACTION_VIEW); showC

Android: How to remove margin/padding in Preference Screen

I am facing very weird problem in designing preference screen. Though I am not giving any margin in layout,it is leaving some space in left. As you can see in

Android studio mouse sometime not working?

I am using Android studio 2.1.1 Build #AI-143.2821654 build on April 28, 2016. JRE: 1.8.0_77-b03 x86_64 OS X El Capitan 10.11.3 I have met Android studio mou

Error when setting compileSdkVersion to Sv2 (Android 12L) - Unsupported value: Sv2. Format must be one of

I am trying to follow the setup guide for Android 12L here. But I get the following error when I sync gradle on the project: Unsupported value: Sv2. Format must

Is it possible to make Vpn app using flutter and dart

I tried using this package to make VPN connection app but it dose not support the connection type like (L2TP or PPTP) https://pub.dev/packages/flutter_vpn

Deep link routing to Android/IOS app in vue js

When the user visits the mobile website via android/ios iphone, it should be redirected respective apps in their phone. If they still didn't install the respect

Build gradle : Could not find method packagingOptions() for arguments root Project "fasterDev"

I am using single build.gradle file in application. Regarding version 1.6 it's working properly. but I want to use this for location update with module. apply

How can I get data from PHP to Android TextView?

How can I get data from PHP to Android? can you help me?, how can I display result of PHP to android textview this is my PHP code I should use JSON on this...

How to exclude all files under a directory in Gradle?

packagingOptions { exclude 'org/apache/commons/codec/language/bm/gen_approx_portuguese.txt' } For example, this one will exclude 1 file. But how to exclude a

Httpclient redirect handler

I'm trying to call a web server that is using relative URL redirects for some of the calls. This of course isn't working with DefaultHttpClient as it isn't trea

How to disable night mode in my application even if night mode is enable in android 9.0 (pie)?

I created my application before the android pie has been released, in every layout I put android: background = "white" it works fine in every device, but when m

Android WebView, how to handle redirects in app instead of opening a browser

So right now in my app the URL I'm accessing has a redirect, and when this happens the WebView will open a new browser, instead of staying in my app. Is there a

onTouchListener ACTION_MOVE not working with more than 1 finger

I'm building an OpenGL ES app and I use an onTouchListener to detect touch events, as suggested by the android development website (https://developer.android.co

Android - Programmatically check internet connection and display dialog if notConnected

I am working on a live project. and when user click on the app. the welcome screen appears(there is a webview on that screen). and if the internet is not connec

How to see the type of variable within Android Studio IDE

How to see the type of variable in Android Studio when using Kotlin without type annotations. Currently I'm trying to see it by giving the variable a type I kn