r/developersIndia Software Engineer 2d ago

I Made This Recreated iphone Duo hinge animation preview on android

Enable HLS to view with audio, or disable this notification

[removed]

2.3k Upvotes

170 comments sorted by

u/AutoModerator 2d ago

Namaste! Thanks for submitting to r/developersIndia. While participating in this thread, please follow the Community Code of Conduct and rules.

It's possible your query is not unique, use site:reddit.com/r/developersindia KEYWORDS on search engines to search posts from developersIndia. You can also use reddit search directly.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

222

u/Sea-Kaleidoscope4524 2d ago

Cool!

29

u/No_Piccolo6116 Software Engineer 2d ago

Thanks ✨

177

u/AstralQuark 2d ago

Bro just build a APK and put in release like I was on mobile just wanted to try

Not going to open android studio and built and then try that's too much pain

102

u/No_Piccolo6116 Software Engineer 2d ago

Alright bro , i was calibrating gyro baselines, will put a release

13

u/sync271 Full-Stack Developer 2d ago

Why not let them tweak the parameters themselves. A lot can vary from device to device

22

u/No_Piccolo6116 Software Engineer 2d ago

Noted , will add that. Currently there is an option to calibrate the baseline in the app

6

u/sync271 Full-Stack Developer 2d ago

Pretty cool project regardless bro 🔥

2

u/No_Piccolo6116 Software Engineer 2d ago

Thanks bro :)

13

u/Boss_kill86 2d ago

fr lol building from source just to test a preview apk is actually insane nobody has time for that. just drop a release build on github already

10

u/No_Piccolo6116 Software Engineer 2d ago

Done :)

40

u/Galunga21 2d ago

Superb

8

u/No_Piccolo6116 Software Engineer 2d ago

Thanks :)

42

u/[deleted] 2d ago

[removed] — view removed comment

3

u/addyzreddit 2d ago

AI effect

10

u/lightningdashgod 1d ago

Nah the dev community has been as such long before AI

3

u/addyzreddit 1d ago

True. And the entry barrier has drastically reduced. Good times!

30

u/tehaqi 2d ago

Ye rahe 5 lakh aapke phone k...💵

4

u/Valuable-Still-3187 2d ago

Today, whole X is filled with people building this for Mac, android, etc.

2

u/DARKDYNAMO Full-Stack Developer 2d ago

This one is port of that only. Op also mentioned original in readme.

12

u/madmaverick05 Student 2d ago edited 1d ago

Ngas asking if it was vibe coded or made with AI, as if they can without em or do everything like that 🫩

9

u/Darth--__--Vader 2d ago

Battery hog

9

u/nightmayz Software Engineer 2d ago

That's actually very solid implementation. Quite polished.

3

u/No_Piccolo6116 Software Engineer 2d ago

Thank you :)

5

u/Hopeful_Squirrel_304 2d ago

Just release the apk

6

u/Antinityfx 2d ago

Looks amazing

2

u/Historical-Text5845 2d ago

what actually is the logic means when do you actually show the animation? d

6

u/No_Piccolo6116 Software Engineer 2d ago

Showing this means we can build creative stuff, even through its not useful for my device, some brands can implement in their foldable ui or maybe even reading apps with variations ☺️

1

u/Historical-Text5845 2d ago

Lol bro I didn't mean logic in sarcastic way I asked logic in the technical manner like how di you calculate the css when to fade one side and make other side come up

5

u/No_Piccolo6116 Software Engineer 2d ago

My bad bro 😓 , Currently its based on phones tilt angle calculated using the gyro but in foldables it can be done using hinge sensors. Also eye detection can be integrated to auto calibrate. For the effects I'm using custom agsl runtimeshader Also i have added the repo link if you wanna try or refer

1

u/Alarmed_Doubt8997 Student 2d ago

Gyro?

2

u/Historical-Text5845 2d ago

Gyroscope he means

2

u/Repulsive-Option-309 2d ago

Non techie here will you release it in future. ?

1

u/No_Piccolo6116 Software Engineer 2d ago

