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 ...

0
votes
0answers
3 views

Firebase realtime database: How to use addValueListener

I'm a beginner in Android programming and creating multiplayer game using firebase. I'm thinking of the logic of how users can start the game.What I am trying to do is to show Toast when the room ...
0
votes
0answers
7 views

Android Google Map and firebase Dependency Issue

I am working on maps along with firebase for the very first time and stuck on dependency issue. Please fix the version conflict either by updating the version of the google-services plugin (...
-1
votes
0answers
9 views

how to convert curl to okhttp request?

how to convert curl to OkHttp request?curl http://localhost:4000 \-F operations='{ "query": "mutation($files: [Upload!]!) { multipleUpload(files: $files) }", "variables": { "files": [null, null] }...
1
vote
0answers
6 views

Lint found fatal errors while assembling a release target - gradle error?

I am using AS 3.1 with gradle-4.5-all.zip and main build.gradle:buildscript {repositories {jcenter()google()}dependencies {classpath 'com.android.tools....
0
votes
0answers
8 views

Why phoneState receiver gets empty incoming number

I want to block outgoing calls if a phone number is not in applications white list and there is more than one broadcast, and the first one has empty incoming number so that the call does not blocked ...
0
votes
0answers
9 views

How to confirm service is a foreground service

I have a service playing music (media player) and it's working fine.How to coinfirm this service is a foreground service?How to simulate system load and check if the service will be killed or not?...
0
votes
0answers
13 views

im getting an error when i try to send data to my database when converting to json i think. how do i convert string to json

im getting this when I click the register button in my app10-20 20:32:13.688 9146-9146/asylum.lotto.steed.codelotto W/System.err: org.json.JSONException: Value <br of type java.lang.String cannot ...
0
votes
1answer
7 views

is there any quick way to utilise an activity as a service

I have a ginormously huge activity whose primary task is to just upload audio files and images from some particular folders. but not, in short, it's needed to perform this in the background , as a ...
0
votes
1answer
13 views

Unable to get the Downlaod Url of a file from Firebase Storage

i m working on an Android project based on pdf generation and get stored on the firebase storage, and get the Download url to download the file, my file is automatically selected and uploaded at the ...
0
votes
0answers
9 views

Read P2P WIFI Direct Signal Strength

I have a project in my study on wifi p2p direct,and I need to read the signal strength between peers.can I read it by java code,if I can't how can read it?
0
votes
0answers
17 views

error : Object reference not set to an instance of an object

i trying to create a file and trying to read but i am getting this error :- Object reference not set to an instance of an object.same code i used previously that time i didn't get this error....
0
votes
0answers
9 views

Why do I get: “preserveIconSpacing is private” error

I took an old android project of mine, that was developed on eclipse Luna few years back and tried to revive it.I have imported it into android studio which I was told can convert it into it's own ...
0
votes
1answer
21 views

EditText loses user input after scrolling through ListView

My app is loading data from a SQLite database and loading them in an EditText inside a Listview. Whenever I change the value of the edit text and scroll down the list the EditText goes back to the ...
-1
votes
1answer
15 views

Rounded tab layout

How can i get rounded tab layout like this in image
0
votes
1answer
16 views

How to simulate android back button press programmatically in Unity with C# [duplicate]

I have done the same thing in android natively by simply calling onBackPressed().I've been trying to do the same thing in Unity with c#. there are classes like Input that handles inputs but does not ...
0
votes
0answers
7 views

Facebook sign in isssue using FacebookAPI

I'm trying to login from facebook and google api, the google api works fine, the problem arises with facebook login, everything is setup on the facebook developers console and my app is live as well....
0
votes
1answer
11 views

Intent.CATEGORY_APP_MUSIC with Intent.setDataAndType returns no result

I have an audio file which I want device default app or any other installed apps that can handle audio files play this audio. So I have this:private void playMedia(String mediaPath) {try {...
0
votes
2answers
32 views

GsonFromJson: how to serialize and de serialize with array structures

Im working on a project where we used jsonfile as its database since SQLite doesnt meet the requirement. The project has a portion when an object fron the wordbank is use it will change the status(...
0
votes
0answers
16 views

Android application talking to Raspberry Pi

I currently have a Python script on a Raspberry Pi that will check the WiFi for my phone and when it does it turns on my smart light. I am thinking of making an Android app that can change the ...
0
votes
1answer
14 views

Writing an External File in Kotlin

I am trying to write a data into an external file using the below program. Neither getting any error nor output (file is not created too. ) Any help is appreciated. Below is the complete code. Main ...
0
votes
0answers
11 views

Espresso : How to click on an item at position 2 in AdapterView

I am new to Espresso and Mobile Testing, and I am facing a challenge. I have to search for a contact in App and click on contact displayed at second position.I checked many posts which were similar ...
1
vote
0answers
15 views

Android VideoView Freezes after running for long time (more than 24hrs)

I'm making an app that plays videos in a loop. It is supposed to play forever as long as the device is on. I have a list of videos in a variable and I use index to loop through every video to play it. ...
0
votes
0answers
14 views

One of that data doesn't appear dynamically for each marker

My application consists of a map, with markers added by the users, each marker has its own respective name, description, location, and image added by the users, when a marker is clicked, it displays ...
0
votes
1answer
7 views

No IDEA annotations attached to the JDK 1.8 (C:\…), some issues will not be found

I am also stuck with this same issue since last day on 3.2.1 version.change your gradle version its work Go to File -> Invalidate Caches / Restart... -> Invalidate Caches and Restart
0
votes
0answers
13 views

Advantages of using Appium vs Uiautomator

I'm new to mobile automation and I'm planning to automate a native Android app (not my own so I have only the APK file) so I was reading about the tools available for Android automation. I came across ...
0
votes
0answers
10 views

What is the best way to filter by multiple fields in firebase? [duplicate]

I'm building an app in android that lists all upcoming video games and I'm using firebase real time database as my back-end, but I feel limited on how I query the database to fetch the exact data I ...
-1
votes
1answer
11 views

The logistics of getting an existing Android app to iOS via Kotlin

Let's say I have an existing app written in Java and I was successfully able to translate it into Kotlin. At this point is it just a straight copy and paste job from Android Studio to Xcode? What I ...
0
votes
0answers
11 views

adSize not found, Android Studio not linking ad framework?

I'm following https://developers.google.com/admob/android/quick-start?hl=en-US#import_the_mobile_ads_sdk .<com.google.android.gms.ads.AdView xmlns:ads="http://schemas.android.com/apk/res-auto"...
1
vote
0answers
12 views

FusedLocationProviderClient stops giving location in idle situation

I'm working on location tracking application using FusedLocationProviderClient. I have a background service which tracks location of phone in every 5 minutes.All works well with it, but once the ...
0
votes
1answer
15 views

Method called BEFORE orientation change

After the orientation changes, this method is called:@Overridepublic void onConfigurationChanged(Configuration newConfig) {super.onConfigurationChanged(newConfig);}But how do I take action ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,