• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Exploring the Future of Artificial Intelligence: An A.I Forum Discussion

As artificial intelligence continues to advance and permeate various aspects of our lives, it's essential to have a space to discuss its potential implications and applications. In this A.I forum discussion, we will explore the current state of A.I technology, its impact on industries and society, ethical considerations, and future possibilities. Join us in this thought-provoking conversation and share your insights and perspectives on the future of A.I.

Very pleased with the zoom feature of Samsung Galaxy S23 Ultra!

I'm very pleased with the zoom feature of Samsung Galaxy S23 Ultra!
I was already happy with the landscape photos I took 3 weeks ago of sunrise


_072655a-web.jpg

But really haven't tried the zoom feature until today. Since it was a nice sunbreak, (5pm) I got all set up to take pics of birds, squirrels and the minute I sat down, it clouded
⛅
️ over.
72.png


I said what the heck, I'll see how this works with the zoom with deep shadows with the clouds, no sun. All shots were sitting down at the table. Look for the red dot (feeder) on the tree from where I was sitting... that is how far I zoomed (digital zoom) 20-25 yards to the feeder.

The sun was just disappearing here and cloudy with the woodpecker pics where the red dot is on tree.
164355-Paito-web.jpg

Zoomed into the female and male Northern Flicker woodpeckers. First the female was there, then the male kicked her out. But as soon as he saw me, flew off, so only shot I got.
170624-Flicker-web.jpg

171335-Flicker-web.jpg

All shots were resized for web/email size for posting. I did take some with the B700 Nikon superzoom of the female woodpecker, so I'll compare the shots tomorrow and post them.

Help Galaxy Tab A 2019 locked out

Hello,

I have my mother's Galaxy Tab A from 2019. She passed away last summer and I don't know her pattern to unlock the tablet. I have all of her email and Samsung log-in information for those accounts, but because her tablet isn't on my internet, I cannot use the Find My Device to reset the tablet. I had wanted to keep the tablet intact until I was sure there was nothing on it I needed, but at this point I will even take a factory reset if I can just get it functional. I've tried to do the hold down the power and volume down button then switch to the power and volume up combo, the power and volume down to just power combo, etc. and none of them works to allow me to get to the Android menu to do the reset. I am frustrated I can't open this tablet even with her account information. Does anyone have any ideas of something I can do???

TIA for your help.

Thoughst on my new game?

Hi all, i am an indie game developer. I am developing new game for android and IOS. The game is a storybook game wich follows the main character throughout her journey. I have posted some progress on my tiktok page. If you like the game look and feel, it would be really helpful if you follow the account because i will post there daily. Thank you!


Trailer video:

tiktok
BlueFox (@bluefox8075) | TikTok

Instagram i just created it so i have posted just a few videos
Login • Instagram

Screenshot_20230402_151906_Daughter Journey to StrangeLand.jpg

A little more exposer..

Truth to be told:
Now I have turned off all my bg apps running, so I keep my Moto z 2 turbo idle for that time, so I leave it on sometimes up to eleven hours on accident, mind you, I am somewhat ocd of turning off my cellphones and tablets, oh every four hours, but with the tablet, I tend to leave a bit longer since it does not over heat as much. (Except for when it is charging, something with the usb port itself.. A little issue, but none the less it works pretty flowery), It drains the battery automatically, I do not have any apps open or any of that nature what so ever, usually I automatically turn off the bg apps running, it has been ages since I did read upon moto z turbo, but can you refresh my memory on what I can do to help it have the battery last longer? So yeah but that battery seem to idle some more though, given that fact, I have turned it off for about a few months or so, and still saids around eighty percent.

So any clues on how this can over heat, even with the Moto Edge Plus I have, it over heats so much towards the speaker with the edges themselves..

Google crawling: Does Google crawl websites using Android phone data?

google-crawling-1024x622.png

Google crawling is an important process for a search engine of this magnitude. However, knowing the full scale of the world wide, is it possible that Google is crawling websites based on traffic data mining from android devices?

What triggered this question is because a friend's website which was not submitted to Google was crawled and indexed. Prior to Google crawling it, we've been using our Android phones to test the website.

[MTK][Root] TCL 20 XE 5087Z Root and Unlock Bootloader Guide

WARNING: If you fail/misunderstand a step, you may accidentally brick your device. This method involves messing with the actual partitions of the device in order to root. All user data (files, music, apps, games, users, call logs, messages, etc.) will be wiped, so make sure your device is backed up. If your device no longer works, it's your fault as you made the modifications.
TL;DR: Bricking risk, lost of user data