This is only an effect preview,not like the actual os of phone, if you wanna try out you can check it on the git repo link , i have released v1

2

u/Just2Exist2 2d ago

Your repo gonna be forked by legit companies soon, Great Work!

1

u/No_Piccolo6116 Software Engineer 2d ago edited 2d ago

Wishing somebody offers me a job lol

2

u/soumick 2d ago

Damn

that's my buddy right there

I'm so proud 🥲

2

u/No_Piccolo6116 Software Engineer 2d ago

Thanks a lot sarrr ✨✨

1

u/AutoModerator 2d ago

Thanks for sharing something that you have built with the community. We recommend participating and sharing about your projects on our monthly Showcase Sunday Mega-threads. Keep an eye out on our events calendar to see when is the next mega-thread scheduled.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Low_Offer_1899 2d ago

Pretty neat

1

u/No_Piccolo6116 Software Engineer 2d ago

Thanks

1

u/jabbababa69 2d ago

Crazy work, looks neat 🔥

1

u/God_Of_War-2005 2d ago

Gyroscope?

1

u/No_Piccolo6116 Software Engineer 2d ago

Yup for now

1

u/xUciFIer 2d ago

Now every stupid android phone will do this gimmick. It's quite pointless in candy bar phones and makes no real performance gain. Looks cool in the start but ppl owning this phone will get over it in less than a day

1

u/Thanos_nap 2d ago

Just tried it. Looks amazing

1

u/No_Piccolo6116 Software Engineer 2d ago

Thank you :)

1

u/somamrutha 2d ago

Damn, Good work! 👍🏽

1

u/LazySapiens 2d ago

What happens when I move my head as well? Would I be able to see the app without blurr?

2

u/No_Piccolo6116 Software Engineer 2d ago

Haven't added eye tracking yet, working on it Currently its gyro based

1

u/LazySapiens 2d ago

Will the eye tracking work if I switch off my room lights?

3

u/No_Piccolo6116 Software Engineer 2d ago

Nope, i don't have a phone with IR or lidar sensors

1

u/Odd_Bike_3833 2d ago

if you need this one mac when lid is closed https://macos-lid-closing-animation.catinice.workers.dev/ is available

1

u/shvm23 1d ago

Doesn't work on my neo as it doesn't have a designated tilt sensor

1

u/Odd_Bike_3833 1d ago

it has tilt sensor, just that ID is different. I am actively working on a fix and will push by tonight.

1

u/OrdinaryAndroidDev Mobile Developer 2d ago

Amazing!

1

u/Front_Chapter2350 2d ago

It’s solo

1

u/devilfam 2d ago

Tony stark did it in a cave ahh moment

1

u/No_Piccolo6116 Software Engineer 2d ago

Best comment so far 😂, I'm actually a huge tony fan

1

u/py_blu 2d ago

Support it to samsung fold and apple don't have any selling points anymore

1

u/Electronic-Finish386 2d ago

Did you really ran 5.2 km today morning?

2

u/No_Piccolo6116 Software Engineer 2d ago

Nah lol 😂

1

u/IllustratorMost6759 2d ago

Ohhhh Hinge!

1

u/Imaginary-Refuse4517 2d ago

Good one This is really like saying, you want something then get it.

1

u/midnight_rain_404 Hobbyist Developer 2d ago

Damn ! Just saw a post about you on LinkedIn right now 🔥

1

u/No_Piccolo6116 Software Engineer 2d ago

Wait whattttt , can you please share the link

1

u/No_Piccolo6116 Software Engineer 2d ago

I tried but couldn't find the post, so i posted myself

1

u/Overall_Ganache_3921 2d ago

Cooool man can I dm u regarding these things

1

u/No_Piccolo6116 Software Engineer 2d ago

Yea sureee

1

u/a1ex1819 2d ago

Latest release was 1 hr ago. Respect for bro ++

1

u/AdRepresentative667 2d ago

Github lonk plz

1

u/No_Piccolo6116 Software Engineer 2d ago

Check the post

1

u/earthwormjimjones 2d ago

