/r/AndroidStudio

Photograph via snooOG

Here at /r/Android Studio, we provide information regarding the Android based IDE - Android Studio. Let it be Tutorials, Update Change Logs, Projects that users have created or anything else, you will find it here.

Lets all make this a dedicated community where everyone shares and learns!

For anything related to Android Studio IDE and related material, you will find it here.


Rules (at a glance)

  • Any post must have some kind of material regarding the development of Android Studio / Android itself.

Android Studio Information

Related Android SubReddits :


Attention:

The moderators of /r/androidstudio reserve the right to remove any "bandwagon" or direct reply posts. If you have a response to an existing post, reply in the comments section to avoid having your post removed.

/r/AndroidStudio

9,782 Subscribers

1

Double running devices window

Hey,
I did an update of Android Studio and now the Running Device window is divided.. and the second part shows nothing...

Does anyone have the same problem?

https://preview.redd.it/tt1ayh107t4e1.png?width=968&format=png&auto=webp&s=8d278da422070da8317e68d5d4a16fb1ee2b2552

0 Comments
2024/12/04
10:27 UTC

1

Run Android 15 on a Raspberry Pi 5 for debugging on real hardware

0 Comments
2024/12/03
22:54 UTC

0

Is there any working, non-plugin-needing, way to get the old UI back on Ladybug?

..because if I wanted to use VS Code, I'd use VS Code.

Spot the difference..

I wish they'd fire those middle managers at Google who only get their bonus if they change stuff that was working perfectly fine before..

Unnecessary changes like this waste countless developer hours when people need to learn where everything is again, after years of happily using an existing workflow, and also makes untold numbers of tutorials and documentation obsolete and/or confusing.

Unnecessary. Please Google, find better ways of running your performance review metrics than "how many entirely new features"; fixing bugs, updating documentation, refactoring APIs for streamlined DX, for instance. This will fall on deaf ears I'm sure.

/rant

0 Comments
2024/12/03
17:35 UTC

1

Android Studio: utf-8 encoding in Run window

Just upgraded Android Studio to Ladybug | 2024.2.1 Patch3 and found that the Run Window does not display utf-8 characters. All previous versions, including Koala, do this with no problem. But Ladybug does not display them.

Tried adding: -Dfile.encoding=UTF-8 in studio64.exe.vmoptions and in Edit Custom VM Options..., Edit Custom Parameters..... To no avail.

I don't know how they broke something that was working fine all this time, but maybe someone knows how to fix it?

https://preview.redd.it/r3yxtqpb3o4e1.jpg?width=716&format=pjpg&auto=webp&s=a2d03e0884968d817c77d2dafbd6deceebf7a732

0 Comments
2024/12/03
17:17 UTC

1

Android Studio "dle" game

Hi! I want to make a "dle" type game for android studio (see loldle, pokedle, gotdle, dogsdle...).

Does anyone know about these kind of games that have a github or a guide or something? I'm pretty new to this so any help is appreciated!

0 Comments
2024/12/03
14:53 UTC

0

Where to find tutorials

Can't seem to find any tutorials on how to use this thing online and it's completely overwhelming and I have no idea what to do to start so if anybody could help me out I'd appreciate it

2 Comments
2024/12/03
09:15 UTC

0

Is MacBook Air M3 with 24GB ram enough for buildign apps and running flutter tests

Hey guys,

I'm running a test on Android Studio with the emulator at work. On my old Windows laptop, it's very slow, and the entire system crashes regularly. So, I'm considering an Apple laptop. Unfortunately, Pros are expensive, and my only option is Air. Would that be enough? Thank you.

I'm also considering a MacBook Pro M4 with 16 GB RAM, which costs only 100 bucks more. Would it be a considerable upgrade? Or the Air is enough?

1 Comment
2024/12/02
22:39 UTC

1

Trouble downloading