Requirements:
Windows 7+ (I used Windows 7 build 7601 Professional x64) (Windows 10 recommended)
Python 3.8+ (I used 3.8.10) (3.11.x recommended)
UsbDk (I used 1.0.22 x64)
ADB
MtkClient
Unbricked and set-up TCL 20 XE with access to Developer Options
A USB-C to whatever your computer has cable, that allows data transfer (I have an USB-C to USB-A data cable)

Downloads:
Python 3.8.10 Download Page
UsbDk 1.0.22 x64 Direct Download
MtkClient Latest Direct Download
Magisk Manager Patched for MTK Direct Download
Orange State Disabler Download Page (auto install)

Steps:
1. Download everything under the Downloads section above. Optionally, you can install a newer version of UsbDk and Python if you want.
2. Make a folder somewhere. For me, I made an "android modding" folder in my downloads, however this means my files are in C:\Users\Nostii\Downloads\android modding (aka %USERPROFILE%\Downloads\android modding), instead of something easy like C:\android modding.
3. Run and setup Python and UsbDk, make sure to install Python to the PATH.
4. Reboot your computer.
5. Extract MtkClient, (don't extract the Orange State Disabler, otherwise it won't work).
6. Open the command prompt.
(Open the start menu and type cmd.exe, and click on it, or go to folder you downloaded and extract the files to, hold shift and right click, and hit Open command window here.)
7. Type cd mtk into the cmd window and press tab, and then enter.
8. Grab your phone. Hold the power button and press the Power off button in the top left corner.
9. Run the command python mtk r boot,vbmeta boot.img,vbmeta.img in the cmd window. After running the command, plug the phone into the computer using the cable you have.
10. Unplug the phone and hold the power button. Make sure you have you patched Magisk apk ready.
11. Enable ADB debugging. Unlock the phone, go to settings, scroll all the way down to the bottom, and tap System. Tap About phone 5087z and scroll all the way down. Tap on Build number about 15 times, go back, and tap Developer options. Tap on OEM unlocking and tap Yes. Scroll down a little it until you see USB debugging, and tap on it, and then press Ok.
12. On your computer, run adb install app-release.apk or whatever you renamed the Magisk apk to and wait.
13. On the phone, go to the home screen, scroll up, and find Magisk and tap Install in the Magisk menu that has the mask icon.
14. On the computer, run adb push boot.img /sdcard/Download and wait.
15. On the phone, press Select and Patch a File, and find the file boot.img in your Downloads. Press Select and wait. When it finishing patching your phones boot.img file, it should give you a file that is named magisk-WHATEVER-HERE.img, You need to know what this file is named. It should be located in your Download folder, but take a screenshot anyways to avoid losing it.
16. On the computer, run adb pull /sdcard/Download/[displayed magisk patched boot filename here] and also run ren [displayed magisk patched boot filename here] boot.patched.

These next steps will unlock the bootloader of the phone and wipe ALL USER DATA. After running the command in step 17, there will be no turning back as all user data will be WIPED, DESTROYED and GONE
17. Turn off the phone entirely and unplug it, and then run the command python mtk e metadata,userdata,md_udc and then plug the phone back in to wipe the user data.

18. Unplug the phone, run the command python mtk xflash seccfg unlock and plug the phone back in. This will unlock the bootloader.
19. Unplug the phone, and turn the phone back on. If done correctly, the phone should reboot back to the device setup screen, which should be the same as AOSP.
If you are getting a dm-verity error on Android 11 (which should be the latest officical build for the 20 XE), just press the power button, then the device should boot and show a warning about having an unlocked bootloader (Orange State) and then the device should boot into Android within 5 seconds or so. The Orange State warning will show on every boot.
20. Turn the phone back off, and run python mtk w boot,vbmeta boot.patched,vbmeta.img.empty and plug the phone back in to root the phone.

21. Turn the phone back on, and set the device up. Repeat step 11 but skip enabling OEM unlocking as that option will be grayed out due to the unlocked bootloader (re-enable ADB debugging).
22. Run adb install app-release.apk (or whatever the Magisk APK is named) to restore the Magisk app (the one that is in the app drawer is supposed to download Magisk but fails) and run it. It should show Installed 1eb83ad8-alpha-30 (23001) like mine does. Optionally, you can install Root Checker, run it, grant it root permission with Magisk, and see it is fully rooted.

