Use the old Layout Inspector in Android Studio - android

It seems like Android Studio doesn't allow more to use the legacy Layout Inspector (without live updates), but that one was extremely useful.
I get it, the new one has live updates, but the connection time to the process is slow, sometimes it even restarts the activity if you don't have the non restart activity flag enabled. And personally I rarely need the live updates, I only need to inspect whatever screen I'm seeing at the moment.
Does anybody know if is possible to use the legacy layout inspector without going to a prior version of Android Studio to current stable (Arctic Fox)?

This button should disable live updates

I also have issues with the new Layout Inspect for my React Native app, whether live updates are off or on. However, the new Android Studio (my Android Studio's version is Chipmunk|2021.2.1) cannot turn off "Enable Live Layout Inspector" in the settings, Google has removed this setting. But I found that in the Keymap settings, you can set shortcut keys to Legacy Layout Inspector, and then use Legacy Layout Inspector through shortcut keys. Thank Google for not removing this feature outright.

Related

Android Studio Proxy tab missing from extended controls settings BumbleBee

I need to access the proxy tab from the extended controls window in Android Studio # vresion. but that tab option is missing, Any help would be appreciated!
uncheck it
I saw this image in another stackoverflow post, I had the same problem, uncheck it and works perfectly , just restar android studio and open it up again
Looking for "limitations"
https://developer.android.com/studio/run/emulator
Currently, you can't use the emulator's extended controls when it's running in a tool window. If your development workflow depends heavily on the extended controls, continue to use the Android Emulator as a standalone application. In addition, certain virtual devices—such as Android TV and foldable devices—can't be run in Android Studio because they have specialized UI requirements or important functions in the extended controls.

Turning off Live Updates by default in Layout Inspector

I recently updated Android Studio and the update included some new features for Layout Inspector. There is now a live updates checkbox that seems to be turned ON by default when running the debugger. Unfortunately, my app slows down to a crawl while this is active so I need to check off the feature every time after the app starts, which is a lot. I would like to know if there is a setting to keep live updates off by default instead of on. Thank you!
You can disable Live Layout Inspector by unchecking the Enable Live Layout Inspector box under the Layout Inspector header in the Experimental section. Screenshot of Android Studio Preferences
Note: I'm currently on Android Studio 4.1-RC version and have no elected to update to the latest stable version so the exact details may change depending on what A.S. version you're on.

Xamarin Android deployment not using the latest code?

I'm creating an Android app in Visual Studio. When I create the aligned APK to side load on my device (from the Tools -> Android -> Publish Android App), it installs and runs, but doesn't seem to have the very latest changes. The series of events I've experienced is as follows:
Installed a version of the app on my device
Updated a color on the login page and set the application theme (among other things)
Re-installed the app
Saw the new theme but not the new color on the login page
Made a random text change on the login page as a test
Re-installed the app
Saw the color change but not the random text change?!
Any suggestions on what I might be doing wrong?
I have experienced similar issues, my go to for fixing this issue has been the following
Clean all projects.
Build all projects (especially the project containing the xcml files).
Delete (remove application) from the device.
If for some reason this doesn't solve the problem, typically a full restart of Xamarin Studio or Visual Studio does.
I have a similar weird problem where old code from only a single project doesn't get updated. All other projects do get updated/deployed. It only happens on a single emulator, only in Debug mode, and only for that one project.
Cleaning+rebuilding the entire solution did not work. However, telling VS to rebuild the individual project does.
Why doesn't rebuilding the solution rebuild the project? I have no freakin' clue, but I can consistently reproduce this issue and workaround.
In my case, I had a similar problem with connected device, and no one proposed solution like Clean\Rebuild\Restart\Reinstall\etc could help me.
At the same time on the AVD everything worked perfectly, latest code deployed ok.
I found that asked issue depended on selected settings in the [USB Developer] section on the connected device (mine was Xiaomi smartphone). Because some vendors provide us with too many security settings...
What I found, you have to turn on both USB Debugging & USB debugging (Security settings), and turn off MIUI Optimization (it's true for Xiaomi vendor, but you can check your device for similar options). Hope this helps.

Custom Android MMS/SMS application from source code?

Okay here's the deal:
I want to download the full source of the MMS/SMS application that ships with Android phones. I want to be able to modify it, and add a little custom functionality to it.
I am developing using Eclipse, and I'm on Windows 7. I have noticed that there is now a Git for Windows, but I am pretty lost in it and not sure how to integrate everything with Eclipse.
Basically, I want to just get it to the point where I have all the source code visible in Eclipse and be able to see the app run JUST like the built-in texting/MMS app that is already on my phone. Then I'll know that I can modify it and proceed.
Any ideas?
Thanks!
There's a mirror of the SMS/MMS app on GitHub here. Just import that to Eclipse and customise away.
Unless you want to customize and use it only on your own phone (without publishing), this is not a good idea. This is because it uses classes that are hidden from the sdk. By default you won't even be able to build the apk via eclipse, but there is a way. The reason why this is a bad idea is that the hidden apis are not guaranteed to remain the same through different api-levels and your app can stop working with the next android update, and might also not work on previous api-levels. In-fact your app might not even work on selected phones running the same api-level.

How to enable/disable 3G/2G in Android SDK

I am just wondering how to enable/disable 3G/2G using the Android SDK and not just intenting to the 3G settings page. Thanks. Also is there a way to do the same thing, but with GPS. Thanks!
There is no exported to the SDK functionality to switch between 2G and 3G. For a given device you could probably figure out the private functionality, but it wouldn't work unless the app was signed with the system key.
You can disable the radios though, by turning on airplane mode.
And you might be able to make a shortcut to open the appropriate settings activity directly, instead of going through a few levels of menus to get there.
If you make your own build, you can presumably add the capability you really want, but that's likely not useful to anyone but yourself.
Edit: further detail - to understand how it works, look at the settings menu code (default version, a given device will differ):
http://android.git.kernel.org/?p=platform/packages/apps/Phone.git;a=blob;f=src/com/android/phone/Settings.java;hb=HEAD
Edit: AOSP is no longer served from kernel.org. A browsable mirror of
the current phone repository is at
https://github.com/android/platform_packages_apps_phone however due to
evolution of code organization there is no longer a Settings.java
there. One might either use git to reconstruct the version above from
this repository, or else try to figure out where the code has migrated
to in current releases.
You would need to find out the implementation specific set of NT_MODE_ constants you wish to toggle between. And you need to be able to write to secure settings, which requires being signed with the system key. Unless it's a custom build, you probably don't have access to that.
You cannot enable or disable any of these from an SDK application.

Categories

Resources