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 and etc. For questions other than development or programming, but related to the Android framework, use this link: https://android.stackexchange.com.

0
votes
0answers
2 views

Getting error in when obtaining user.getUid()

i am using Fragment in android to share data.In the Main Activity i check if the current is null or not. In the Fragment's i don't check, because i already checked i MainActivity. But when i try to ...
0
votes
0answers
4 views

What is the use of 'notifyPropertyChanged()' in a viewModel class?

This is in reference to https://www.journaldev.com/20292/android-mvvm-design-pattern: The getters in the viewModel class are annotated with '@Bindable' which causes the creation of relevant field in ...
0
votes
0answers
8 views

To call multiple numbers sequentially

I'm trying to write the code for calling multiple numbers sequentially. That means after completion of the current call the next number should be called automatically. Can you help me with this please?...
0
votes
0answers
6 views

Can Dagger-2 constructor injection be overridden for testing?

I am using Dagger 2, and I'm trying to understand how to use different configuration for testing. If I use field injection, I can swap my Modules with fake Modules. But for classes that have ...
0
votes
1answer
12 views

How can I completely unsubscrie from getting push notifications on Android?

In my application I have implemented Push Notification functionality. I added a button for the user, which allows him to turn off the notification completely. However it doesn't work as I excpected. ...
0
votes
0answers
4 views

Linking VTK with ndk-build on NDK r17c results with 'undefined references' errors

I had built VTK on Linux with Android NDK r17c and the result was 54 static (.a) libraries of total 600+ MB. Now, I had imported these librarires to my AndroidStudio 3.3 project and I would like to ...
0
votes
0answers
9 views

upgraded to androidstudio 3.4.1 with newest gradle -> processReleaseManifest Error

I updated my AndroidStudio from 3.2 to 3.4.1 and newest gradle and I get a new error during build :app:processReleaseManifest with following stacktrace: Can someone help/hint me ? org.gradle.api....
0
votes
0answers
8 views

Handle resume sending email in android using Asynctask

So far, I have successfully to send an email with a csv file as attachment using Aynctask like this: package com.tsurumaru.dzil.clientwarehouse.controllers; import android.content.Context; import ...
0
votes
1answer
2 views

capacitor ionic android - can't make GET requests to my server - requests are served “from-disk-cache”

When running capacitor for android, GET requests to my API aren't working, and I am getting weird headers (Client-Via:shouldInterceptRequest) as well as the fact that the request is served from disk ...
-1
votes
0answers
7 views

Testing on previous versions no play services updates

Im trying to test my app on older versions of android, It works as expected on newer APIs with the google play store enabled on the image by default but when trying API 17 (KitKat) for example, the ...
0
votes
0answers
9 views

Admob TestAds dont't show up on device

Admob's Test ads wont show on any of my test Devices but log that they are loaded in the Unity Editor. I have resolved the android dependencies and I will show my Manifest and AddCaller and I have ...
1
vote
4answers
21 views

Is Genymotion emulator effective to run android applications?

Is Genymotion emulator effective to run android applications or using data-cable connected with a physical device to run android applications is better? Which method is faster and more helpful?
0
votes
0answers
6 views

Material design components button global theme overriding broken

I want to simply apply styling to all buttons on a theme level like this <style name="BaseTheme" parent="Theme.MaterialComponents.Light.NoActionBar"> ... <item name="buttonStyle"...
0
votes
0answers
6 views

“Flutter package imports work in Android Studio but not Intellij IDEA CE- Why?”

So basically I’m getting a “target of URI doesn’t exist” in IntelliJ IDEA CE when I try to add any package/dependency and then use the import statement in my main.dart file. But when I open the exact ...
0
votes
0answers
7 views

Login Page can not find SQLite database in Xamarin Android app

Hello I am working on basic login and create account app. The app stores the information locally to a .db3 file when the user makes a account. The issue I'm having is when I go to login to the app ...
0
votes
0answers
8 views

Remove duplicates from ListView adapter