Optional Steps to disable the Orange State warning:
1a. Optionally, you can disable Orange State, which is the text that shows how the bootloader is unlocked and the device is not trusted, which makes the device boot take at least 5 seconds longer (they really want you to read that, and I guess relock the bootloader), do NOT extract the zip file, it is meant to be flashed.

2a. THIS PART OF THIS GUIDE IS UNFINISHED, DON'T WORRY THOUGH, THE ORANGE STATE WARNING ISN'T GOING TO BRICK YOUR DEVICE OR ANYTHING, THIS IS REALLY ONLY TO MAKE THE DEVICE BOOT 5 SECONDS LONGER WITHOUT RELOCKING THE BOOTLOADER WHILE NOT SHOWING THIS WARNING. SORRY.

Optional Steps to Relock the Bootloader:
1b. Power the device back off.

2b. Run python mtk xflash seccfg lock on the computer. Plug the phone back in. Unplug when finished and reboot. The bootloader is now locked again, but the device should still be rooted. Do NOT run this if you are going to flash a custom ROM like LineageOS, Linux (such as Ubuntu Touch), or CaylxOS. Running this command should also fix the Orange State warning on device boot (when it says TCL powered by Android), however if you want to keep an unlocked bootloader while disabling this warning, try doing steps 1a to step a.


Proof of Root: Google Photos link to 4 photos of my rooted TCL 20 XE

Spoofing a server for an android app?

So I'm not sure if what I'm asking for is possible, or feasible.

I've recently download this app called FarmIt mobile which is for keeping information about livestock.

The app doesn't work because it needs to connect to their server which requires a subscription, which is too much money for me.

I was wondering if there's a way to get the app to connect to my own server, and what that server might look like? I think the sync files are just text documents.

Hope this makes sense, thanks in advance.

Wifi, mobile data and vpns

Just afew relatively simple (I believe) questions.

1. If I connected to a wifi network with mobile data on, which service will be used - wifi or mobile data?

2. If wifi and mobile data are both on can I set the Galaxy S20FE to use wifi by default?

3. Whilst on ( a possibly open) wifi hotspot I can use my vpn to protect my browsing the internet using the internet. How do I protect the phone whilst browsing the internet using mobile data?

Help Mirror screening novice, help please

Hello,

Up till now I was using Windows 10's Desktop Projection to mirror screen to my TV.
- it works phenomenally and I'm happy

However, I have another TV which isn't a smart TV, so I bought an android TV Box.
- The Android Box has a preinstalled Miracast app

I want to know a way to use my regular desktop projection to connect to Miracast but that Miracast asks me to confirm a password or PIN that only I know?
- I do not wish to install another app to my PC
- I am okay with installing apps similar to Miracast on my Android TV Box

On the internet I found various applications like LetsView, Reflector 4, AirServer, Mirroring360, ApowerMirror, ScreenBeam Configurator app, Wi-Fi Direct Password-Protected Transmitter, AnyDesk, Chrome Remote Desktop, Microsoft Remote Desktop, Miracast Widget & Shortcut app, Miracast Screen Sharing App, Connectify Hotspot, but I fail to realize the potential of all these and which one to pick based on details and preferences (the less clutter, the better. I only need the password protection option).

Is there any app that I can only install to my Android Box and use regular Windows 10 Desktop Projection to connect to it, but that it asks me for a PIN that I have to enter on the device which I am using to connect to that Android Box (in this case laptop)?
If not, what is the closest and simplest (possibly free) alternative?

  • Question Question
Help How to permanently remove "Mute all sounds" from Samsung Galaxy A13?

I liked my Samsung Galaxy A21, but the glue holding the case together lost adhesion. I used my Likewize insurance, and they sent me a Galaxy A13 as a replacement. Problem is, this is a shitty phone with a weird OS (Android 13 with silly features). The most irritating problem I'm having at the moment is that the "Mute All Sounds" keeps turning itself on with no known action on my part. Please understand that I know how to temporarily turn that on and off; that's not what I'm asking.

What I AM asking is if there is any way to permanently remove/disable the ability to turn it on at all under any circumstances. I want that feature to not exist!

How can I accomplish this? Are there special commands to alter features, sort of like how browsers like Firefox allow you to alter "hidden" settings with the "about:Config" command. I'm not going to violate the warranty such as by rooting or the like.

Thanks!

Create a scheduled task in Android to execute a Linux script

Hello
I've installed on my non-rooted smartphne, the Userland app and installed in it the Ubuntu distro.
I've then created a Linux command to extract RSS feeds and generate an epub ( via the Calibre software I(ve installed in the Ubuntu)