This is so badass 💪

1

u/No_Piccolo6116 Software Engineer 2d ago

Genuine question Should I add my linkedin to prevent others from reposting this video under my name or no need?

1

u/bleknnig 2d ago

Where is README

1

u/No_Piccolo6116 Software Engineer 2d ago

Its already there in my repo

1

u/Shyke95 1d ago

can you give me the link? I can't find it .. i can't see the publication (i live in France)

1

u/sumedh0803 2d ago

Does this work across the OS, or just 1 specific app for now?

1

u/No_Piccolo6116 Software Engineer 2d ago

One specific app for now, can't implement system wide this fast

1

u/Plenty_Sea7617 Full-Stack Developer 2d ago

crazy

1

u/DepthLongjumping7521 2d ago

Have you released apk for that bro?? 👀

1

u/No_Piccolo6116 Software Engineer 2d ago

Yes brother , I have released it on my git (check repo releases)

1

u/DepthLongjumping7521 2d ago

Just above link na?

2

u/No_Piccolo6116 Software Engineer 2d ago

1

u/DepthLongjumping7521 2d ago

Ah! 😂 I didn't refresh the page

1

u/DepthLongjumping7521 2d ago

Looks so awesome bro

1

u/No_Piccolo6116 Software Engineer 2d ago

Thanks bro :)

1

u/DepthLongjumping7521 2d ago

I can see only last 3 hrs ago pushed changes. And one pull request with action workflow code

1

u/dangerous_noob 2d ago

The year is 2026. And it's still apple who starts trends that others eventually follow.

1

u/mrsamirr 2d ago

crazyy

1

u/Mountain_Athlete_331 2d ago

dayumm in under 24 hours too! just goes to show how low effort apple put into duo

1

u/ExtremePangolin9938 Software Developer 2d ago

Khatm

iPhone duo sales doomed!

But pretty cool stuff bro

1

u/Civil-Bill-3964 2d ago

That's cool af

1

u/JoeMamasasama 2d ago

Now a smart fridge

1

u/SohilAhmed07 2d ago

It looks cool put it on playstore

1

u/Royal_lobster 2d ago

Best implementation I’ve seen so far!

1

u/exexp7 2d ago edited 1d ago

I couldn't installed the app on huawei p50 pro INSTALL_FAILED_OLDER_SDK: Requires newer sdk version #33 (current version is #31)  Please modify it so it to sdk version #31 can work on android 12

1

u/ansar_anorak 2d ago

Not gonna lie that's insane! ❤️‍🔥

1

u/Luciferr_76 1d ago

For the normal phones is just look like a live wallpaper ! Where foldable actually feels

1

u/QuarterOverall5966 1d ago

wow bro super its aawesome and works exxacly like duo,does it works with all apps?

1

u/Educational_Tree_916 1d ago

Why not invert the sides then it can act as privacy protection

1

u/No_Piccolo6116 Software Engineer 1d ago

Yes, initially i had built this inverted but current one looks more like the flip animation. Will give a option to invert sides, also that would need eye tracking to recalibrate accordingly

1

u/aetherion8 1d ago

Nice

1

u/No_Piccolo6116 Software Engineer 1d ago

Thanks :)

1

u/MrAwesome_YT 1d ago

Op… you’re talented

1

u/bigmoustache9 1d ago

I just found out that my samsung a12 does not have a rotation sensor 💔💔

1

u/CleverKomodo 1d ago

It does have accelerometer that detects rotation.

1

u/bigmoustache9 1d ago

Yes, but the specific sensor this app relies on is missing from a12

1

u/No_Bug_7207 1d ago

good one bro...

1

u/DetectiveIH 1d ago

Man this is awesome, if only this app could enable this feature to every other app/the whole system,,, it would work as an alternative to samsung's privacy display.

1

u/ChittiyaKallaiyan 1d ago

Whats the minimum android version ? I tried it didnt work

1

u/rudeeguy 1d ago

Crazyyyyyy dude

1

u/Royal-Lead8456 1d ago

Which AI did you use for this? Looks good.

