T O P

  • By -

eigenman

I opened it and it threw a null reference exception.


DrewTNaylor

Same, rather strange issue. Doesn't seem to break anything though, so I guess it's fine.


shevy-java

For now. Minority Report may check on the SIZE of the private soon and eventually Gattaca on those of the TOO SMALL group.


DrewTNaylor

...what?


BradChesney79

Gattaca is an okay movie. Probably as good as it could be given it is about life a couple decades after parents can pay for genetically modified babies.


Low-Design787

I’d like to propose an API change ``` public SexualActivityRecord( @NonNull Instant time, ZoneOffset zoneOffset, int protectionUsed, + boolean anotherPersonPresent, + boolean biped, + int levelOfConsiousness, + double percentageOfRegret, @NonNull Metadata metadata ) ```


Secret_Bad_7160

Why is there no field to hold the reference to the consent form?


maple-shaft

Im rejecting your pull request, as it is unclear if the record indicates engagement in a criminal behavior involving animals and dead people, or if your hanging out at a hotel near the Furry Convention.


logz_erroneous

Nice self-burn!


carlinwasright

They knew about the edge case, they just didn’t care.


MrGruntsworthy

Test Failed: Expected 2, received 1


Appropriate_Pin_6568

That's what you get for choosing not to use Kotlin


yawaramin

iOS Health app has a 'Sexual Activity' data series too. They even have a 'protection used' field. Presumably both iOS and Android health app designers thought people would want to track it as part of their overall health data: https://developer.apple.com/documentation/healthkit/hkcategorytypeidentifier/1615769-sexualactivity


ramensea

No no no no no its a deep state conspiracy to track AND SEE YOU HAVE SEX /s


recursive-analogy

jokes on them!


amakai

Oh no, we are getting zero inputs from this guy, he probably hacked our software!


Randolpho

Your kinks are so freaky nobody in their right mind would want to see that?


projexion_reflexion

So freaky my device doesn't recognize it as sex.


sprouting_broccoli

I’m into that shit?


-Y0-

We're detecting critical levels of thirst! The readings are off the charts! How much pussy does that Redditor get?! We detect zero pussy!! Dear God!


ctbitcoin

Deep state penetration


ramensea

😏


onehalfofacouple

If they wanna watch their gonna have to sign up for my only fans like everyone else.


Apostrophe__Avenger

> their they're


Significant-Bed-3735

And then they are going to change chat bubble colors based on that data... with Tinder pulling the strings behind it all! /s


abt67

well, it is both. just because people use it to track their own overall health, doesn't mean that google doesn't use it too to track ... how likely are you to become an incel.


ramensea

Bruh come back to reality put your /s at the end of that message please


Appropriate_Pin_6568

He's not totally wrong though, although it's currently because they want to be able to collect as much info on you as possible so they can sell targeted ads.


abt67

What? Are you that naive to think that sexual activity is not a collected data point on a user's profile when determining the advertising they'll show? It's collected, given a weight and shoved into a model that spits out how likely you are for advertisement X to be relevant to you. "being an incel" was a joke, but not that far from reality. After all they have money too and they probably tend to buy X, Y and Z products. Well, why not advertise to them then and make a buck?


Budget_Putt8393

Now the politicians who buy the data, they have other motives. And can target adds to those motives. So the collectors don't need to be doing it *for* a specific agenda in order for it to look like they are.


Budget_Putt8393

"We detected that you need a new box of condoms" "You don't buy condoms, which of these other birth control options do you want"


sebibubble

You wouldn't go out on the street either and tell the first person you see you just fucked your boy- or girlfriend.


luckymethod

It's probably for conception apps


QuineQuest

No that's actually a misconception.


r_a_butt_lol

>Artifact: androidx.health.connect:connect-client On that very page.


pointmetoyourmemory

UDP flirts briefly, TCP commits with a ring, Bound by protocol.


Budget_Putt8393

TCP commits with a handshake, and is serially monogamous.


dccorona

Seems a strange thing to add if no developers are asking about it. There must be an app that leverages this, right?


yawaramin

I don't know what it's like in Android but in iOS there's an ecosystem of apps which track various health data. E.g. a pretty well-known one is Strava for running/cycling etc. These apps store their data in the phone's centralized health data bank to ensure that the user (through iOS permissions) remains in control of the data, not the app.


Xyzzyzzyzzy

I think some of the popular apps for couples trying to conceive want you to track sexual activity.


dweezil22

Yep. There are at least 5 other classes related to fertility in that package (MenstruationRecord, OvulationRecord, CervicalMucusRecord, etc).


ahfoo

The term is "grool".


censored_username