Now, I want to create an Android task which would launch Userland every day à 8 a.m.
And if possible this task would also execute the script I've created in Linux (otherwise, I will create a schedule task in Linux)

Have you any ideas about an Android app which would do that ?

(NB : if you already know Calibre, you will suggest to use on my laptop the calibre scheduling feature and awake my laptop with Windows Task Manager. But I want to close my laptop when I am away for several days)
Thanks a lot !
Villard

Android Studio multi build

Hi, I need some help with a problem I need to solve. I have an application that I need to install on three different customers' devices. Each client has to point to his own server and use some features and not all. What's the best way to handle this? As sources I have only one but I would like to be able to generate several apk automatically by setting in some way a parameter that allows me to make the application work in the correct way

Battery app that auto-updates power level?

I have had two apps on my Android phone. I like everything about how they work, except the fact that the power level reading on the app icon remains the same until I open the app to see the power level. In other words, if I open up the app to check power level, it might read 90 (for 90%). Then, that 90 will stay on the app's icon on my home page until I check it hours later, at which point it would read something like 50.

Is there an app that will change the number on the app icon, so I don't have to press the icon and then open up the app itself? Its not that doing this is so much work; its just that when I look at my phone, it is easy for me to see the number 90 and think that is how much battery life I have left.

Find the Difference Game

Have you gotten bored of scrolling for games that are interesting to play and also increase your concentration? Then you have reached the right application, find a difference game that has all the features that you expect in one interesting game.

Do you really think you can conquer this game's levels? Sometimes it seems simple but it's not!

Play find the difference game on your smartphone and go to levels, find out the difference between two pictures. Use your skills to spot the potential difference between those pictures, while the timer running in the background, find the differences in less time which will help you to perform better and train you for the next challenging levels.

Find the difference game is a photo hunt puzzle game that looks simple and easy but it is more challenging when you go to the upper levels, if there will be more challenges it means more fun playing this game. Playing the find the difference game will improve your focus power and observation skills. Everyone can play this game and improve their skills. The best advantage of this game is that it allows you to take a short break whenever you need it and also helps in sharpening your memory.

So what are you waiting for? Take your magnifying glass and enter the level, the magnifying glass on your screen helps you to see the missing objects if they are too small for you to see! Zoom in, and tap it if you spot any difference between two pictures and win the level.

Every level will present you with two beautiful HD pictures that look the same, but there will be some small differences between them, it's your job to spot the difference as quickly as you can. In addition to that, finding the difference game gives you the option of hints. Note that you can use hints only twice at each level. Avoid regularly using hints, practice more, and clear the level with your skills will give you more confidence for the next challenging levels. The more you will play this game, the better your observation will become.

Improving your memory by finding the difference will be a significant aspect of this game. Whenever you play at a new level, you exercise your brain to solve that level.

Benefits You Get Playing This Game:
-> Simple game pattern for all.
-> Help you in improving your mental strength!
-> Power up your observation skills!
-> You enter the detective world!
-> Beautiful Pictures for everyone
-> Easy to use with simple UI/UX

Find the difference game gives you relief from stress while playing the game, easily show your patience and detective skills to clear the level and head to the next! The levels will become more challenging as it goes higher & higher so to tackle them easily concentrate on the game and find the spots!

Amazing Features By Find The Difference Game:
-> More than 200+ Amazing & Challenging levels with high-quality pictures
-> Find the spots from the smaller details and improve observation
-> Use hints if you unable to clear levels
-> Magnifying Glass: Zoom in to spot the smallest differences between pictures
-> Play with a timer to analyze your true mental strength

Find the difference is a fun game that is designed for everyone.
when you progress in levels the difficulties also increase. It is highly recommended to play spot the differences games and constantly increase the level of difficulty which helps you in improving your skills. Spot the difference games will look simple to you but many times we are unable to find all the differences.

So what are you waiting for? Try out this challenging and fun game by downloading it now!

Attachments

  • find_the_difference_phone_1.png
    find_the_difference_phone_1.png
    769.7 KB · Views: 185
  • find_the_difference_phone_2.png
    find_the_difference_phone_2.png
    391.7 KB · Views: 113
  • find_the_difference_phone_3.png
    find_the_difference_phone_3.png
    1.1 MB · Views: 113
  • find_the_difference_phone_4.png
    find_the_difference_phone_4.png
    548.2 KB · Views: 120
  • find_the_difference_phone_5.png
    find_the_difference_phone_5.png
    952.4 KB · Views: 116
  • find_the_difference_phone_6.png
    find_the_difference_phone_6.png
    859.6 KB · Views: 115
  • find_the_difference_phone_7.png
    find_the_difference_phone_7.png
    956.3 KB · Views: 110
  • find_the_difference_phone_8.png
    find_the_difference_phone_8.png
    299.1 KB · Views: 113
  • feature_graphic.png
    feature_graphic.png
    416.2 KB · Views: 121