I have created a number of array adapters to filter a ListView from Firebase. Whenever I select a filter ("In-Progress Tasks") on the UI it works, however when I click on the same filter again ("In-...
0
votes
0answers
5 views

Cannot resolve method 'setOnItemClickListener(anonymous com.app.app.adapters.ServerApater.OnItemClickListener)?

So I'm trying to create an intent which would play current streaming video in an external player but I'm stuck with this setOnItemClickListener being red and can't fix it. Here's my code: public ...
0
votes
0answers
10 views

How to affiancate horizontally 2 images in the same Bitmap image?

I have 2 images as android.graphics.Bitmap object. The size of each image is unknown and It could be different each other. I want to affiancate horizontally the two images in a single Bitmap ...
0
votes
0answers
7 views

Android: How to add every item that i've searched for to RecyclerView? (TextChangeListener and Room Database)

I want to search in database using EditText, and then add items to RecylerView. I have problem with adding several items, because of TextChangedListener and adapter.notifyDataSetChanged. I can add ...
0
votes
0answers
5 views

I want to make a condition in my code, and then enter this activity or class inside the program

plz help mi My program is that when the user enters the program after the splash activity enters another page, pressing a button will no longer enter this page, which will confirm the program's rules ...
0
votes
0answers
11 views

Other layouts atop of navigation view while open

I have managed to set up a left navigation menu but am having trouble setting the drawerlayout to open up above the the relativelayout and 2 linear layouts below the navigation view.These layouts seem ...
0
votes
0answers
7 views

Android Notification Channel Description

Public method setDescription of the NotificationChannel class suppose to set the user visible description of this channel. public void setDescription (String description) Could anyone help me find ...
0
votes
0answers
7 views

How to connect to SQL DB with Forced SSL = true from Android app

I have been using JTDS 1.3.0 for a while with great success. Recently I've been tasked with connecting to a MSSQL database with force-ssl = true. Prior to that change I was connecting to the same ...
0
votes
0answers
9 views

Is it possible to configure another android device from an app?

I would like to know if it is possible from an app, to configure another android device, what I am looking for is to establish predetermined configurations in a device according to what I place in ...
0
votes
0answers
14 views

Update data in firebase using android

I am beginner i have some issue i want to add rating points with person number and total rates , initially person# is 1 and total_rating is zero. i want to add rating it update total rates ,these data ...
0
votes
0answers
8 views

Android map fragment with locationButton

I've been doing app for university which will show way the object did by drawning line ( not on road ) and i did one, just with one activity. What i did next is try to do the same but in fragment and ...
0
votes
1answer
11 views

There is a Blank Space in My Music Paths Array

I have a media player that gets all the music on the phone and stores it in an array. However randomly during the debugging process this bracket appeared in the array list. I checked all the folders ...
0
votes
2answers
11 views

ViewPage swipe is hard in some android devices

I Have a view pager for image slider in my activity I have a problem when I try to swipe to another page in some android device like xiaomim, note 8 devices, the movement of the viewPager became ...
0
votes
0answers
5 views

MIUI Permission Denied Activity KeyguardLocked

When application is in background and screen is locked,I'm unable to start activity, there is no exception or warning, onCreate() is just not called. I've been struggling against this problem for ...
0
votes
0answers
13 views

How can i Clean my TouchEventView on my code

I am doing a application where i must save a signature in a TouchEventView and i'm trying to implement a button where i can clean these TouchEventView. I tried a lot of things like closing and ...
-2
votes
1answer
10 views

How to use google drive images in android application

I am trying to fetch some images from my google dive into my android application, using google drives URL, what would be good approach
-5
votes
0answers
14 views

MediaPlayer + RecylerView.Разные item [on hold]

Я создал 2 item в RecyleView. На этих item кнопки play(воспроизведение аудиофайла). Есть код который проверят MediaPlayer, меняет иконки плэй на паузу и тд. Но так как у меня 2 item этот код я ...
-2
votes
1answer
17 views

Confused about storing a specific area in a database [on hold]

"I have selected specific area (100m radius) in google map through CircleOption method in Android Studio. I have only center coordinates I want to restrict that area. But first I have to store such ...
-2
votes
1answer
21 views

Toolbar menu being cleared after being set (When activity is started)

Toolbar menu is inflated in fragment but then cleared later. When activity is first created (or rotated) the toolbar menu is inflated properly in the fragment, but then gets cleared before it can be ...
0
votes
0answers
10 views

A vertical seekbar to show “before-and-after” image in ImageView

Currently what I am doing is that there is a seekbar on top of the imageView. It is free to slide. Left part is the original image and right part is the processed image. There is another seekbar to ...
0
votes
0answers
6 views

How to update firestore data when scrolling a ListView in flutter?

I have a horizontal ListView in my flutter app, it loads data from Firebase Cloud Firestore. Each item has its own unique id. What I want to do is when the user scrolls, I want to update a Firestore ...
0
votes
0answers
9 views

React Native Modal not moving up when keyboard pops

I have this React Native component displayed in a Modal: <KeyboardAvoidingView style={modalStyle.container}> <View style={modalStyle.topBlock}> </View&...
0
votes
0answers
12 views

SQLLITE move column and its data from TableA to TableB

i have two tables below table_a with columns (id, table_bId, name, address, postcode, allowedPermisions) table_b with columns (id, type, level, info) I want to create a migration strategy as we now ...
0
votes
0answers
16 views

Methods for dynamic user input for a database in SQLite

How can I create a dynamic SQLite format for users to create and delete database columns For example, let's say on the activity screen it is initially: Trial 1: Input 1 Input 2 But after an "...
1
vote
1answer
20 views

Android string replacement using pattern

I am currently facing an issue in my android app when trying to search and replace a string. I receive a sentence which contain the keyword ${keyword} it's coming like Today we are ${keyword} and it ...
0
votes
1answer
7 views

How to trust a user added certificate?

I want to test a production app from android in a local network server with a self signed certificate. In order to do that in iOS I can add the certificate to the device and it will be trusted so I ...
-1
votes
0answers
9 views

how do I find out the wrong line of plist files without having to manually search [duplicate]

how do I find out the wrong line of plist files without having to manually search for android studio. I have a lot of data on the plist file so it doesn't allow me to do it manually to find out where ...
0
votes
0answers
11 views

Html input type=“color” crashes Java WebView android app

I have an html/css/js code with which one can design a background for your phone. It works perfectly in the browser, also on my phone, just not when I try to run it using WebView. I uploaded the ...
0
votes
0answers
7 views

Cannot display interstitial ad on splash screen

I want to show interstitial ads on my app's splash screen. But my admob gets error 3 with low fill rate I tried facebook audience network but my placement get blocked due to policy violation Is there ...
1
vote
0answers
15 views

What is most efficient way to create new activity

If i have a submenu which has three option: Create New,Update ,Manage data . what would be the best way ? create new activity for all these? create fragments? or send intent message after menu item is ...
0
votes
0answers
9 views

Is there a way to detect Audio/Video sync on a live stream?

Im trying to detect if the audio and video is in sync on a live stream in an Android Device. I assume both audio and video must have a timestamp(I might be wrong, please advise). Is there any way by ...
0
votes
0answers
10 views

How to share constant data between android native and React Native

I want to define some constant data in a file on the React Native side. For example constants.js, It is going to be used in ReactNative to define some error codes and error titles. I want to somehow ...
-1
votes
1answer
22 views

How to define “either…or”?

I am trying to make a condition which, if gettingupspeech matches either one of the strings, the if function will set resultText to "Correct! Press Next to move on." if(gettingupspeech.equals("5 more ...
1
vote
0answers
23 views

Error to compile Ionic 4 with Angular 7 in Docker

Error to compile Ionic 4 with Angular 7 in Docker I need compile a project with Ionic 4 and Angular 7 in Docker. I doing next steps: I have created an image manually with Java JDK version 8, ...
0
votes
0answers
6 views

Robolectric fails on command line but succeeds in Android Studio

I have a test where I use Robolectric which succeeds in Android Studio, but does not on the command line. I use Robolectric 4.2 and the test involves a cipher which I partially mock for this test. //...