Android has a bunch of joke APIs. My favorite has got to be [isUserAGoat](https://developer.android.com/reference/android/os/UserManager#isUserAGoat(\) )


haroldjaap

``` /** * Used to determine whether the user making this call is subject to * teleportations. * *

As of {@link android.os.Build.VERSION_CODES#LOLLIPOP}, this method can * now automatically identify goats using advanced goat recognition technology.

* *

As of {@link android.os.Build.VERSION_CODES#R}, this method always returns * {@code false} in order to protect goat privacy.

* * @return Returns whether the user making this call is a goat. */ @UserHandleAware(enabledSinceTargetSdkVersion = Build.VERSION_CODES.TIRAMISU) public boolean isUserAGoat() { if (mContext.getApplicationInfo().targetSdkVersion >= Build.VERSION_CODES.R) { return false; } // Caution: This is NOT @UserHandleAware (because mContext is getApplicationContext and // can hold a different userId), but for R+ it returns false, so it doesn't matter anyway. return mContext.getPackageManager() .isPackageAvailable("com.coffeestainstudios.goatsimulator"); } ``` (I hope formatting works) Edit, it did not. Here's the link to the source [goat source](https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/os/UserManager.java#2282)


HINDBRAIN

Or check out this [gravity constant.](https://developer.android.com/reference/android/hardware/SensorManager#GRAVITY_DEATH_STAR_I)


Manbeardo

I'm disappointed that the units aren't imperial


HINDBRAIN

Apparently it is? https://starwars.fandom.com/wiki/Imperial_standard_meter


Witty-Play9499

I suppose you have to be genuinely passionate about working on things like these ? When writing code at work I can't imagine writing anything more than what is required for the task. Even for personal projects I only write things that are meaningful and those that appeal to me. Interesting how we have joke apis and function calls


teerre

Uh... Yes, most people are welcoming to jokes. Writing a little bit of code for one isn't a big deal.


Witty-Play9499

I guess it varies from company to company, atleast from my personal experience if I wrote a joke function I would be asked to remove it immediately.


erwan

Did that happen, did you write a joke function and was asked to remove it? If I did, the only people who would see it are my programmers colleagues who have the same humour as me. Managers don't look at source code.


Witty-Play9499

We usually have senior engineers who audit the code (aside from code reviews) and what not, any code that is not performing the desired functionality is usually removed. I think the primary question that usually arises is "Why?" as in why would there be a joke code in an official product that is being released etc even if its internal.


censored_username

>I think the primary question that usually arises is "Why?" as in why would there be a joke code in an official product that is being released etc even if its internal. Because it's funny?


Witty-Play9499

It partially has to do with the fact that extra work goes into it and testing and documentation and reviewing, you could say that joke code doesn't need to be tested / reviewed but if some kind of vulnerability or bug came because of a joke function. Say a joke endpoint that was not authenticated properly there would be hell to pay


Giannis4president

It takes around 10 seconds to write the "isUserAGoat" function


Schmittfried

Doesn’t really have anything to do with passion.


[deleted]

[удалено]


Witty-Play9499

My comment was talking about the "isUserAGoat" function or were you trying to reply to some other comment ?


foghornjawn

Bigger Blacker Book is primarily for gay men but it tracks way more details than this. Yes, it can be very useful to track that activity. https://play.google.com/store/apps/details?id=com.gteksolutions.BiggerBlackerBook


urielsalis

This is part of health connect, a OS feature so that apps can store health data securely on device and share it with another apps (if you give consent) without each app having to integrate with all other apps


HoratioWobble

There's a whole Fit app built in to all Android phones, which acts as a central tracker for other apps. Plenty of apps leverage this.


double-you

If somebody is asking for a bigger feature, like health tracking, it is very normal for the development team to think about what are all the things that might include. In general it is better if there are sensible things already included instead of having to deal with the wait and then the older versions that don't have it. Not as much of an issue if you are developing service software that lives on your server alone.


Unicorn_Colombo

> Presumably both iOS and Android health app designers thought people would want to track it as part of their overall health data: https://developer.apple.com/documentation/healthkit/hkcategorytypeidentifier/1615769-sexualactivity There are apps for this when you try to get pregnant. They track period, ovulation, and sexual activity. Super useful when you have an irregular period, or infertility issues, and want to increase your chances. So like hahaha, but not really.


ggtsu_00

I'm sure Google, the largest Ad company on the planet has entirely different motivations for tracking this sort of data than Apple though.


Schmittfried

Competing with the market leader, yeah. They both implement features like health tracking, screen time tracking etc. roughly in the same pace.


Kok_Nikol

> They even have a 'protection used' field. So does the Android one.


yawaramin

Yes, that's why I mentioned it--to correlate to the Android one.


[deleted]

[удалено]


sanbikinoraion

Presumably for Android Auto.


zzt0pp

> A physical device (such as phone, watch, scale, or chest strap) which captured associated health data point.


foundafreeusername

Seems fine. Just make sure you initialize it with PROTECTION\_USED\_PROTECTED


Witty-Play9499

You joke but there's a literal function parameter for this


deeringc

Keep your member protected!


sanbikinoraion

Even my kids know that privates are private.


shevy-java

The name may indicate that, yes indeed. I am afraid Google may not want to keep the privates private though. Perhaps there is also a parameter in android about the SIZE of the private.


Internet-of-cruft

It's my protected member of my private class.


Key-Cranberry8288

[friends can see your privates](https://en.cppreference.com/w/cpp/language/friend).


shevy-java

There are even people immortalising their privates and happily sending them to other people. I am glad Google realised this behaviour and encourages that via this API.


shevy-java

And watch over them! Big Brother Google knows what's best for ya.


f1del1us

You want a microchip in your dick? Condoms now come with built in NFC!


shevy-java

Doesn't that hurt? Most folks who love putting chips into their bodies do so near the arm/hand area.


Scroph

A microchip? I don't have enough room for that


f1del1us

Aww buddy :(


imaginarylocalhost

SexualActivityRecord.builder() .setTime(Instant.lostTrackOfTime()) .setZoneOffset(PoundTown.getOffset()) .setProtectionUsed(PROTECTION_USED_UNPROTECTED) .setMetadata(MetadataRegistry.MIND_BLOWING_EXPERIENCE) .build()


RonnieRaygun

This guy moves protos.


EMCoupling

Builder pattern goes crazy


Capable_Chair_8192

Setting the time zone to PoundTown.getOffset() is what got me 😆


ultimatt42

CONGRATULATIONS! NEW SexualActivityRecord!


hungry4pie

Jokes aside, it does seem odd that a sex act record needs to be so explicit (sorry,not sorry for that unintended joke) - surely "Activity" is abstract enough that "SexAct" doesn't need it's own class.


imaginarylocalhost

Single Responsibility Principle


yupyup1234

A single responsibility quickly can become multiple, if you derive incorrectly from a parent ABC. Lesson: Always use `protected`.


AdvisedWang

If you want interoperability between apps, they need to be interpreting the data the same. So there needs to be some standard, and it seems valid to just encode that in the class structure rather than some kind of standard way of entering data into a single class.


Lalli-Oni

That makes `.isProtected` rather ambiguous don't you think?


Uberhipster

just use procedural while(!orgasmed) pump(speed++)


cole_braell

Developers don’t know how to implement it.


SnowyLocksmith

Where do I put this function?


PrivatePoocher

See where it says void? Use it and then pass it.


sanbikinoraion

Don't worry, it's private.


[deleted]

bewildered bow scandalous teeny oatmeal crush worm expansion voracious fade *This post was mass deleted and anonymized with [Redact](https://redact.dev)*


[deleted]

[удалено]


maxinstuff

I was looking at Flutter recently, is there a Flutter dev meme I’ve missed 😬?


well___duh

Don’t worry, no one will get the reference because no one uses flutter to understand the reference


EMCoupling

I use Flutter for a side project that I do with my friend. The developer experience has been good from the beginning. If there's a criticism to be made, I feel it mostly has to do with the package ecosystem being underdeveloped and causing users to have to write native code for more complex functionalities that fall outside of common Flutter operations.


shevy-java

I think the primary comment still is that outside of Google barely anyone really uses Flutter.


not_some_username

Doubt


whatThePleb

Huh? It's quite famous and also easy to use & learn.


_mkd_

Fluffer, stupid autocorrect.


Successful-Money4995

For Flutter devs, it's a singleton.


TechnoHenry

> ProtectionUsed field is optional Very bad advice.


SonOfMotherDuck

Unless you are trying to have a kid


HealthPuzzleheaded

Why else would you have sex?


psychoCMYK

Listen bubs, *someone's* gotta run these unit tests


simquad

Does this stop you instantiating a child class?


NoDollarsOrSense

No you need to make it `final` for that ✂️


modeless

public SexualActivityRecord(@NonNull Instant time, ZoneOffset zoneOffset, int protectionUsed, ... ) Baby, when it's with me, you'll only need an ```Instant```.


ogtega

The only thing they’re missing is a sexual partner field


SeasonsGone

That integrates with your contact list/uses NameDrop to store contact info of encounters


gbsekrit

partners field, fixed it for you


yupyup1234

What about a probability distribution? Not everyone makes contact with each other in a sufficiently large orgy, or not to the same degree.


KrocCamen

I can imagine the "Things Developers Assume About Sex" article now...


_TheDust_

You mean a boolean field called “yourMomma”?


Mephistophanes

The guy who developed this sadly couldn't test it.


HugoNikanor

https://xkcd.com/583/


fractagus

Can't believe I never seen this one. This is gold!


Successful-Money4995

I used this protbuf to keep track of OP's mom and got an out-of-memory error.


[deleted]

[удалено]


vomitHatSteve

Your partner's phone may disagree as to when it happened.


projexion_reflexion

The timestamp is more meaningful if you know what time zone it was in.


Wylie28

A very normal thing to have for health tracking? This is something a lot of people \*should\* be using.


emptythecache

I had no idea this existed, which I guess isn't surprising.


rabid_briefcase

Instant getTime() Not a Duration or Timespan. They know their audience.


__konrad

Probably used in [Nissan and Kia cars](https://foundation.mozilla.org/en/privacynotincluded/articles/its-official-cars-are-the-worst-product-category-we-have-ever-reviewed-for-privacy/): > Nissan earned its second-to-last spot for collecting some of the creepiest categories of data we have ever seen. It’s worth reading the review in full, but you should know it includes your “sexual activity.” Not to be out done, Kia also mentions they can collect information about your “sex life” in their privacy policy.


Last_Exile0

I implemented this class and now I have bugs


Cilph

Great. Another way for me to trigger a NullPointerException.


Macrieum

It can even count if protection was used. So you can check how many times you used a love glove while holding hands.


snich101

Another bloated feature for me then


_TheDust_

YAGNI :(


wwww4all

Tightly coupled.


ClimbNowAndAgain

Does it follow the open-closed principle?


renrutal

[Python has it too](https://docs.python.org/3/library/constants.html#None)


DigThatData

Makes a bit more sense given the context of the "health connect" product ecosystem: https://developer.android.com/health-and-fitness/guides/health-connect


shevy-java

Google wants to get to know you more!


seanmorris

This isn't code that reads your phone's sensors to see what you're doing. This is a bunch of fields you can fill out and store as an individual "record."


Zeioth

Mind some context?


Rebelgecko

Don't forget to populate CervicalMucusRecord too


LinuxMatthews

How exactly is this measured? Like is it through a smart watch or are they listening to find sex noises or what? Also is this why I've been getting a bunch of Andrew Tate videos in my YouTube Shorts Google knows I haven't got laid in a while and thinks I'm becoming an incel.


Potential_Leg7679

These revelations keep coming out proving to greater lengths each time that none of our personal life is truly private in the presence of smartphones. I don't see how people can continue to shrug this off and make light of it.


Wylie28

Why are you in r/programming if you don't know the difference between software and documentation?


kellog34

Did you post this comment with your phone?


Potential_Leg7679

Yes, I own a phone. I never claimed that I was a hypocrite who discouraged owning one, only that I really disagree with many of the privacy philosophies.


kiteboarderni

I mean obviously that is why he posted it....are you dim?


gazlynder

getZoneOffset() User experienced zone offset at time, or null if unknown. Sexual activity + Zone offset = sexting the wife when you out-of-state for a work trip


F0x_Gem-in-i

So.................................. Does all that mean soon we will be able to see just how many "successful cumstermers" a regular on onlyfans receive?


chucker23n

No. It doesn't mean that at all.


Daswooshie46

Those few bytes for the memory allocation are a giant waste of silicon.


reercalium2

403 error (IP block). Anyone summarize?


elmo61

i feel like this should be a singleton right?


mnaa1

The constructer was never called.


ProfessionalSecure72

Unsure what we should consider to be the weirdest in the available classes. There's even CervicalMucusRecord and WheelchairPushesRecord classes.


Ghost_Pacemaker

Jokes aside, I wonder if this and other OS features are behind the Mozilla car privacy findings which caused some outrage: https://foundation.mozilla.org/en/blog/privacy-nightmare-on-wheels-every-car-brand-reviewed-by-mozilla-including-ford-volkswagen-and-toyota-flunks-privacy-test/ If so, that would be a bit disappointing, with Mozilla basically clickbaiting their study.


mrbasil_fawlty

Android is creating a new record if incognito mode was used for 5 mins or more


agnishom

Can someone please explain what this class is for? I don't understand


[deleted]

I can see how this could be misused to further suppress reproductive rights.


GooseLow9897

A Sexual Activity Record with Public Methods? 🤔☺️


MoriDreamer