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.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

Copy file method (e.g. picture) from android device (e.g. cell phone, tablet…) to PC

I'm trying to Copy file (e.g. picture) from android device (e.g. cell phone, tablet...) to PC, but i did stack I did get the path and read and execute shell command to the device folder like device = ...
0
votes
0answers
3 views

Is there any way or method to get the warning messages from the Tello Drone

I am trying to develop an android app to control the Tello drone. I am using the android studio. I have set up a UDP client in my app to send commands to control the drone. I am now able to send ...
0
votes
0answers
8 views

How to query all data in firebase realtime?

I want to compare text with data from firebase. Below is my code and it reads name only from ing01. but actually i want it to read from all ingredient data, not only ing01. Please help me, thank you. ...
0
votes
0answers
8 views

ERROR: Supplied String module notation 'androidx.cardview.widget.CardView' is invalid

ERROR: Supplied String module notation 'androidx.cardview.widget.CardView' is invalid. Example notations: 'org.gradle:gradle-core:2.2', 'org.mockito:mockito-core:1.9.5:javadoc'.
0
votes
0answers
12 views

How to check if Int value is @ColorRes or @ColorInt?

I have a method in which I can pass an int color value fun setTint(color: Int) { } I can pass both R.color.black and Color.BLACK to it . In the method I want to check if it's @ColorRes or @...
0
votes
0answers
12 views

I have used Database Reference then why i am getting all user data into recyclerview i only want only one user data into recycler view?

Below is my current recyler view screenshot...i am getting staydetails all 8 nodes data its ok when i search single user but it also add into list of another user child node staydetails data that i ...
0
votes
0answers
9 views

is possible to read push notifications?

some games or applications are sending push notifications to the user, I want to create an app wich can detect specific messages on that and send an alert or animation on the phone. but that's ...
0
votes
0answers
14 views

I just updated android studio to the lastest gradle version and Im getting this error

What went wrong: Execution failed for task ':app:mergeDebugResources'. Multiple task action failures occurred: A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$...
0
votes
0answers
6 views

How to fix image display incorrectly in FlexboxLayoutManager?

I have a RecyclerView in which the FlexboxLayoutManager is located. My problem is displaying images in FlexboxLayoutManager: image As you can see in the image, there are gaps and I would like ...
0
votes
1answer
18 views

Android: not able to play video using videoview

Please find below xml <VideoView android:id="@+id/video_view" android:layout_width="match_parent" android:layout_height="match_parent" /> Java Code: String url =...
0
votes
0answers
9 views

email attachment is blank when using android intent

I need to send an attachment along with some basic information by mail using my app. But the attachment is blank when I'm trying to invoke the mail activity using intent. Here's the code for getting ...
0
votes
0answers
9 views

Using Fragments as NAVIGATION DRAWER

i have an activity with two fragments in it, now i want to use one of the fragment as navigation drawer in the application (slide in/out at button pressed) activity_main.xml <?xml version="1.0" ...
0
votes
2answers
20 views

Problem in viewing in custom-listview in android

I wanted to display some images from a folder form mobile SD card. I written an adapter to display image and file name. Unfortunately the app is not showing the list view. What's wrong with the code ...
0
votes
2answers
38 views

Why use Java/Kotlin instead Python on Android?

I'm novice. That's why I can't understand the essential difference between using Java/Kotlin or using Python with its numerous modules for Android application development. Is there a good reason that ...
0
votes
0answers
10 views

When moving a view item up using translateY() function, part of it hides behind another view item

I have two FloatingActionButton items on a view. After I move them up in the view, part of them is not visible anymore. I have tried to solve the problem using bringToFront() function with no success....
0
votes
0answers
5 views

How to setup Epoxy clickListener callbacks properly?

I have implemented epoxy according epoxy Wiki. I have several List<items>. I update the controller with the first List<items>, everything works fine. But then I update with the next List&...
0
votes
2answers
20 views

How to leave space, go to next line , underline or make characters bold in knife.fromHtml() ? \n, \t, \r nothing is working

