« first day (3927 days earlier)      last day (1244 days later) » 

00:41
I might play some Skyrim too and have a pizza. Good night.
 
3 hours later…
Mab
Mab
03:19
Good Morning guys
Mab
Mab
03:58
Anyone help Mab on this
For @LetMeBeYourLostDisciple 's question? I'm curious about this. In the JavaDoc and reference for onCheckedChanged listener - it says the checkedId parameter is the unique identifier of newly checked Radio Button
but from the linked GitHub code snippet, the author unnecessary IMO finds the view again passing the checkedId to findViewById() and then calling getId on the RadioButton rather than switching on the passed checkedId. Same thing here and here as the checkedId is ignored
Since the id is already passed as a parameter to onCheckedChanged, why go about the stress of RadioGroup.getCheckedRadioButtonId();
I think I'm missing something and Every code snippet is ignoring the int parameter passed to onCheckedChanged
I think I'm missing something and Every code snippet is ignoring the int parameter passed to onCheckedChanged
04:58
@Mab: I think passing checkedId to switchi s the efficient way if we only want to know which radio button is switched to checked condition from unchecked. I strongly believe my thought.
05:14
Capturing outside objects in an anonymous inner class method while the same objects actually have been passed to it seems to be a bad practice, I think. :-) I am referring to this code.
The method captures the outer object group rather than just use the passed radioGroup.
By the way, the fonts used in this chat room for backtick seem to be hard to distinguish from the surrounding fonts.
Mab
Mab
Oh yea @LetMeBeYourLostDisciple I understand that, but doesn't answer my Question and even that answer you linked to kinda making me think it's prob something is wrong with Parameters passed to onCheckedChange. In his case he even neglected the passed RadioGroup. But what I'm concerned with is why leave the checkedId parameter only to go call RdioGroup.getCheckedRadioButtonId(); shouldn't they just return same id?
Almost every snippet I've seen so far ignores the checkedId
@Mab Yes. It is mysterious. I will always use checkedId for this case. Or you had better post a new question about it in the main site. I have already made a lot of questions. :-)
\0
05:38
Aneone here faced similar situation stackoverflow.com/questions/68077957/…
 
4 hours later…
10:04
This was the most starred message last year on this day:
Jul 17 '20 at 18:49, by Nyakouai
Actually, scratch that, Raghav is that random cop slapping you
 
3 hours later…
12:49
Folks, I got a strange problem as follows.
I made a new project with empty activity selected.

I added a new layout **layout_extra.xml** that contains just one **switch** widget.

The **activity_main.xml** contains a button to navigate to the **layout_extra.xml** .

I want to set the background color of the **layout_extra.xml** to red for the first click of the switch.

Unfortunately, there is an error when accessing **R.layout.layout_extra** from anonymous class method.
Oh my ghost, markdown does not get well rendered!
Just give up on Android dev and move to a different field
13:06
@RaghavSood Surrender is not my option.
It isn't surrender, it is improving your quality of life
Becoming Android dev will improve my quality of life.
 
2 hours later…
14:50
Problem solved. \0
15:12
@Tim One more thing I just learnt today. Not all events are available as attributes in XML. For example, invoking setOnCheckedChangeListener is only possible from code-behind file (for example MainActivity.java). \0
@LetMeBeYourLostDisciple you should have a reference of the view then do view.setx.. also try changing bg color of the container like a liner or constraint layout instead
15:30
@asim The problem above has been solved by someone (from India).
@LetMeBeYourLostDisciple So you have decided to give up, Good
@asim No. I will become a professional Android developer soon. :-) \0
@LetMeBeYourLostDisciple when did you started?
@asim Started learning Android or?
@LetMeBeYourLostDisciple ya
15:37
I started learning Android in around 2016 but it was not so serious. This week I pledged to seriously learn it.
I need money to be honest!
If that is the case you will make more money making websites, they are easier are way faster to learn, Idk if rest of the people will agree with me but thats what i think is better for you
@asim Yes. I want to master opencv-based mobile (android, flutter, maui), Rest webapi (asp.net core), and web app (angular, blazor, asp.net core).
mobile is needed for opencv-based app.
\0
I was gonna throw a meme at you but...
Here it is anyway, hope you can take it
Mab
Mab
16:51
@RaghavSood example of such a different field? I need money!! Website are built by CMS these days, the web is scattered, and now the Android I wanna fall back on y'all taking it away from me
@asim also
@everyone
17:04
/0
Whosoever can solve my question will hailed as my messiah.
@asim What does this image mean?
\0
18:11
0
A: Only able to navigate to the extra layout for the first click

