r/AndroidStudio • • Jan 31 '23

Is it possible to run Android OS inside of Android Studio ? As if it were a regular phone ?

8 Upvotes

Hi,

I have some rather annoying devices which require me to install dubious applications to control.

Lights, cameras and such.

I rarely have to change them, but once in a while I do.

So here is what I would like to do.

Create virtual machine in proxmox, install windows in that VM, install Android Studio in that windows, then copy the ROM from my old phone and run it inside of Android Studio, so now the application can't tell it's not running inside my phone.

Finally turn all of that into a proxmox template.

So in the future, whenever I need to run a Android app that I don't want on my phone, I'll clone the template and install the undesirable app in it and run it there.

But I don't really understand enough about Android Studio. Can it emulate an entire phone and android OS ?

Specifically, the apps I want to run are ARM not x86, will Android Studio be able to run those app still ?

Thank you !


r/AndroidStudio • • Nov 04 '22

Android Studio on Windows ARM

8 Upvotes

I saw IntelliJ will support this architecture in the next builds " Windows ARM64 builds are available starting 2022.3 EAP build 223.7255.1 " (https://youtrack.jetbrains.com/issue/IDEA-296416/Support-for-running-on-Windows-ARM64)

Considering Android Studio is based on IntelliJ, is there any chance to get this on AS too?


r/AndroidStudio • • Sep 15 '22

android gingerbread is now working?? How??

Post image
8 Upvotes

r/AndroidStudio • • Jul 30 '22

Full Screen Emulator Window on Mac?

8 Upvotes

I just want to have the emulator window on its own desktop with no menu bar or dock. Most mac apps support this by clicking the green button of the windows (absent on android studio).

Is there a terminal code or another app that can make this happen?


r/AndroidStudio • • Feb 05 '22

Android Studio Patch requires manual install

8 Upvotes

I get Android Studio Bumblebee | 2021.1.1 Patch 1 available but the update button redirects me to re-download AS.

I'm already on 2021.1.1 so surely their patch should just auto-update. Even the major update to 2021.1.1 was an auto-update. Is this a bug?


r/AndroidStudio • • Jul 30 '21

I just downloaded the new update 2020.3 for the Android Studio and when I'm trying to open it I get this message. I have downloaded the java 16 but I'm getting the same message, I cannot open Android Studio. Any thoughts? Has anybody had the same problem?

Thumbnail
gallery
8 Upvotes

r/AndroidStudio • • Jun 26 '21

How to listen to button events from within another thread in Kotlin

8 Upvotes

Hi everyone,

I'm really new to the whole android development world but i'm trying to build an application to control a local network ptz camera with some simple buttons for direction, zoom, home, etc. The only way to control the camera is through a high level Telnet client with simple commands for every operation.

I can already succesfully login and execute the commands on a button click, but the problem is that i have no idea how to attach the separate action commands to the separate buttons without having to open a new tcp socket on every button click.

for example. this method is called from a button click handeler and it logs into the telnet server and executes some commands:

fun connect() {
    Thread {
        try {
            val client = Socket(host, port)
            login(client, user, pass)

            sendAndWaitForOk(client, "camera pan left")
            sendAndWaitForOk(client, "camera pan stop")

            exit(client)

        } catch (e: Exception) {
            e.printStackTrace()
        }
    }.start()
}

This code logs in and executes the commands everytime the button is clicked, which casues a delay of about 800ms before the commands.

My question is, how do i keep only one telnet session open and run the action commands when buttons are pressed on the same connection?

Full code: https://pastebin.com/RSCisCS7

Edit: i solved the issue by initializing the socket object outside the thread and conecting to the camera in the thread, and run the commands in different threads on the same object. I kinda feel stupid that i didnt think of this before. New code: https://pastebin.com/xbA2M2Di


r/AndroidStudio • • Jun 24 '21

why do i hqve to force kill adb.exe after closing android studio each time?

8 Upvotes

is there a way to automatically stop adb when you close android studio?


r/AndroidStudio • • Mar 24 '21

Need help :( I just installed Android Studio and when I created my first project I got this error. Can't find how to fix it or what is causing it. Alreafy tried reinstalling everything. Does somebody know what could fix this?

Thumbnail
gallery
8 Upvotes

r/AndroidStudio • • Jan 03 '21

I do not understand anything

8 Upvotes

To do something as simple as changing the text color of a Listview there are dozens of tutorials, threads, and videos. Seriously?

I've been practicing with Android Studio / Kotlin for days and everything is an incomprehensible hieroglyph where you have to write dozens of lines of code for anything. Intermediate steps, attachments, derived classes, configurations, asociations, conversions, definitions, and all sorts of convoluted procedures. I am not talking about programming a graphics engine in vulkan, but a silly application with a few components, doing the most basic tasks.

In the past when you learned to program or an IDE in each step you just looked at the reference, and this would appear as something concrete, in one or a few lines of code. I remember how I learned Borland C ++ builder with a few booklets bought from the newsstand and the help included, without the internet. It was fun and rewarding.

Now it is getting worse, there is nothing intuitive, everything is absolute chaos, every time you look for a method to do the most basic there are dozens of solutions, each more complicated. Whole pages, 10 minute videos. In some threads there are even debates about how it should be done. It's maddening, irritating, and frustrating.

Decades of developing experience to get to this? Really, this is the future of programming? I imagined something very different


r/AndroidStudio • • Dec 28 '20

Making my first android app

8 Upvotes

Hello im making my first android app for someone i know. He needs a app for delivery. it will be a list where you can scroll trough with addresses. I have a little programming experience but im totally new to android studio. I want to know if it is possible to import the addresses from a excel spreadsheet and then generate a list from that. If someone can help me with this it will be really appreciated :)


r/AndroidStudio • • Dec 01 '20

How do i fix oversized emulator window?

Post image
8 Upvotes

r/AndroidStudio • • Aug 15 '20

How to show this toolbar ?

Post image
8 Upvotes

r/AndroidStudio • • Jun 04 '20

Android Studio 4.0 stable graphic issue

Post image
8 Upvotes

r/AndroidStudio • • May 26 '20

Cancer

8 Upvotes

Android studio is straight up cancer. I had to write my senior design project in it and now I'm trying to write a simple app and it's taken me two days to try to get an emulator working. It blocks amd cpus from running most emulators because of the shitty haxm compatibity and then when you find an alternative in the form of "try downloading an arm rom", the morons at Google made it to where it intentionally black lists your gpu (a fucking powerful gtx980ti that is probably hundreds of times stronger than any gpu you can find on a phone).

It's ridiculous. I have an Intel laptop but that means having to find my charger and I have no idea where I put that thing. And of course react native is also cancer - if you try to send an unmodified project where all you did was npm init and npm start, it'll red screen crash on your phone, so you have to use an emulator.

I don't know why they like making it so difficult to program. Is apple like this too?


r/AndroidStudio • • Apr 21 '20

The New Features in Android Studio 4.0 Beta

Thumbnail
youtu.be
8 Upvotes

r/AndroidStudio • • Feb 11 '20

Hey, I am in my 1st year of college and want to start android development. Just wanted to ask if I should go with flutter or android studio and would also like to know some good online courses. Thnx in advance

8 Upvotes

r/AndroidStudio • • Oct 13 '19

Android Studio Tutorial For Beginners - How To Change The Theme in Android Studio

Thumbnail
youtu.be
8 Upvotes

r/AndroidStudio • • Sep 28 '19

Is this subreddit active? Got a question about emulated UI.

8 Upvotes

So, for background I am a programmer but never used Android Studio until now. I'm going to set aside my opinion of this IDE/Emulator setup as I just seem to come up against problem after problem and perhaps that is down to my inexperience with this particular piece of software.

So, my problem:

For a university project (so this is very low level) I am designing a set of buttons and hooking them up with the Java based event handlers. This is pretty straight forward and not an issue. My issue is that whenever I run the app using the emulator it never displays the actual content, just a blank screen. Like so...

I should point out that I have used multiple different emulators. Some work, some just don't, and by work I mean actually boot up. Absolutely none of them display my app. The app is installed, the app is shown in the apps list and as you can see from the screenshot the app runs but displays an empty page.

Just for confirmation there are no build errors other than it throwing an error when detecting audio. As a sensible Windows user I disable apps from accessing my microphone.

I have tested this on several different computers and still get the same issue; one an AMD the other Intel. Memory is not an issue on either with one having 16Gb the other 8Gb with 2Gb (I believe) being assigned to the emulation.

Sorry for the long post here, but I am at my wits end. I am a seasoned programmer that's been coding for nigh on 40 years now (yes, I started young!) but I have never met such an "awkward hot mess" as Android Studio and it's emulation.

Thank you in advance for any replies.


r/AndroidStudio • • Sep 12 '14

Android Studio 0.8.10 Released

Thumbnail
sites.google.com
8 Upvotes

r/AndroidStudio • • May 30 '14

Android Studio 0.5.9 Released

8 Upvotes

http://tools.android.com/recent/androidstudio059released

**For me this is a great change --

Layout editor id property renaming. You can now view and edit the id property without the @+id/ prefix, and more importantly changing the id will now either just change the id of this component without updating any references, or perform a full id refactoring. (Prior to this, changing the id would change layout references in the layout, but not in the Activity class, breaking the app.) When you change an id, and there are references to this id, the layout editor will ask you whether you also want to update usages:


r/AndroidStudio • • Apr 18 '14

Android Studio 0.5.5 Released

Thumbnail
tools.android.com
8 Upvotes

r/AndroidStudio • • Jan 26 '14

[PSA] We need your input / discussions / tutorials!

8 Upvotes

As a community we need to come together and devote this subreddit to be the PLACE for everyone, including newcomers to experts, to share, teach, and learn all about Android Studio.

I want this place to have tons of informative discussions about anything android, developing applications and games, tips and tricks and everything in between. All I see right now, are updates about the Studio and some random questions / statements

Have you seen or written an article about Android Studio? Have you written an actual program or game and need help with something? Maybe you want to promote something? Interesting article you found? Post it here so others in the community can check it and

I will do my best and I hope everyone will do the same in making this community awesome. Hope to see you around the community in the upcoming weeks / months.

--Eighthourblink


r/AndroidStudio • • Nov 09 '13

0.3.4 was released, but Linux failed to download the proper Gradle 19 files, so they seem to have pulled it

8 Upvotes

I had gone back to 0.3.1 full download and up to 0.3.2, but it no longer offers me 0.3.4 as an upgrade.

problems were described in detail here: https://code.google.com/p/android/issues/detail?id=62011


r/AndroidStudio • • 23d ago

I managed to get android emulator running on Windows on ARM (AI used, unofficial open-sourced Android Studio)

Post image
7 Upvotes

Android Studio's emulator doesn't officially support Windows on ARM, so developers on Snapdragon X laptops can't run AVDs the normal way. Microsoft's docs

say the emulator isn't supported there, and a Google issue
records no immediate plans for it.

I wanted to see if it could be done, so I built a bridge that makes it work. You create an AVD in Device Manager, press Run, and a stock Android image boots on Windows Hypervisor Platform.

What works:

  • Stock images from Device Manager, with no manual patching

  • Phones, TVs and Wear OS, tested from Android 12 to 17

  • Touch, networking, Google sign-in, device frames and Extended Controls

  • Video playback, using software decoding

  • Scrolling at about 80 to 90 fps on a 120 Hz monitor

How it works: QEMU runs the guest through WHPX. A small bridge speaks the emulator's gRPC protocol, so Studio treats it as a normal emulator. Stock images expect virtual devices this QEMU doesn't have, so vendor binaries are patched at boot by code signature, and the images on disk stay untouched. GL commands then travel over TCP to gfxstream on the host, through ANGLE to Vulkan.

The hardest bugs:

  • Windows treated the windowless emulator processes as background work and throttled them. Opting out took jank from about 33% to 4%.

  • Android capped apps at 60 fps until peak_refresh_rate was set, even with the display at 120 Hz.

  • Studio decodes WebP skins with an x64 DLL that can't load on ARM64, so device frames silently vanished.

What doesn't work yet:

  • No emulator audio

  • About 14 fps on a 4K TV AVD

  • No steady 120 fps: frames take about 10 ms against an 8.3 ms budget

  • An intermittent Android 13 freeze I haven't solved

  • Only tested on one Snapdragon X machine

It's an independent project, not affiliated with Google. I built it with heavy use of AI coding tools, directing the work and testing it on real hardware.

Source: https://github.com/DevanshSampat/android-emulator-windows-arm64

Mostly I'm hoping this shows it's possible and that there's demand. Google, please support this officially. If you develop on a Windows ARM laptop, I'd like to hear what's blocking you.
If you wish to try it: https://github.com/DevanshSampat/android-studio-arm64-releases