String x = this is my \n sentence; knife.fromHtml(x); When I use this sentence is not displayed in a new line
0
votes
0answers
7 views

How to compile a kivy project with other libraries?

I just make a python file with kivy, cv2 and webcolors. Watch this! from kivy.uix.widget import Widget from kivy.uix.boxlayout import BoxLayout from kivy.uix.gridlayout import GridLayout from kivy....
0
votes
1answer
21 views

Resizing only the height of CardView also changes the width

I currently have a recycler view that has a list of CardViews. When I click on the card I want to be able to expand the card (change only the height). This is working fine by setting the new height ...
0
votes
1answer
14 views

ViewPager with adapter “ ” requires a view id In AsyncTask

I have an AsyncTask in which I create a ViewPager and when I assign an adapter to it, this error appears java.lang.IllegalStateException: ViewPager with adapter [email protected]
0
votes
1answer
38 views

Unable to resolve dependencies with Android Studio and Firebase

Following are the error I get, please help me! ERROR: Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve com.google.firebase:firebase-core:17.2.0. ERROR: ...
0
votes
2answers
23 views

how calculate sum of the integres i insert in edittext everytime i insert an integer?

i have a recyclerview with one textview in it. and i have an add button and one edittext outside it that only accept integers and add them to the recyclerview when i press the add button, how to make ...
0
votes
1answer
19 views

Get data from JSONArray

I'm trying to parse data from my json with the following kotlin code: val text = JSONObject(URL(request).readText()) val results = text.getJSONArray("results") val name = results.getJSONObject(5)....
0
votes
0answers
10 views

How can I make a LED work with Java and IOIO?

I need to develop an app that launch a video and light on a LED at the same time. App containts three screens : home screen (or menu) on which there will be two images / one screen for the "gare" ...
0
votes
1answer
12 views

Extra null for Android Notification with PendingIntent

I am trying to send a int Extra to an Activity when a notification is tapped. When I tap the notification the activity launches, but the extra is always null. I have checked a lot of similar ...
0
votes
1answer
15 views

Retrieve multiple datab by synchronization from Firebase Android

I am trying send my contacts to firebase one by one and checking if the user is present or not but due to the asynchronous behavior of firebase some information is showing twice. I want to ...
-1
votes
0answers
13 views

Galaxy Tab S4 bootloops with Set Warranty Bit: recovery

I was using this tutorial https://appuals.com/how-to-root-the-samsung-galaxy-tab-s4/ and I was gonna follow step 11 and im in a boot loop saying set warranty bit : recovery and others had this problem ...
0
votes
3answers
45 views

Can I learn python for building android applications? [on hold]

I am starting to learn python and I don't know much about programming right now. In the future, I want to build android applications. Python looks interesting to me. Can I use python for building ...
0
votes
0answers
8 views

How to find exact distance between an image target and ARCamera in Unity using Vuforia?

I want to make an android application with unity and vuforia. in the application, I want the app to scan an image and show the exact distance between mobile (ARCamera) and the image. I am using ...
-2
votes
0answers
17 views

Uri showing as null object when calliing intent on camera

Every time I press tick on a photo from camera, the app crashes. I've attached the code as well as log report here for the reference. Please help me with the reason why the error is showing. I want to ...
0
votes
0answers
16 views

How can I make a POST retrofit request with a List of Object in parameter?

i want to do a Post request with retrofit but I get error 500 internal server and I don't know why. The request is working fine on Postman. The parameter is a list of Object : @FormUrlEncoded @...
0
votes
0answers
14 views

Audience Network [HELP!]

Very good day to everyone, recently I am experiencing some errors (which I think have nothing to do with the programming part in the app) regarding Audience Network, when I show an interstitial it ...
0
votes
0answers
7 views

Android/WearOS Program Structure

I am new to Android development and wanted some guidance. I am building a Mobile + WearOS app. I have a shared project, which I expect to be for the objects each device will manipulate. I have SQLlite ...
-1
votes
2answers
45 views