asimExplanation will follow in chat but that is not how it is supposed to be done, For views to change, You have other options like using Fragments or using new activity entirely, I would also like to suggest moving to kotlin. public class MainActivity extends AppCompatActivity { View mainView; ...

\o
3 hours ago, by asim
@LetMeBeYourLostDisciple you should have a reference of the view then do view.setx.. also try changing bg color of the container like a liner or constraint layout instead
^ that is the explanation for it
I am trying your answer. \0
@LetMeBeYourLostDisciple let me make it a lil easier for you
@LetMeBeYourLostDisciple edited
18:30
Accepted. Thank you very much!
@LetMeBeYourLostDisciple No need, I will be happy when you will do it the proper way
@asim The proper way using fragment?
@LetMeBeYourLostDisciple Depends on what you are trying to make, in short, yes
Mab
Mab
@asim @RaghavSood answer my question above
@Mab Sorry I didn't scroll enough was kinda busy, lemme check
18:53
@Mab if that is the question then yes you are right checkedId returns the checkedId already so retrieving it again is useless
@Mab pastebin.com/PU7BwMFf a simple test to prove it
Mab
Mab
No the question is 17:51
Mab
17:51
@RaghavSood example of such a different field? I need money!! Website are built by CMS these days, the web is scattered, and now the Android I wanna fall back on y'all taking it away from me
Oh!
Mab
Mab
It's about platform to develop for when you guys were advising @LetMeBeYourLostDisciple
I am very sorry I didn't mean to hurt you in any way
I have seen people make better money making websites than android devs
thats all, its just an opinion of mine
o/
What up all with thee
Mab
Mab
19:01
Yea @asim I respect the opinions . i wanna know Anything really bad about the Framework? I have seen a lot of critic about Android framework.... And what's ur opinion about CMS which gives even non technical people ability to make websites, and about the web being so scattered
People like to criticize everything but that does not mean that you should stop at the very outcry of someone. Sometimes, people here jokingly bad mouth a certain language or a framework but that does not mean that it's awful to work with
Use whatever your idea asks for
Don't be afraid to learn new things
In fact, don't limit yourself to a particular kind of development
I thought I am the person with the most questions asked. I just found another one. :-)
@Mab: do you eat fufu every day?
Mab
Mab
fufu? I'm a Nigerian and there's a food with that name in my culture, I dunno if it's same as the fufu you know
Thanks a lot @Taseer
alot*
Ohh seems I see what @LetMeBeYourLostDisciple is driving at
Like I shouldn't limit myself right?
19:17
@Mab No. No limit.
My friends from Nigeria like cooking fufu every day.
Mab
Mab
OK hahaha, my bad I got that late. Thanks btw
Wow glad to hear That
Are you sure you cannot afford a computer?
Mab
Mab
Yea, I can't. 2nd year an undergraduate Compt Eng. But that's independent of my development career. AIDE a mobile Android development ide saves my ass .... Pretty bad
Termux is also worth every dime
Mab
Mab
No, it's my first time seeing that
And moreover how u know am a Nigerian? Huh🤕 where's such info stored on SO
19:27
@Mab your own profile
Hello
can I call you Mab?
Mab
Mab
Yes Mab
well, I think you are android expert.
right?
Mab
Mab
Ohh @LetMeBeYourLostDisciple I dunno sef
Not at all @RollandCostomarob
19:36
yeah...
Mab
Mab
You got something for me?
no, there was a simple question for me.
about android studio.
I need to ask someone.
@Mab There's a group for teen programmers that offer very high end computers (like macs) for free for those who need. I don't love the group but the program is good.
Mab
Mab
Ohh, android Studio😖😖. You can ask We have geeks here anyway, although some charge for validation of info
If you are interested hackclub.com. You can join their slack and ask someone.
@RollandCostomarob Don't ask to ask, just ask your question and if someone is aval they will answer
Mab
Mab
@JBis, I dunno about that but that sounds cool, I'll love it. But if it's in form of a loan, I don't see myself making that much to pay back in a short time
room more active on weekdays btw
@Mab No. Completely free, no strings.
Mab
Mab
Wow thanks alot @JBis , I'll check that out
np :)
19:57
@RollandCostomarob what is your question?
20:18
@asim: In your answer (on the main site), I think we can flatten the code by moving the inner lambda to be the same level as the outer one.
main.findViewById(R.id.btnGoToExtra).setOnClickListener(v -> {
    setContentView(extra);
});
extra.findViewById(R.id.btnBackToMain).setOnClickListener(vv -> {
    setContentView(main);
});
@LetMeBeYourLostDisciple android studio did suggest that yeah
if you append "o" to your display name, you will be a robot.
@Mab No framework bad enough i think, everything have some pros and cons, same for the languages, take for example I don't like flutter but it does not mean flutter is bad, Its more than fine, Regarding the question about website, I do think that ease of making websites made a huge impact on people who spent their lives learning technical details of them
@LetMeBeYourLostDisciple the one that keeps falling off on stage
@asim The newest one is much better.
@LetMeBeYourLostDisciple Always dreamed of making bionic limbs for robots, they will be way more stable then motorized systems
20:47
@asim Bionic is hard to implement.
@Mab: There are many palm oil plants in your hometown?
Mab
Mab
@LetMeBeYourLostDisciple Sure there are
@Mab Good. Have you ever worked in a palm oil plantation?
Mab
Mab
Understood @asim, for the web part, job requirements are more of Getting verg good at one of those JavaScript frameworks, it (web dev) is where I started from but I just feel Android is more secured in the sense that it's isn't going anywhere soon... I understood anyway thanks
lol @LetMeBeYourLostDisciple not at all
mobile and rest-api are necessary to be a full-stack developer.
Folks, I have to sleep. Thank you. \0
Mab
Mab
Good night @LetMeBeYourLostDisciple, and be early tomorrow to enlighten me on your last comment
21:53
I cannot sleep before getting the following answer:

If I have two different layouts, each contains a button, and these buttons have the same id **btn**, how to obtain the button in a certain layout?
Tim
Tim
22:31
Use unique ids
@Tim: OK. Thank you. \0
Tim
Tim
Otherwise you can findviewbyid the layout first, and the call findviewbyid on that to find the view
If you call findviewbyid on the root layout it will always return the first one it finds while traversing
@Tim,. Hello Tim!
Where I can ask questions about Android OS or OS in general please?
Can I post questions on stack overflow about android OS?
Tim
Tim
I don't know, this chat room is not really related to the main site
23:36
@Abraheem Yes. You can ask on the main site but make sure to attach the proper tags to your question.

« first day (3927 days earlier)      last day (1244 days later) »