When I go to the download page of Android Studio and click 'Download' it redirects me to this page, that should trigger the download, but since mid november it's down. Checked with downforeveryoneorjustme.com to see if the problem's my computer, but no. Here's the thing, in my internship's office I had no trouble downloading it.

Is there any other way to download Android Studio? Is it down for everybody else?

1 Comment
2024/12/02
12:09 UTC

1

Can a class be parcelable and serializabe?

Because now when I try to pass an object using intent I get an error and my app crashes and it says the object I am passing is null

2 Comments
2024/12/02
07:51 UTC

0

Google play console issue

Got my app up and running. The app passed our testing tracks and now we try to release it to production (make it public). Google keeps rejecting the app from production because the first activity is the subscription activity which requires the user to purchase a subscription before moving on. Google says they have to check the app and they can't do it because of the subscription requirement. Any suggestions?

0 Comments
2024/11/30
13:34 UTC

1

ERROR Cause: zip END header not found

Hi. I'm trying to develop an UI to create an App for controlling a cat door device. I saw that the best option is to create the App and I took a course to create de UI but when I am opening Android studio, I can't see the design editor, where I can drag and drop buttons, text and the whole design palette. The only thing I see is this error: Cause: zip END header not found

I would really appreciate your help. Thanks!!

0 Comments
2024/11/28
21:03 UTC

1

struggling to troubleshoot Unsatified Link Error

I'm still an android studio novice (as well as a java novice); I've been learning it for one of my uni classes and this is my first time getting deep into the weeds with it so I'm struggling with understanding the file management structures.

THE SHORT VERSION:

I want to use a function from openCV's ximgproc library. The code compiles fine but instacrashes at runtime with the message:

"java.lang.UnsatisfiedLinkError: No implementation found for long org.opencv.ximgproc.Ximgproc.createStructuredEdgeDetection_1(java.lang.String) (tried Java_org_opencv_ximgproc_Ximgproc_createStructuredEdgeDetection_11 and Java_org_opencv_ximgproc_Ximgproc_createStructuredEdgeDetection_11__Ljava_lang_String_2)"

Note that openCV's core functionality (for example canny edge detection) works. It seems to just be ximgproc stuff that's giving me grief.

THE LONG VERSION:

I am working on my final project in a repurposed version of one of the lab project files that was provided to me by the course, which includes this dependency:

implementation 'com.quickbirdstudios:opencv-contrib:3.4.5'implementation 'com.quickbirdstudios:opencv-contrib:3.4.5'

My goal here is to work with this package and not try to use CMake to implement openCV manually (already tried, 0/10 extremely painful experience that not even the TA and I could figure out together). This should theoretically be fine since this includes the ximgproc files. So going off that, the next step is to check that this package contains the ximgproc library. I looked inside my global gradle cache, extracted the .jar file associated with quickbird studios and found that yes, it does contain a subfolder called ximgproc with a bunch of java files associated with the various functions in the library.

The next step (according to chatGPT at least) was to verify that the native code, or .so files, is also present. This is where I've gotten stuck, because I cannot locate a folder with any .so files. Also in the dependencies is the line:

implementation fileTree(include: ['*.jar'], dir: 'libs')implementation fileTree(include: ['*.jar'], dir: 'libs')

Which seems to suggest that the .jar file should have a subfolder called 'libs', but all it has is a manifest .MF file and then a bunch of java files. Nowhere in the app project structure is there a folder called 'libs' either. So I am now pretty lost. What is most confusing to me is that the core functionality of openCV is present, but ximgproc doesn't work. Would love some advice or guidance if anyone has any. Thanks in advance!

0 Comments
2024/11/27
23:27 UTC

1

Running android studio apps on windows

Hello,
My employer wants me to run an app that is coded on androidstudio on a windows tablet. My knowledge of app development and androidstudio is pretty much how to code an app and upload it to an android device.
Right now the only idea I have is to install androidstudio on the other device importing the app and running an emulator, I don't know if it's possible, I'm working from a different country now and it's a new tablet.
Even so, from my experience with the android studio emulator I don't think it is the best for an app that shows videos and requires a lot of interaction.

