Questions tagged [android]
Android is Google's mobile operating system, used for programming or developing digital devices (Smartphones, Tablets, Automobiles, TVs, Wear, Glass, IoT). For topics related to Android, use Android-specific tags such as android-intent, android-activity, android-adapter, etc. For questions other than development or programming, but related to the Android framework, use this link: https://android.stackexchange.com.
Welcome all
In Play Games guide, they say:
Open a terminal and run the Keytool utility to get the SHA1
fingerprints of the release certificate
https://developers.google.com/games/services/console/...
The following works fine for standard phone numbers:
Linkify.addLinks(textView, Linkify.ALL);
But not for emergency phone numbers like 911 or 999.
I've tried using regex:
Pattern phoneNumberPattern = ...
I've created an application that uses recyclerView and adapter. I want to use onSaveInstanceState to save the state of my checkedtextview upon orientation it was refreshed. How can I retain the state ...
I'm working on a flutter mobile application, while testing the mobile application on the Debug APK it shows the Splash screen perfectly when I created a Release APK the splash screen was not working ...
I want to add spock support to my app:
plugins {
id 'com.android.application'
id 'groovy'
}
android {
compileSdk 32
defaultConfig {
applicationId "kkl.android.pinger&...
asked 34 mins ago
Krzysztof
1,62144 gold badges2020 silver badges3333 bronze badges
Like the title suggests, all of a sudden, my Android Studio projects simply can't locate any of my drawable resources that I call when using android:background="@drawable/...
I wanna start a new flutter project without change AGP version and Gradle version manually before running first time on emulator, flutter doctor output :
Doctor summary (to see all details, run ...
I'm running Ubuntu 20 and trying to setup flutter enironment without android studio. Installed android sdk manually && it's path is $HOME/android.
here's a log of the directory
$ ls
# cmdline-...
I have a problem with Hilt and ViewModel. I'm getting RunTimeException:
MainViewModel> has no zero argument constructor
I spent hours to find what is wrong...
Here are sources from my code:
...
I have changed a column type from Float to Int, how can I migrate the change so I won't lost old entries, instead just to convert all of them to the Int.
When I Decompiled a Game Apk File by typing " apktool d file.apk" with Apktool 5 months ago, all the files were coming. But Now When I Decompile The Same File The Same Way They Don't Come, ...
i have a data.json file like this in which i am getting a list of data i want to add another parameter{p_quantity} to this json file .
Or i can the parameter by default as empty then how i can i ...
I try to develope an android app and I need help. In my project I have a bottom sheet dialog fragment, and there is a navGraph inside this dialog fragment. Everthing is fine until after dialog box is ...
I have an activity with three MenuItem's. I have three variables at the top of the activity class for each MenuItem (e.g. menu1, menu2, menu3).
I initialize the three MenuItems in the ...
I was creating a recycler view and trying to create a toast when any item is clicked on using interface(i'm doing for first time). But my app is crashing when i click any item in recycler view.
Here ...
The error which I am getting is
Calling this from Your main thread can lead to deadlock,
suspend fun uploadFileToGDrive(path:String,context: Context) {
mDrive?.let {googleDriveService->
...
So, the question in the title.
I updated the project from GitHub, started on AVD, it works - no errors were found.
But after I added/modified some code parts, again without errors, whenever I try to ...
I'm using rxjava2 + mvvvmhabit library. How to fix this issue?
Cannot find symbol class ActivityEngageBindingImpl
[databinding] {"msg":"Cannot resolve type \u0027LayoutManagers\u0027&...
asked 1 hour ago
Voloda2
11.9k1818 gold badges7878 silver badges128128 bronze badges
React native web view Android back button not exit the app. When i pressed back button it will not exixt the app. The following are my sample code.
import React, { useEffect, useRef } from 'react';
...
I am a junior mobile developer specialized in flutter but, I encounter bugs and problems a lot and don't usually have anybody to ask, I ask on stackoverflow here and don't get answer for days , that's ...
I've used the Android (Java) way of doing things before for subscribing to a topic
FirebaseMessaging.getInstance().subscribeToTopic("weather")...
But was looking at the Kotlin example
...
List item
I am making a simple network call where I thrown an exception from an Interceptor when network is not available to show appropriate message to the user.
When I model the call as a suspended ...
asked 1 hour ago
Wamiq
79433 gold badges99 silver badges2121 bronze badges
When I create a bundle, I get this error.
When I create an apk or run directly from Android Studio, there are no errors.
# Type of exception: java.lang.RuntimeException
\n# Exception message: Class ...
Here's my code:
private fun roomChange(animation: Int)
{
val rocketImage = findViewById<ImageView>(R.id.imageView2).apply {
setBackgroundResource(R.drawable.animation)
...
I'm trying to setup a multi-module project with bottom navigation fragments and hilt.
Is there any github project I can use to start my project faster?
I have a whitelabel Android app, that uses flavors to build the different variants. I have setup the application so that all variants are built with fastlane, and everything works correctly except ...
asked 2 hours ago
ruben1691
35311 silver badge1616 bronze badges
I'm working on a project that requires the app I am developing with Flutter to connect to the Raspberry pi via Bluetooth and be able to send and receive data.
I used the flutter_blue and ...
I have two condition,
In first if-> I have to set
compoundDrawableTintList=tintList
as i have selector colour list .
In second -> I have to set compoundDrawableTintList=null and I have to use
...
I have a username textField which shows if the username if available each time the value change by checking into the firebase collection "usernames" if a document with the username already ...
I want to select image from phone gallery but when i click on image the app returns to main activity without updating image. currently i created the code in fragment. I wrote the code correctly but it ...
I'm trying to run an Android emulator from command-line because I couldn't run it from Android Studio (it gave the same problem plus some error messages such as "Time out after 300seconds waiting ...
asked 2 hours ago
enzo
8,87422 gold badges1212 silver badges3434 bronze badges
I did make a new application of type sidemenu in Ionic, without modifying anything, I did execute the following command to make the Android compilation
• ng build
• ionic capacitor add android
so, ...
I have 3 ViewStubs inside a ScrollView and none of the content is showing.
This is the fragment XML:
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android="...
I have the following error
I/hes.app.androi: WaitForGcToComplete blocked Instrumentation on ProfileSaver for 16.196ms
W/hes.app.androi: Suspending all threads took: 21.233ms
D/View: [ANR Warning]...
asked 2 hours ago
Patrick
1,32555 gold badges1919 silver badges4343 bronze badges
I need to use RecyclerView with API 19 (API level 19).
I already have tried adding
implementation 'com.android.support:recyclerview-v7:+'
and
implementation 'androidx.recyclerview:recyclerview:1.0.0'
...
asked 2 hours ago
Gulfam
45655 silver badges1818 bronze badges
I'm using a RecyclerView to show a list of country codes, countries and flags respecively. The app is supporting RTL, so the layout of item is a simple Constraintlayout with 3 elements:
<?xml ...
I am using GMail links like
https://mail.google.com/?view=cm&to=some@email.com
or
https://mail.google.com/mail/?extsrc=mailto&url=mailto%3A%3Fto%3Dsome%40email.com
to simplify writing mails ...
asked 2 hours ago
bsteuber
20611 silver badge33 bronze badges
I am working with camera permissions. when the user clicks on take photo button, user will be shown with run time permissions menu and lets say user deny's it and then clicks on take photo button, run ...
asked 2 hours ago
BRDroid
2,91655 gold badges4040 silver badges9393 bronze badges
I am trying to write android test cases for Room Dao, my return type is Flow. I am getting the following error which I am not able to understand. To test flow I am using Turbine library which should ...
asked 2 hours ago
Swapnil Kadam
3,69944 gold badges2828 silver badges3434 bronze badges
I have an Azure build pipeline which is producing an APK which installs (via AppCenter) just fine on Android 10 but pops up the error:
App not installed as package appears to be invalid
on Android ...
asked 2 hours ago
Matt W
10.4k2020 gold badges8989 silver badges158158 bronze badges
I have nested RecyclerView (MainRecyclerview and ChildRecyclerview) with two Adapters(MainRecyclerviewAdapter and ChildRecyclerviewAdapter), i create an interface to handle click for childRecyclerview,...
For android versions before 11 I was using the below command to get IMEI number from my device:
adb shell "service call iphonesubinfo 4 | cut -c 52-66 | tr -d '.[:space:]'"
or
adb shell ...
I am making a reels type app.
I have made a ReelsFragment and ReelsAdapter.
I have used View Pager 2 to swipe views vertically.
I am using Exoplayer to play videos.
But my problem is:
When i swipe ...
I'm currently programming and I noticed that there are strange white lines around the app in the Android Launcher. With other apps, everything is normal. Can someone help me how to remove them?
...
I'm trying to learn android development and i was learning recyclerView. I want to send a string to the setOnClickListener in onCreateViewHolder method when item is clicked but I dont know how to do ...
I have followed the example at https://docs.microsoft.com/en-us/graph/sdks/choose-authentication-providers?tabs=Java#client-credentials-provider in order to connect an android application to Microsoft ...
asked 3 hours ago
Björn
12088 bronze badges
I have made two pages, PersonalPage and InformationPage. I want to transfer some parameters from PersonalPage to InformationPage. Here are my codes.
PersonalPage:
Navigator.push(
context,
...
As stated in this post i try to split a video using mmpeg, slow down one of the parts and merge them back together.
I use the SSffmpegVideoOperation libary for convenient ffmpeg interactions.
I ...
asked 3 hours ago
tscheppe
34833 silver badges1515 bronze badges
I've got a MacBook Pro M1 (so no access to GenyMotion yet before 3.3.*), so while developing I use a Galaxy A10 for real device testing and a Pixel Android Emulator.
The performance is insanely bad on ...
asked 3 hours ago
yemd
13822 silver badges1212 bronze badges
I'm using Embarcadero's Delphi 10.4 and trying to create an app deployed to an Amazon Fire which is using Android's 9 (API level 28) OS. No matter what I try, every time I try and run the project, I ...