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

Problems with "Adopt good coding practices" step

I'm just starting to learn Android app development and kotlin and I'm working with the resources on developer.android.com. Currently I'm working on Build a basic layout > 3. Add images to your android app > 4. Adopt good coding practices.
In the instructions it talks about a warning next to the textView that I made in an earlier step and goes on to tell you how to extract the resources to your XML file so that the text is no longer hardcoded into your app and can be changed. The problem that I am having is that in my android studio there is no warning next to my textViews. I still want to make sure that the text is extracted to the XML file so I've been searching through help for that dialogue box but nothing has been coming up.

Here is the image from the tutorial that shows what I should be seeing:
d871085dc82340a0.png

here is what I am actually seeing:
upload_2022-4-8_13-41-55.png

Please help me figure out #1, why are there no warnings on my textviews, #2, how to extract the resources to the XML file.

Attachments

  • Screen Shot 2022-04-08 at 1.37.55 PM.png
    Screen Shot 2022-04-08 at 1.37.55 PM.png
    142.3 KB · Views: 131

[ROM] GamerROM 1 Home v1.0 For the LG Motion MS770 Updated: 2/5/2017

imageedit-1-5117431826_orig.png

Welcome this is our newest OS to come to the device, however we built this blindly and hopefully yall give feedback to improve your gaming experience!

This New release isn't lollipop its Android v4.1.2 and it was rebuilt from scratch

Features:

* most apps updated and includes gapps

* Fast blazing Online gaming via GamerROM Online

* Unique UI and much more

Download: https://play.google.com/store/apps/details?id=com.gamerrom.downloader

Last Updated: 2/5/2017

Version: v1.0

Android Version: v4.1.2
Download: https://play.google.com/store/apps/details?id=com.gamerrom.downloader LINK IT IS BROKEN

March Madness 22

congrats to the Jayhawks. that was a crazy 2nd half. i only caught the tail end of the game.....sorry for the late post, been crazy busy with work this week.
It was a crazy second. The first half was just as crazy. Kansas looked like it was their first time playing together as a team. They ran very few plays, put up stupid shots, and couldn't get a rebound on either end. It's amazing that they were able to win playing good basketball only one half.

Old phone number still shows up in Phone selector while logging into any app.

This type of thing can be stored on a keyboard app as well.

Do you use G-Board as your keyboard?
Do you allow your keyboard to make suggestions?

Keyboards like G-Board store things that you type in a 'dictonary' of sorts, to 'help' with suggestions.
This is one reason that I don't use keyboards that do such things.

One time, I missspelled something when hitting the wrong key.
The stupid keyboard (G-Board) would never forget it no matter how many times I corrected it.

The typo version of the word is what always came up in the suggestions.

Maybe your old phone number is being shown like this.

Help Tablet Once was Fast, Now is Slow

It ispossible, although tedious, to revert system apps (and user apps as well) back to versions that would make these devices perform as you remember.

The problem, besides the hours of time, is that those versions of apps may very well no longer function online with the sites they link to.

To be sure, it is highly likely that the devices really could be useable online, most likely not for gaming but for general online stuff.

Also, keep in mind that these things are ancient by today's standards, and technology with such devices moves ahead faster and faster.

To be sure, you yourself said that you have not used it in quite some time.

The speed that you remember is not going to be fast by today's standards.

I have every smartphone that has ever been mine- even dumb phones going back to 2001 (which was a 1997 version when I got it!)

When I do fire any of the old ones up, I am amazed at how slow they seem now, although I thought they were great when I was using them.

My ol'lady is still using a 7.1.1 that I have two of.
These things were great when we got them.
They did require routine clearing out, because the memory capacity was small.

So when her phone starts acting up, I have to do this maintenence on it.

Basically, I move her pics and videos to the SD card, delete any duplicates, update important apps, and clear the caches of all apps.
Then I do a restart.

This is what I do on a weekly basis with my devices (I tend to run two.)

With my current device, this can all be done in minutes.

With my slightly older device that I actually use as a phone, it takes a bit longer for each function.

Not a ton, but it is obvious.

I thought that device was fast (and it WAS the fastest device I ever had) until about 7 or 8 months later and I get this other device.