Does anyone know of a good way, and hopefully simple way, to run this app on a windows device.

0 Comments
2024/11/27
12:31 UTC

1

Help setting Android Studio for old SDK version

New user, my goal is to try making a few unsigned apps for Android 4.0.4 for an old device that I have. Now, I just downloaded Ladybug in Windows 10, then chose the empty activity preset. Everything synced and seemed okay at that point. Next, after reading up about programming for old Android versions, I added SDK 15 level in SDK Manager, followed by editing build.gradle.kts (Module) for compileSdk = 15, minSdk = 15, and targetSdk = 15. When I ran Make Project, I got an error: "In order to compile Java 9+ source, please set compileSdkVersion to 30 or above." That makes sense, but it seems I need to go the other way and install a Java source lower (6?) that's compatible with the SDK level if that's what it takes.

I'm wondering, is there a recommended website tutorial (or book) explaining steps to set up properly for a specific old SDK level?

2 Comments
2024/11/27
05:00 UTC

3

Latest Versions of Android Studio Unstable

Hello!!! I don't know if it happened to anyone else, but I noticed that Android Studio is unstable, especially when the latest versions are installed, since I had an app developed, which compiled, with version Android Studio 2024.1.2.12 on Windows and after I updated to Android Studio 2024.2.1 version.

Windows 11 the app, I entered Android Studio and it asked me to update the version of Gradle and there it stopped compiling and gave incompatibility errors with the Java version that I had installed, which I had not updated.

The worst thing about the problem is that if you ask Geminis he gives you a lot of answers and which if you try to follow do not solve the problem and you will lose more. And here I am fighting a problem that according to Gemini is due to an incompatibility between the Android Studio SDK and Java. Has this happened to someone else or am I just the problem, and I don't know how to solve it? I think Android Studio is a good tool for Android development but it has these problems that arise out of nowhere.

Post Data: In the end I had to go back to the previous version of Android Studio and synchronize again with the previous version of Gradle,

Only then I was able to recover the functionality and compile the App. And good luck that I found this solution, because it had happened to me before, with a previous version of Android Studio, but on that occasion I thought that I made some improper modification and well I started to fight, I don't remember how I ended up solving it,

But now it happened to me again and it caught my attention.

What do you think and what can I do so that the same thing doesn't happen to me???

6 Comments
2024/11/22
13:01 UTC

1

Bugs Android Studio in M2 MacBook

The files are open at the beginning of the video, but by the end, they are closed.

The IDE reloads whenever I switch to a different application, and upon returning, it refreshes, causing all open files to close and work to be lost. This issue has persisted across the last few versions of Android Studio.

https://reddit.com/link/1gx4769/video/lcu30ptjbf2e1/player

0 Comments
2024/11/22
09:42 UTC

2

Help with setting up Android Studio

Hello im trying to do a project in android studio however I keep having issues with just getting a application to start without giving me errors

Im using 2019 3.5.3 with my own instal of jdk 8 (i need to use a older version as im trying to run a old sdk for a robotics project)

im using sdk 23 with build tools 23.03 and Source compatibility 1.8 with target compatibility 1.8

when i try and sync with gradle i get 7 errors with 1 being a manifest merger and the other 6 errors being
ERROR unable to resolve dependency for 'app@debug.compleClaspath': Failed to transform artificat..

any help would be appreciated thank you i can attach photos or send more info but i haven't changed anything else
if it matters im using the pepper sdk plugin as well

2 Comments
2024/11/21
14:38 UTC

1

I'm applying for a local contest, I need help.

So basically, one of the contest rules is for the app functionality to work on Android 14 (API 34). What should I set as the minimum Android version the app should be compatible with? It's a simple app like fb marketplace, not a video game.