Boolean value changed but not recognized by if statement

I have two classes, "class1" and "class2". When I initialize a boolean called "test" (true) in "class1" and ask for it's value in an if- statement in "class2" everything works fine. But as soon as I ...
0
votes
0answers
14 views

Adding animation to imageview in Slide Adapter

1.this is the page adapter code where i add the setanimation ''''public SliderAdapter (Context context) { this.context = context; } public int[] Slide_image = { R.drawable....
-1
votes
0answers
22 views

How to make an app which executes custom .txt scripts for Android [on hold]

I have a problem. I built an app which can backup/restore or edit Apk's data files without root. But i want to use custom .txt scripts/patches for helping people to use LuckyPatcher's custom patches ...
0
votes
0answers
14 views

Android ScrollView Error - IllegalStateException: ScrollView can host only one direct child

I have been getting this "ScrollView can host only one direct child" even though I am only using one main layout in the layout XML code. Basically what I'm trying to do is call/start the ...
2
votes
0answers
21 views

Is there some software to design Androd UI faster/better?

i'm an android developer. Since the first day into android studio i started complaining about my abilities in graphic design for activities UI and now i'm looking for a guide or a tutorial that could ...
0
votes
1answer
18 views

RecyclerView holder always is wrap_content

I have this layout with a recyclerview: <?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/...
0
votes
1answer
31 views

Digits after the decimal point are being replaced by zero

I would like to grab the highest number of a list of prices coming from a json file. To do so I sorted my prices with the code below . Unfortunately the code return the price sorted but without the ...
-1
votes
0answers
11 views

Is it possible to draw a route between many locations on map in Flutter app using Google Maps?

I create an app in Flutter and I want to draw a route between many locations using Google Maps. I know that possible is created route between two lcoations but with many? Is it possible to create and ...
-1
votes
1answer
10 views

I would like to write Script to write Script on the scripting white board

I am trying to make a scripting tool that would bring up text buttons such as " button script view" . When clicking on this text, in a frame below it would add the script " Button button=(Button)...
1
vote
0answers
11 views

I am getting a lot of zygote64 logs on my app start. What does it means?

On the app start, at the beginning of Logcat logs, there are a lot of zygote64 logs and they are repeating several times. I have just pasted a single chunk of 4 of them. The other 3 are the same or ...
-2
votes
1answer
28 views

Is there a way to login to a website (like gmail) with an android app?

so I got a website like Gmail and need to login to this website and then press a button. I want to make an app for this, where I can parse in my Username and Password and then can click on my Mobile ...
0
votes
1answer
49 views

variable return null after method finished

im trying to make a function that translate a text and print the result. im using firebasetranslator. by debugging, the app starts but the textbox is empty. trying to put a marker on private void ...
0
votes
0answers
18 views

where to put js file on page for correct behaviour in android

On my site, I use a "back to top" button to scroll smoothly to the top of the page. My anchor is immediately after the <body> tag: <a id="button"></a> In the <head> i load ...
0
votes
1answer
29 views

backgroundTint in XML does not change color of BottomActionBar, even with min API >= 21

I'm trying to set up a basic BottomActionBar with an attached FloatingActionButton. Currently, everything seems to work, aside from the background of the bar. If I use android:background="...
0
votes
0answers
16 views

How to mirror Android screen on computer and send inputs programmatically?

Something like scrcpy but that I can implement in a project so that I can send touch commands via program.
0
votes
0answers
11 views

Send data from Tablayout to fragment

In my project I have Tablayout . when I select one tab I want to send his position to the fragment . Note (Tablayout and fragment are in the same actitvity) I try this code activity private ...
0
votes
2answers
30 views

Android Navigation Error: java.lang.IllegalArgumentException: navigation destination com.example— is unknown to this NavController

I am getting an Error: java.lang.IllegalArgumentException, the error occurs only when i navigate to RegisterFragment from LoginFragment and then press back button to go to previous fragment(...