Newest 'android' Questions - Stack Overflow

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.

2
votes
0answers
14 views

How to create responsive ImageView?

I'm building a game for my final school project, and I have this followed problem : When I try to place ImageView on the screen they are placed in different place depending on the mobile screen size. ...
0
votes
0answers
5 views

How to access webpage elements with Android Accessibility Service

I'm trying to access webpage elements with an Android Accessibility Service but all I can do is get the URL, not any of the text on the page. Is it actually possible to get the text off the UI ...
0
votes
0answers
8 views

Android: BitmapFactory.decodeByteArray - reduce image quality

This is my use case: ByteArray ba; // Some value is assigned here Bitmap bitmap = BitmapFactory.decodeByteArray(ba, 0, ba.length); Because the ByteArray object is to large, an OutOfMemoryError ...
0
votes
0answers
6 views

diskCacheStrategy Not working in Fragment

[ @Override public void onBindViewHolder(@NonNull ViewHolder viewHolder, int i) { final ChatUser user = list.get(i); viewHolder.title.setText(user.getName()); Log.e(TAG, "onBindViewHolder: ...
0
votes
0answers
10 views

Android Bundle ArrayOutOfBoundException when getting data

I'm using a bundle to pass data between thread. Sometime when i try to read the data's bundle i got an ArrayIndexOutOfBoundsException : java.lang.ArrayIndexOutOfBoundsException: length=0; index=4 ...
0
votes
0answers
6 views

Android : give permissions at runtime

I am trying to develop an app that would give permissions to some other applications without asking the user. I must get the packages names, get the permissions needed by each of these packages, and ...
0
votes
0answers
4 views

ndk-bundle/ndk-build'' finished with non-zero exit value 2

why this is not building. Android studio giving an error: Android/Sdk/ndk-bundle/ndk-build'' finished with non-zero exit value 2
1
vote
0answers
15 views

Verify every email address (Firebase)

i'm working on sign up of my project and for authentication i'm using fire base. Now i want that my code only verify or authenticate only those email addresses which are already created by gmail or ...
0
votes
3answers
13 views

How to get the datas from constructor passed values in kotlin

I have passed the datas in constructor but how to get the datas in another class? class EmployeeConst(var name:String , var age:String) { var profession:String ="Not mentioned" constructor(...
0
votes
0answers
7 views

How to delete entry from Android KeyStore programmatically?

I have store key pair in Android keystore and now I want to delete it so I can create a new key pair. I have tried the following but the key is still there: public void deleteKey(){ try { keyStore ...
-2
votes
0answers
4 views

How to Find Qibla Direction? Any Simple Sample Code?

I want to apply Qibla Direction but i didn't find any good answer. Main thing i want to apply in a Fragment. I have a class QiblaDirectionCompass but i dont know how i use in Fragment. public class ...
0
votes
0answers
7 views

How to set the Mapbox symbol layer textfield with GeoJSON property value?

I want to create a symbol layer with the textfield set to a property from my GeoJSON file. For instance, in my GeoJSON file each Feature has a property called "rlabel" and I would like to set the ...
-2
votes
0answers
4 views

My proguard-rules.pro doesn't look it ought to, Kindly help me configure my proguard file

My proguard-rules.pro doesn't look like it ought to I tried looking up developer.android and other resources but I need help on how my proguard file is supposed to look like and help with configuring ...
0
votes
0answers
17 views

Create a folder and a text file in it and write into that in internal memory but not in application package scope

I want to create a text file and write some data in it. But I am not able to do it in the location I want to. It always creates a folder in the application installation package. it always creates a ...
-1
votes
2answers
20 views

How to show images fast? I'm using Picasso but it is so slow. Can I show images fast like the Instagram app?

I just want new method for fast image upload. Can you tell us the best way for you to know? I want the images to be loaded at the same time as xml. :)
0
votes
1answer
13 views

How to remove the hability to focus next EditText when we push the return key?

When I'm writing in an EditText, if I push the next/done key then the focus will move to the next EditText. How to forbid this behaviour (programmatically)?
0
votes
1answer
6 views

W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzak@d5a4a6d

I am using Firebase authentication to sign up using phone number. But any sms not being send. I am getting this W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google....
0
votes
0answers
9 views

How to show a bottom navigation drawer when clicking navigation icon on BottomAppBar?

So, I made a memo Android app, and I've used the new material BottomAppBar with a FAB, and I want to show a bottom navigation drawer when I press on the hamburger item (R.id.home) on my BottomAppBar, ...
0
votes
0answers
10 views

Unable to update recyclerview in adjacent fragment of viewpager

I have a viewpager containing 2 fragments. Each of these fragment contains a recyclerview with an adapter that retrieves data from the same SQLite database. The recyclerview in the first fragment ...
0
votes
0answers
11 views

How to restrict user to select a home app from a dialog after automatically starting my app as a home replacement app

I have 2 question regarding this. 1.Can we set our application as Home without asking user? That means first time while closing app android ask user to select a home app and 2 options are there to ...
0
votes
0answers
6 views

I want to get menu(food) from my web and display in android app plus i want to place orders using post request on order form

so far I have succeeded to get a response from the website but that response is not as I need. I need items details like (name, price, image) JsonObjectRequest request = new JsonObjectRequest("...
0
votes
0answers
11 views

This merchant is not enabled for google pay

I have implement Stripe SDK which supports pay using Google pay. All working good but it's give me a one error like : This merchant is not enabled for google pay Already generate merchantId in ...
0
votes
2answers
13 views

Pass object or objects id to new activity

If I have a list of certain items (let's say fruits) in one activity. Here the items are completely loaded from a ROOM database. Clicking on a Fruit should take you to the FruitDetailPage. Ofcourse I ...
0
votes
0answers
12 views

Testing the database update process in Android

How do you test the functionality that upgrades the SQLite database in an android application? Suppose I have some basic table: create table x ( _id int primary key not null, name varchar ...
-3
votes
0answers
10 views

What is the tech stack both in front end and backend by inshorts Android app

I need to know about logical architecture view of Inshorts application and the technology they will use in frontend and backend.
1
vote
0answers
14 views

Why is unit testing harder in MVC than in MVP and MVVM

I've been doing some research on pros and cons of MVC/MPV/MVVM and one common theme is that MVC is harder to unit test than MVP and MVVM but I don't fully understand why. From my current ...
0
votes
0answers
10 views

Keytool doesn't show any output

Command line tool "keytool" is not responding. It doesn't show any errors or whatsoever and doesn't shut down. I'm using OS X and have jdk installed (other tools work fine). I have googled it through ...
0
votes
0answers
8 views

Cloud function for notifications is not working anymore

For a mobile application that I create and is using firebase a friend create for me a cloud function that if someone posting something is sending a notification to users. I show this days that the ...
0
votes
0answers
9 views

Access UI-Elements in an Android App/activity?

I need a way to find UI-Elements' Xpaths/Id when I click on any of its Elements like Button or icon. Example - When I click on any Element like a button on My app, I want the Elements Xpath/Id to be ...
-1
votes
0answers
24 views

Could not find gradle.jar (com.android.tools.build:gradle:3.3.0-rc02)

The run time gradle error : Could not find gradle.jar (com.android.tools.build:gradle:3.3.0-rc02). Searched in the following locations: https://dl.google.com/dl/android/maven2/com/android/tools/...
-3
votes
3answers
18 views

How to show Out of stock Items in android application

I want to display FIRST in stock items THEN out of stock items. Within those two groups, the products should be alphabetized.
1
vote
0answers
14 views

Android 9 surface not onKey for back batton (navigation) during first start of application

My application works fine from android 4.2 to 9.0 but on Android 9.0 just for first time start SurfaceView not receive onKey event when I press back button (navigation). After restart on just after ...
0
votes
0answers
8 views

Define enum accessible from any submodule, in gradle

I have an Android Project with many modules. I defined enum enum Season { Summer, Fall, Winter, Spring } in main module's build.gradle but I cannot access it from any of the submodules' build....
1
vote
1answer
20 views

i want to get incoming call number but number is empty

I want to get an incoming number whenever anyone is going to be called but getting empty even after use PhoneStateListener and BroadCastReceiver. First, clear my doubt that which one is the best to ...
1
vote
0answers
16 views

Firewall configuration for Firebase Authentification (Android)

We have built an Android app which uses Firebase for user authentication. Our (large enterprise) client is planning to deploy it behind their firewall. During initial testing, the authentication stage ...
0
votes
0answers
24 views

Reading a file from server using Java

There is file PULS.TXT on URl mobile.puls-radio.ru How can I read this file from java code ? I use this code, but does not work URL url = null; try { url = new URL("http://mobile.puls-...
0
votes
0answers
13 views

What are the chances of getting same ANDROID_ID for more than one device at any instant?

Prior to Android Q, it is impossible to get the non-resettable identifiers like IMEI, I used IMEI to identify a particular device. Since I am working on a Banking Application, I need IMEI. But, now I ...
1
vote
0answers
15 views

Android button position fixed to bottom until scroll to its parent layout position

I want to add a button to my layout which is fixed to bottom in screen until user scroll and come to its proper location in the parent layout. Here the button stayed in bottom while scrolling when ...
-1
votes
0answers
9 views

Change SeekBar Thumb size - Android Java

I am completely new to Android and Java programing. I Want to change the size of thumb of SeekBar dynamically as user changes the progress of SeekBar. Please help me. Thanks in advance.
0
votes
0answers
7 views

How to use html5 video tag in Xamarin.forms based webview?

I am using xamarin.forms webview and have implemented video tag in my html5 code to play video. I test it on IOS and Android. None of both play the video. What I am doing wrong?, I read on some SO ...
1
vote
0answers
20 views

WorkManager executing enqueueUniquePeriodicWork() multiple times at once?

I'm new to this so do let me know if the question is badly worded! I have an Android app that needs to execute a task roughly every 15 minutes even if the phone is on lock. The context is: - Im ...
0
votes
1answer
17 views

Why JobScheduler is not working as expected

I am using JobScheduler to run the job every 15 mins. But It is not working as expected. Here I attached my code. public class WorkScheduler extends JobService { private static final String TAG =...
1
vote
0answers
15 views

On using double tap on back button to exit app jquery code in cordova and touching on the screen, the app exits

I'm trying to create a Cordova app for Android. In my app I need functionality where, on clicking the default back button of my Cordova app, it shows a notification/dialog box/message that says "Press ...
0
votes
0answers
15 views

Android App not scanning for beacons after the first run

I am trying to build an app where the strength of the nearest beacon is detected (by the signal strength) and the corresponding API must be called (with the beacon ID as a parameter). The app asks ...
1
vote
0answers
12 views

Calling skype for bussines account from normal skype app

I need to make a call to skype for business account through the normal skype app using the intent in android. I have tried a lot of options but no one works. option1: val skype = Intent("android....
1
vote
0answers
10 views

Android SDK player automation

I am automation the android SDK player. My Video player is Android SDK player not HTML5 or Flash. How can we perform the below scenarios on Android SDK player. Subtitle detection inside the video ...
0
votes
2answers
18 views

Android Studio emulator not starting when I run the project

It was working fine until today. When I clicked run button, emulator selection tab was showing up and I could choose an emulator to try my project. But today, when I click run button, emulator ...
1
vote
0answers
21 views

How to encrypt in a client side (Android) and decrypt in a server side (PHP) with “Tink”

I have used this demo for the Android side. In my case, I want to set this encrypt and decrypt process in the REST API. if someone has API through the reverse process(decompile) of Apk and call this ...
0
votes
0answers
12 views

How to animate and rotate my car on map like uber in Android?

I want to animate and rotate my car on Map like uber in android. and i am saving location on Firebase realtime database. and also getting location from firebase realtime. my code is below--------> ...
-4
votes
0answers
20 views

Upi integration to create app like google pay & bhim.Any suggestion? [on hold]

I am getting code only regarding Upi payment using other Apps(like bhim, google pay) but I want to create my own app for Upi payment wthout using any other apps.