1 Comment
2024/11/20
11:06 UTC

1

What's wrong with this screen setup

Following code results in crashing my (first try to make an) app. Can't figure out why.

<?xml version="1.0" encoding="utf-8"?>

<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/main" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/app_cardview" app:layout_constrainedWidth="false" tools:context=".MainActivity">

<TextView
    android:id="@+id/text_employee_name"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginTop="8dp"
    android:text="@string/__employee_name__"
    android:textColor="@color/ksh_blue"
    android:textSize="20sp"
    android:textStyle="bold"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintHorizontal_bias="0.5"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

<LinearLayout
    android:id="@+id/LL_employee"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:gravity="center"
    android:orientation="horizontal"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@id/text_employee_name">

    <TextView
        android:id="@+id/text_employee_function"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/__employee_function__"
        android:textColor="@color/ksh_blue"
        android:textSize="20sp"
        android:textStyle="bold" />

    <TextView
        android:id="@+id/text_separator"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="4dp"
        android:layout_marginRight="4dp"
        android:text="@string/__black_circle_medium__"
        android:textColor="@color/ksh_blue"
        android:textSize="20sp" />

    <TextView
        android:id="@+id/text_employee_department"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/__employee_department__"
        android:textColor="@color/ksh_blue"
        android:textSize="20sp"
        android:textStyle="bold" />

</LinearLayout>

<ImageView
    android:id="@+id/image_employee"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginTop="8dp"
    android:contentDescription="@null"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintHorizontal_bias="0.5"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/LL_employee"
    app:srcCompat="@drawable/employee_picture" />