Android Studio Preview Rendering problems

Hi, I am trying to learn Android development. I am learning from developer.android.com/courses

And have problems with @Preview rendering.

Every time I change something in code (even if I just added new line) preview try to automatically Build and Refresh, but every time it fails. It says "Some issues were found while trying to render this preview".
In Problems window I see some Render problems in Compose tab.

Rich (BB code):
android.content.res.Resources$NotFoundException: Could not resolve resource value: 0x1CFDEB.   at android.content.res.Resources_Delegate.throwException(Resources_Delegate.java:1161)   at android.content.res.Resources_Delegate.throwException(Resources_Delegate.java:1137)   at android.content.res.Resources_Delegate.throwException(Resources_Delegate.java:1141)   at android.content.res.Resources_Delegate.getString(Resources_Delegate.java:823)   at android.content.res.Resources.getString(Resources.java:546)   at androidx.compose.ui.res.StringResources_androidKt.stringResource(StringResources.android.kt:39)   at com.example.superheroes.HeroesScreenKt.HeroItem(HeroesScreen.kt:30)   at com.example.superheroes.HeroesScreenKt$HeroPreview$1.invoke(HeroesScreen.kt:49)   at com.example.superheroes.HeroesScreenKt$HeroPreview$1.invoke(HeroesScreen.kt:48)   at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)   at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)   at androidx.compose.material.MaterialTheme_androidKt.PlatformMaterialTheme(MaterialTheme.android.kt:23)   at androidx.compose.material.MaterialThemeKt$MaterialTheme$1$1.invoke(MaterialTheme.kt:82)   at androidx.compose.material.MaterialThemeKt$MaterialTheme$1$1.invoke(MaterialTheme.kt:81)   at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)   at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)   at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228)   at androidx.compose.material.TextKt.ProvideTextStyle(Text.kt:265)   at androidx.compose.material.MaterialThemeKt$MaterialTheme$1.invoke(MaterialTheme.kt:81)   at androidx.compose.material.MaterialThemeKt$MaterialTheme$1.invoke(MaterialTheme.kt:80)   at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)   at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)   at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228)   at androidx.compose.material.MaterialThemeKt.MaterialTheme(MaterialTheme.kt:72)   at com.example.superheroes.ui.theme.ThemeKt.SuperheroesTheme(Theme.kt:38)   at com.example.superheroes.HeroesScreenKt.HeroPreview(HeroesScreen.kt:48)   at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)   at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)   at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)   at java.lang.reflect.Method.invoke(Method.java:566)   at androidx.compose.ui.tooling.ComposableInvoker.invokeComposableMethod(ComposableInvoker.kt:155)   at androidx.compose.ui.tooling.ComposableInvoker.invokeComposable(ComposableInvoker.kt:195)   at androidx.compose.ui.tooling.ComposeViewAdapter$init$3$1$composable$1.invoke(ComposeViewAdapter.kt:590)   at androidx.compose.ui.tooling.ComposeViewAdapter$init$3$1$composable$1.invoke(ComposeViewAdapter.kt:588)   at androidx.compose.ui.tooling.ComposeViewAdapter$init$3$1.invoke(ComposeViewAdapter.kt:625)   at androidx.compose.ui.tooling.ComposeViewAdapter$init$3$1.invoke(ComposeViewAdapter.kt:583)   at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)   at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)   at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228)   at androidx.compose.ui.tooling.InspectableKt.Inspectable(Inspectable.kt:61)   at androidx.compose.ui.tooling.ComposeViewAdapter$WrapPreview$1.invoke(ComposeViewAdapter.kt:531)   at androidx.compose.ui.tooling.ComposeViewAdapter$WrapPreview$1.invoke(ComposeViewAdapter.kt:530)   at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)   at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)   at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228)   at androidx.compose.ui.tooling.ComposeViewAdapter.WrapPreview(ComposeViewAdapter.kt:525)   at androidx.compose.ui.tooling.ComposeViewAdapter.access$WrapPreview(ComposeViewAdapter.kt:124)   at androidx.compose.ui.tooling.ComposeViewAdapter$init$3.invoke(ComposeViewAdapter.kt:583)   at androidx.compose.ui.tooling.ComposeViewAdapter$init$3.invoke(ComposeViewAdapter.kt:580)   at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)   at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)   at androidx.compose.ui.platform.ComposeView.Content(ComposeView.android.kt:402)   at androidx.compose.ui.platform.AbstractComposeView$ensureCompositionCreated$1.invoke(ComposeView.android.kt:248)   at androidx.compose.ui.platform.AbstractComposeView$ensureCompositionCreated$1.invoke(ComposeView.android.kt:247)   at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)   at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)   at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228)   at androidx.compose.ui.platform.CompositionLocalsKt.ProvideCommonCompositionLocals(CompositionLocals.kt:177)   at androidx.compose.ui.platform.AndroidCompositionLocals_androidKt$ProvideAndroidCompositionLocals$3.invoke(AndroidCompositionLocals.android.kt:123)   at androidx.compose.ui.platform.AndroidCompositionLocals_androidKt$ProvideAndroidCompositionLocals$3.invoke(AndroidCompositionLocals.android.kt:122)   at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)   at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)   at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228)   at androidx.compose.ui.platform.AndroidCompositionLocals_androidKt.ProvideAndroidCompositionLocals(AndroidCompositionLocals.android.kt:114)   at androidx.compose.ui.platform.WrappedComposition$setContent$1$1$3.invoke(Wrapper.android.kt:157)   at androidx.compose.ui.platform.WrappedComposition$setContent$1$1$3.invoke(Wrapper.android.kt:156)   at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)   at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)   at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228)   at androidx.compose.ui.platform.WrappedComposition$setContent$1$1.invoke(Wrapper.android.kt:156)   at androidx.compose.ui.platform.WrappedComposition$setContent$1$1.invoke(Wrapper.android.kt:140)   at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)   at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)   at androidx.compose.runtime.ActualJvm_jvmKt.invokeComposable(ActualJvm.jvm.kt:74)   at androidx.compose.runtime.ComposerImpl$doCompose$2$5.invoke(Composer.kt:3193)   at androidx.compose.runtime.ComposerImpl$doCompose$2$5.invoke(Composer.kt:3183)   at androidx.compose.runtime.SnapshotStateKt__DerivedStateKt.observeDerivedStateRecalculations(DerivedState.kt:252)   at androidx.compose.runtime.SnapshotStateKt.observeDerivedStateRecalculations  at androidx.compose.runtime.ComposerImpl.doCompose(Composer.kt:3183)   at androidx.compose.runtime.ComposerImpl.composeContent$runtime_release(Composer.kt:3119)   at androidx.compose.runtime.CompositionImpl.composeContent(Composition.kt:584)   at androidx.compose.runtime.Recomposer.composeInitial$runtime_release(Recomposer.kt:811)   at androidx.compose.runtime.CompositionImpl.setContent(Composition.kt:519)   at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:140)   at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:131)   at androidx.compose.ui.platform.AndroidComposeView.setOnViewTreeOwnersAvailable(AndroidComposeView.android.kt:1015)   at androidx.compose.ui.platform.WrappedComposition.setContent(Wrapper.android.kt:131)   at androidx.compose.ui.platform.WrappedComposition.onStateChanged(Wrapper.android.kt:182)   at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.java:354)   at androidx.lifecycle.LifecycleRegistry.addObserver(LifecycleRegistry.java:196)   at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:138)   at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:131)   at androidx.compose.ui.platform.AndroidComposeView.onAttachedToWindow(AndroidComposeView.android.kt:1102)   at android.view.View.dispatchAttachedToWindow(View.java:21291)   at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3491)   at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3498)   at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3498)   at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3498)   at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3498)   at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3498)   at android.view.AttachInfo_Accessor.setAttachInfo(AttachInfo_Accessor.java:58) Copy stack to clipboard   Tip: Try to refresh the layout.

But if I manually Build and Refresh no problems are found and everything works. This is very frustrating.

For new assignment I had to create HeroesScreen.kt file and write some code here. I tried to create @Preview in HeroesScreen.kt but was not even able to move from "Code" tab to "Split" tab. Pressing on Split tab did not do anything. Closed Android Studio and opened it again and was able to press and open Split window. But preview would show same issues as above, even if I Build and Refresh manually.
Opened MainActivity.kt file to write some code here. Wanted to copy code from HeroesScreen.kt so I opened it and @Preview is rendered no issues.

I made screen video

Filter

Back
Top Bottom