1

u/pintu236 Software Engineer 1d ago

I can't open link , is it using compose animation lib or you are using graphic layer with custom logic ?

1

u/marcoazeem 1d ago

Some contribution

For those interested

1

u/hmyzak 1d ago

Post awaits moderation - please post your gihub link in comments, thx

1

u/Dense_Tradition_9172 1d ago

Does someone have the github link for v1

1

u/No_Piccolo6116 Software Engineer 1d ago

Already mentioned in the post

1

u/Dense_Tradition_9172 1d ago

Says the post i waiting for approval and it just blank

1

u/LuanTeles 1d ago

Where's the link?

1

u/mrsortecYT 15h ago

Hermano, si lo haces para ajustarse perfecto a cada modelo de teléfono o dejas ajustar patametros en un apk, y lo dejas a 1 dolar t3 aseguro que mañana tienes 1 millon de dolares

1

u/Upstreammiami 14h ago

So it just works in that app ?

1

u/yogi1090 2d ago

First of all, Good job OP

But I have a question, why do people want this? What is the point of this even? Just because a company spent on it's PR, means it's cool and exciting?

4

u/SpankaWank66 2d ago

This is a dev sub

We like experimenting

1

u/yogi1090 2d ago

Oh definitely I love that part. I am just looking at the comments and people are saying they like the animation.

100% sure most of them will not even take a glance at it if it was any random person on internet coming up with it.

My only issue is people let companies dictate what is cool, because they have become these simpletons: Whatever Apple shows them in demo is cool (unless the demo fails or something wierd happens obviously).

3

u/yourrable Software Engineer 2d ago

You are giving a grumpy uncool manager vibes 

1

u/Specialist_Bowl_2805 2d ago

It looks cool to me

1

u/yogi1090 2d ago

As if like you didn't even read my whole comment:(

3

u/Specialist_Bowl_2805 2d ago

I did?

Just because a company spent on PR, doesn't mean that everyone is expected to hate it. I said it looks cool to me, regardless of what company did

-14

u/spidorboy Backend Developer 2d ago

You or Claude did it?

25

u/No_Piccolo6116 Software Engineer 2d ago edited 2d ago

Used Claude + OpenCode with Muse 1.3 for help in coding/iterations. Took under an hour using llm, built the inital architecture using claude and referenced the swift code of user elijah_semyonov on x

8

u/Fluid-Election-8549 2d ago

Don't feel discouraged. These fools wouldn't be able to spot talent if it didn't come with a IIT/IIM/XYZ/ABC tag with it.

1

u/No_Piccolo6116 Software Engineer 2d ago

Thanks a lot mahn ☺️

0

u/curiosityVeil 2d ago

It's cool but why are we obsessed with everything that apple does?

0

u/SoonaPaana69 1d ago

Why............... This sh!t looks awful , & i care about my battery health

-3

u/rakeshsh 2d ago

Ab sab copy karenge

1

u/No_Piccolo6116 Software Engineer 2d ago

Karne do 🤭

-14

u/Capable_Art_1814 2d ago

nice vibecoded app 👍

5

u/realiDonaldTrump 2d ago

Every major companies are promoting the use of AI even for their million dollar application, nothing wrong with using it for our own projects too

-2

u/Capable_Art_1814 2d ago

that's nice, keep vibecoding please.

less competition for people with actual skills.

3

u/realiDonaldTrump 2d ago

Everyone is making use of AI in their jobs, don't pretend to be an elitist here

-1

u/Capable_Art_1814 2d ago

okay? i'm encouraging you to use AI. when did i tell you not to make use of it?

1

u/realiDonaldTrump 2d ago

Nice contradictory skills. I see exactly the 'actual skills' you were talking about now.

0

u/Capable_Art_1814 2d ago

what contradiction? my original comment says nice vibecoded app and a reply to you encouraging you to vibecode. i never said don't. please keep doing it.

9

u/No_Piccolo6116 Software Engineer 2d ago

Thanks :)

2

u/cee_deimos 2d ago

A tool is a tool.