<androidx.cardview.widget.CardView
    android:id="@+id/CV_employee"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:forceDarkAllowed="false"
    app:cardBackgroundColor="@color/app_cardview"
    app:cardCornerRadius="16dp"
    app:cardElevation="8dp"
    app:cardPreventCornerOverlap="true"
    app:cardUseCompatPadding="true"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintHeight_min="100dp"
    app:layout_constraintHorizontal_bias="0.5"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/image_employee"
    app:layout_constraintWidth_min="360dp">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/CL_employee"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_margin="12dp">

        <ImageView
            android:id="@+id/icon_employee"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:contentDescription="@null"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            app:srcCompat="@drawable/employee_icon" />

        <TextView
            android:id="@+id/plaintext_employee_info"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="4dp"
            android:text="@string/__employee_info__"
            android:textColor="@color/ksh_pink"
            android:textSize="18sp"
            android:textStyle="bold"
            app:layout_constraintStart_toEndOf="@+id/icon_employee"
            app:layout_constraintTop_toTopOf="parent"
            tools:ignore="HardcodedText" />

        <TextView
            android:id="@+id/plaintext_employee_email"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="8dp"
            android:text="Email"
            android:textStyle="bold"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/icon_employee"
            tools:ignore="HardcodedText" />

        <TextView
            android:id="@+id/text_employee_email"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="4dp"
            android:layout_marginTop="8dp"
            android:text="@string/__employee_email__"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintStart_toEndOf="@id/plaintext_employee_email"
            app:layout_constraintTop_toBottomOf="@+id/icon_employee"
            app:layout_constraintVertical_bias="0.0" />

        <TextView
            android:id="@+id/plaintext_employee_mobile"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="4dp"
            android:text="Mobiel"
            android:textStyle="bold"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/text_employee_email"
            app:layout_constraintVertical_bias="0.0"
            tools:ignore="HardcodedText" />

        <TextView
            android:id="@+id/text_employee_mobile"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="4dp"
            android:layout_marginTop="4dp"
            android:text="@string/__employee_mobile__"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintStart_toEndOf="@id/plaintext_employee_mobile"
            app:layout_constraintTop_toBottomOf="@id/text_employee_email"
            app:layout_constraintVertical_bias="0.0" />

        <TextView
            android:id="@+id/plaintext_employee_po_number"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="4dp"
            android:text="Personeels-/bestelnummer"
            android:textStyle="bold"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/text_employee_mobile"
            app:layout_constraintVertical_bias="0.0"
            tools:ignore="HardcodedText" />

        <TextView
            android:id="@+id/text_employee_po_number"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="4dp"
            android:layout_marginTop="4dp"
            android:text="@string/__employee_po_number__"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintStart_toEndOf="@id/plaintext_employee_po_number"
            app:layout_constraintTop_toBottomOf="@id/text_employee_mobile"
            app:layout_constraintVertical_bias="0.0" />

        <TextView
            android:id="@+id/plaintext_employee_birthday"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="4dp"
            android:text="Geboortedatum en leeftijd"
            android:textStyle="bold"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/text_employee_po_number"
            app:layout_constraintVertical_bias="0.0"
            tools:ignore="HardcodedText" />

        <TextView
            android:id="@+id/text_employee_birthday"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="4dp"
            android:layout_marginTop="4dp"
            android:text="@string/__employee_birthday__"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintStart_toEndOf="@id/plaintext_employee_birthday"
            app:layout_constraintTop_toBottomOf="@id/text_employee_po_number"
            app:layout_constraintVertical_bias="0.0" />

        <TextView
            android:id="@+id/plaintext_employee_start_work_date"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="4dp"
            android:text="Start datum"
            android:textStyle="bold"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/text_employee_birthday"
            app:layout_constraintVertical_bias="0.0"
            tools:ignore="HardcodedText" />

        <TextView
            android:id="@+id/text_employee_start_work_date"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="4dp"
            android:layout_marginTop="4dp"
            android:text="@string/__employee_start_work_date__"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintStart_toEndOf="@id/plaintext_employee_start_work_date"
            app:layout_constraintTop_toBottomOf="@id/text_employee_birthday"
            app:layout_constraintVertical_bias="0.0" />

        <TextView
            android:id="@+id/plaintext_employee_start_work_date_timedifference"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="4dp"
            android:text="In dienst"
            android:textStyle="bold"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/text_employee_start_work_date"
            tools:ignore="HardcodedText" />

        <TextView
            android:id="@+id/text_employee_start_work_date_timedifference"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="4dp"
            android:layout_marginTop="4dp"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintStart_toEndOf="@id/plaintext_employee_start_work_date_timedifference"
            app:layout_constraintTop_toBottomOf="@id/text_employee_start_work_date"
            app:layout_constraintVertical_bias="0.0" />

    </androidx.constraintlayout.widget.ConstraintLayout>