Now, when I go to do the service on my ol'lady's phone, I swear it is like dragging an anchor.
It took me hours, no kidding, because she had it so full and it is just that slow.
I always had a complaint with how long those 7.1.1 devices we have took to install updates or to restart them.

It takes about 2-3 minutes just to restart, whereas my phone (with double the memory, an octo core processor (the others are quad core) the same RAM but a better chipset) does it in about one minute flat.

Up until my latest devices, I just assumed that restarting took a long time.

Now it is like nothing.

Her battery is going bad, and although I can get her another one, I have already got her a new phone.

This was months ago, but she never activated it- now the carrier probably won't anyway.

Anyway, the point is that the devices we liked years ago in their prime are nothing compared to the devices of today.

These things have a typical useful lifespan of 2-4 years, but they will be outclassed long before then.

Help with passing variables etc.

Hi there, I'm trying to pass a variable to a function from the OnCreate function and I get no errors, but it crashes no matter what I try passing. Here's where I'm using it:
upload_2022-4-7_12-43-30.png


and here's where I'm trying to pass it to:
upload_2022-4-7_12-45-21.png


I've tried setting a boolean flag and passing it and that doesn't work either. I've also tried declaring the flag as public static Boolean flag; in MainActivity and passing it as MainActivity.flag and it throws no errors, but it crashes everytime.

Any help would be great, thanks in advance!

New app for Wear OS - Compass Navigation (FREE)

Good new again: New upgrade has come with new bug fixes and improvments.
Version 1.0.6 changes:
1. Fixed very seldom an error in IAP engine.
2. Fixed a few errors reported by Google app vital engine.
3. On users request added an option to change target dot color. Now possible: red (default), green and white.
4. Improved a few UI components.

Check compass navigation by GP https://play.google.com/store/apps/details?id=pl.mobimax.compassnavigation

redmi 7a android 10qkq1.191014.001 miui 12.0.2 save apps on sd card?

I agree with your advice but the thread starter wanted to move Apps to an SD card and upon re-reading the Post I seem to remember that back in the days of my Huawei Ideos, I used Astro File Manager from Playstore which enabled Apps to be moved to the external SD card.
Not ALL Apps could be moved but the idea was for cell phones with small internal storage capacity.
My Redmi 7 has 31.3GB's of the total 64GB internal storage in use.
There is an excellent article in the How to Geeks regarding how much internal storage is really required in a cell phone (relates to iPhones but it is a good guide)..
apps to sd card moves only portions of the app....not the entire app. it moves certain things of an app like data to be stored on the sd card. and you do not need a file manager to do this.

Apps don't recognize active wifi/data connection - Samsung Galaxy S22 Ultra 5G Exynos

Sometimes I see a momentary pop up like I'm offline, only in FB, usually when I leave it 'open' and my screen times out. WHen I pick it back up and it's open to FB, I see an offline message, but pull down to refresh, or close and open always fixes it. I always just figured it was FB being a ****

What youdescribe happens to me, most often with my newest devices.

It seems to me that any device I have that is Android 10 or above will stop or delay connection to the internet when the screen times out.

I believe that this is caused by built in battery savings in the devices, and/or settings that I have implemented.
Possibly even something to do with apps that I use Greenify to force stop.

Greenify activates when the screen goes off, and I have the paid version that can control system apps.

Help post-update issues

I've been in contact w/the carrier (Consumer Cellular) two more times (a total of 4 calls + one chat), and I've visited the tech at the local Target store in addition to posting here. CC tells me they've gone thru all their troubleshooting steps and they can't help me.

Currently all that is obviously wrong is that I can't send/receive texts over 144 characters, and I cannot send/receive images via text. This is crippling to my normal usage of my phone.

CC also says because my phone was originally a Verizon phone they believe it may no longer be compatible with their system and suggest that I purchase a new phone. Sorry but at almost $1,100 and only 2 1/2 yrs old & working perfectly until CC updated their network around 3 weeks ago, I'm not replacing the phone due to changes in their system!

Any further suggestions are welcome, including new carriers tho I don't want to go with any big-name corporations.

Filter

Back
Top Bottom