« first day (3920 days earlier)      last day (1041 days later) » 

2:01 AM
@Lime it's coming back next mac
Tbh even as an Apple fan imo iPhones are overpriced
I don't need a powerful phone, gimme a shitty chip
I prob won't upgrade for a while
 
 
3 hours later…
5:31 AM
Hi folks, is it necessary to invoke isChecked() method when using RadioButton? The following official documentation shows something that I think it is not necessary, right?
public void onRadioButtonClicked(View view) {
    // Is the button now checked?
    boolean checked = ((RadioButton) view).isChecked();

    // Check which radio button was clicked
    switch(view.getId()) {
        case R.id.radio_pirates:
            if (checked)
                // Pirates are the best
            break;
        case R.id.radio_ninjas:
            if (checked)
                // Ninjas rule
            break;
    }
}
Whenever we click one radio button, it is automatically get checked so there is no need to check whether it is checked or not.
If you answer my question, please kindly ping me. Thank you.
 
 
5 hours later…
10:04 AM
This was the most starred message last year on this day:
Hmm. Actually, nothing interesting was said on this day last year.
 
 
2 hours later…
12:01 PM
The last message was posted 1000 centuries ago.
 
12:21 PM
@JBis Nice. So, is it no longer going to use USB-C for charging?
 
 
2 hours later…
user15686227
2:01 PM
How to make an API call in Jetpack Compose?
 
Tim
2:19 PM
the same
 
user15686227
2:37 PM
Can anyone answer my question?
 
No.
 
Tim
I answered your question
 
Folks, how to get the application context from the anonymous listener below? Is it correct?
        spinnerGenders.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
            @Override
            public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
                Toast.makeText(getApplicationContext(), parent.getItemAtPosition(position).toString(), Toast.LENGTH_SHORT);
                tvText.setText(parent.getItemAtPosition(position).toString());
            }

            @Override
            public void onNothingSelected(AdapterView<?> parent) {
I found the Toast does not show up. However no problem for the textview tvText. I think I don't get a proper context?
Ah... I am so stupid. I forgot to call show(). Problem solved. :-)
 
Tim
3:19 PM
you should not use the application context for the purpose of showing some UI on a screen
 
 
2 hours later…
5:16 PM
I have noticed there are no APIs for force quitting applications is this by design
I mean that is root/sudo/admin privileges allowing this
 
5:59 PM
@Lime yeah, ART works in misterious ways
 
6:16 PM
@IvanMilisavljevic android is not an art
Anyways they deprecated these apis
 
6:57 PM
ART - android runtime
 
Tim
another thing that android has but iOS doesn't
 
 
4 hours later…
11:12 PM
@twiz My guess is both will work. As in, if you have a display that supports charging via usb-c than you don't need magsafe, but if you want magsafe you can. Magsafe MAY be faster charging as well.
 

« first day (3920 days earlier)      last day (1041 days later) »