</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
    android:id="@+id/CV_employee_car"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:forceDarkAllowed="false"
    app:cardBackgroundColor="@color/app_cardview"
    app:cardCornerRadius="16dp"
    app:cardElevation="8dp"
    app:cardPreventCornerOverlap="true"
    app:cardUseCompatPadding="true"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintHeight_min="100dp"
    app:layout_constraintHorizontal_bias="0.5"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/CV_employee"
    app:layout_constraintWidth_min="360dp">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/CL_employee_car"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="12dp">

        <ImageView
            android:id="@+id/icon_employee_car"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:contentDescription="@null"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            app:srcCompat="@drawable/employee_car"
            app:layout_constraintVertical_bias="0.0" />

        <TextView
            android:id="@+id/plaintext_employee_car_info"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="4dp"
            android:text="@string/__employee_car_info__"
            android:textColor="@color/ksh_orange"
            android:textSize="18sp"
            android:textStyle="bold"
            app:layout_constraintStart_toEndOf="@+id/icon_employee_car"
            app:layout_constraintTop_toTopOf="parent"
            app:layout_constraintVertical_bias="0.0"
            tools:ignore="HardcodedText" />

        <TextView
            android:id="@+id/plaintext_employee_car_type"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Merk en type"
            android:textStyle="bold"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/icon_employee_car"
            app:layout_constraintVertical_bias="0.0"
            tools:ignore="HardcodedText" />

        <TextView
            android:id="@+id/text_employee_car_type"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="4dp"
            android:text="@string/__employee_car_type__"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintStart_toEndOf="@id/plaintext_employee_car_type"
            app:layout_constraintTop_toBottomOf="@+id/icon_employee_car"
            app:layout_constraintVertical_bias="0.0" />

        <TextView
            android:id="@+id/plaintext_employee_car_license_plate"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="4dp"
            android:text="Kenteken"
            android:textStyle="bold"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/text_employee_car_type"
            app:layout_constraintVertical_bias="0.0"
            tools:ignore="HardcodedText" />

        <TextView
            android:id="@+id/text_employee_car_license_plate"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="4dp"
            android:text="@string/__employee_car_license_plate__"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintStart_toEndOf="@id/plaintext_employee_car_license_plate"
            app:layout_constraintTop_toBottomOf="@id/text_employee_car_type"
            app:layout_constraintVertical_bias="0.0" />

        <TextView
            android:id="@+id/plaintext_employee_car_mileage"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="4dp"
            android:text="Kilometer stand"
            android:textStyle="bold"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/text_employee_car_license_plate"
            app:layout_constraintVertical_bias="0.0"
            tools:ignore="HardcodedText" />

        <TextView
            android:id="@+id/text_employee_car_mileage"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="4dp"
            android:layout_marginTop="4dp"
            android:text="@string/__employee_car_mileage__"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintStart_toEndOf="@id/plaintext_employee_car_mileage"
            app:layout_constraintTop_toBottomOf="@id/text_employee_car_license_plate"
            app:layout_constraintVertical_bias="0.0" />

        <TextView
            android:id="@+id/plaintext_employee_car_expected_mileage"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="4dp"
            android:text="Verwachte kilometer stand"
            android:textStyle="bold"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/text_employee_car_mileage"
            app:layout_constraintVertical_bias="0.0"
            tools:ignore="HardcodedText" />

        <TextView
            android:id="@+id/text_employee_car_expected_mileage"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="4dp"
            android:layout_marginTop="4dp"
            android:text="@string/__employee_car_expected_mileage__"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintStart_toEndOf="@id/plaintext_employee_car_expected_mileage"
            app:layout_constraintTop_toBottomOf="@id/text_employee_car_mileage"
            app:layout_constraintVertical_bias="0.0" />

    </androidx.constraintlayout.widget.ConstraintLayout>

</androidx.cardview.widget.CardView>

<FrameLayout
    android:id="@+id/FL_employer_logo"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintSt
2 Comments
2024/11/19
21:17 UTC

1

How to run emulator on Wayland?

Hello
I've already tried all the env variables you find when googling about it but it wont launch on Wayland

emulator -avd avd_name

i've also created that ~/.android/advancedFeatures.ini file

i have both qt5-wayland and qt6-wayland installed

anyone here on Wayland? Im using Sway

thats what i get

~$ /opt/android-sdk/emulator/emulator -avd pixel7pro
INFO    | Android emulator version 35.2.10.0 (build_id 12414864) (CL:N/A)
INFO    | Graphics backend: gfxstream
INFO    | Found systemPath /opt/android-sdk/system-images/android-30/google_apis/x86/
INFO    | Found systemPath /opt/android-sdk/system-images/android-30/google_apis/x86/
INFO    | Duplicate loglines will be removed, if you wish to see each individual line launch with the -log-nofilter flag.
WARNING | Please update the emulator to one that supports the feature(s): Vulkan
INFO    | Increasing RAM size to 2048MB
WARNING | Failed to process .ini file /home/null/.android/avd/../avd/pixel7pro.avd/quickbootChoice.ini for reading.
WARNING | FeatureControl is requesting a non existing feature.
INFO    | Warning: Could not find the Qt platform plugin "wayland,xcb" in "/opt/android-sdk/emulator/lib64/qt/plugins" ((null):0, (null))

Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: vnc, offscreen, xcb, linuxfb, minimal.
 ((null):0, (null))
INFO    | Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: vnc, offscreen, xcb, linuxfb, minimal.
 ((null):0, (null))
                                                                                                                                                                                               ~Aborted (core dumped)

really appreciate

0 Comments
2024/11/19
18:20 UTC

1

How to allow an app of mine to appear in the "Open with" menu of another app I created?

So I've made 3 apps. I don't really know any coding and 90% of me doing this was asking friends for help, using the internet to look up how to define stuff, and some chatgpt as a last resort. This has mostly worked for me

How do I allow my 2nd app (FileBeGone) appear in the OpenWith menu of my third app? Like I want to be able to share a file, press my OpenWithFromShare (3rd app) app, and be able to click on FileBeGone so that I can mark my file for deletion. My problem currently is that I can't get FileBeGone to appear in the open with menu specifically when I go through my app. It works when I open any file just not for my app.

Here is a short description of my apps

Share from Open With
First. I made an app that i click on from Open With and it brings me directly the Share menu

---------------------------------

FileBeGone

Second. I made an app that I can also press in the Open With menu and I can select X minutes (I put 1,3,5,10 minutes) and the file will be deleted in that time. (because i often download files just to put in my notes app and then never use again so i just set it to automatically delete now)

I tried adding code to allow me to access this app in the share menu, and eventually i got but then it broke the delete function. Ideally I would like this app to be accessed in both menu's but i tried a different route which will be my 3rd app

---------------------------------

Open With From Share

My third app allows me to click on it in the Share menu and it will bring me to the Open With menu. (exact opposite of the first app). I got it to work, but my FileBeGone

Any help would be appreciated!

3 Comments
2024/11/18
03:33 UTC

1

Android Emulator Not Starting

I have a Android Emulator that I used rootAVD on. After performing some module testing and module addition to the AVD, adding a specific root module caused the emulator to no longer turn on.

I wanted to try and capture logcat logs or some other log that shows what's happening during the kernel bootup process. Unfortunately since the emulator is not yet booted into the OS, Android Studio is not connected to logcat. So I can not get any logs from that. Is there some other way to pull logs?

Android Emulator AVD Crash

1 Comment
2024/11/17
17:29 UTC

3

How do I get my IDE to do this?

I was looking at someone else's IDE and noticed that his IDE automatically displays what "this" refers to (see the image). I would like my IDE to do the same.

I looked through the settings but without any luck. Hoping you guys can help me.

https://preview.redd.it/4aho6t21v91e1.png?width=463&format=png&auto=webp&s=a1bdd5b7b549fa40e356a87e74e177b0a01cec4e

2 Comments
2024/11/16
14:16 UTC

1

How can I make a fragment automatically pop up when starting an activity?

so I followed this tutorial https://www.youtube.com/watch?v=-vAI7RSPxOA&list=PLQkwcJG4YTCTq1raTb5iMuxnEB06J1VHX&index=22&ab_channel=PhilippLackner

yes I know it's from 4 years ago but the recent comments have helped me get the updated info so it wasn't really any problem following accept one thing. I see at the end of tutorial he boots up his emulator and it appears that fragment 1 is all ready started without him having to press the button to activate first like I did. everything I boot it up using this code...first fragment comes up but I have to press the button to bring up what I think is a new instance of fragment 1 then that's when I press the other button and fragment 2 comes up.

So i'm trying to figure out how to make the fragment 1 that is already active...the same as the fragment 1 when I click the button. if there is another way like making fragment 1 pop up when I start the activity...please explain how to do it that way.

Thanks for everybody's help in advance!!

https://preview.redd.it/k796470xn51e1.png?width=1920&format=png&auto=webp&s=934eac5343e70a344b02fb4d1093189b82a132c5

2 Comments
2024/11/16
00:14 UTC

Back To Top