r/starterpacks • • Nov 13 '17

The android developer starter pack

https://imgur.com/gallery/OFsMt
778 Upvotes

17 comments sorted by

97

u/ndcapital Nov 13 '17

If I remember correctly, rotating the device closes the current activity (think windows form) and forces it back through the activity lifecycle. Depending on how crappy your application is structured, this would usually make everything crash. Locking it to portrait was the quickest way to get my weekend back.

21

u/sign_on_the_window Nov 13 '17

Getting Nam flashbacks writing procedures to reset user input and states when someone rotates the phone. Unfortunately, guy wanted people to use it in either portrait or landscape mode. :(

It's even worse if you want to create tabs where users can flip back and forth. I ended up converting a lot activities into fragments.

7

u/LoL-Front Nov 13 '17

Yes, unfortunately it means that you have to design your application to handle restoring the state that is lost in this recreation that happens, which isn't the easiest thing to do for complex activities.

27

u/[deleted] Nov 13 '17

Mobile app development was what caused my career change.

Lifted it a few inches from the desk then dropped my wireless mouse and went "Fuckit. I'm done."

0

u/[deleted] Nov 13 '17

[deleted]

36

u/xcxb Nov 13 '17

Drugs

9

u/[deleted] Nov 13 '17

I'm not interesting enough to have a drug habit.

Mild alcoholism, yes.

1

u/Nastapoka Nov 14 '17

hey are u randolf monray

9

u/[deleted] Nov 13 '17

He owns a small candle shop in Cambodia

8

u/[deleted] Nov 13 '17

Mix of devops and scrum master.

Not non tech, but not an actual software developer.

18

u/[deleted] Nov 13 '17

Forcing "Portrait Mode Only" in Xamarin (Cross-Plattform Framework) was one of the worst experiences I ever had.

4

u/[deleted] Nov 13 '17

Why tho? My most painful Xamarin experience was finding out why my app was not compiling even though the code is fine. I migrated from one Parallels VM to another. Turns out i needed to set the Android SDK path... My most recent horror experience was working out a bug which caused bluetooth printers to print way slower than usual. Some unrelated login code was responsible.

My most painful iOS experience was working out a bug with bluetooth printer... It was painful.

2

u/[deleted] Nov 13 '17

You couldn't do it the way everyone explained it because of some background compiling magic. Luckily some guy who was very familiar with Xamarin was able to tell me another way to force it.

However that was almost 1 1/2 years ago so they might have fixed it by now.

8

u/[deleted] Nov 14 '17

Please fix and reimport gradle wrapper

7

u/[deleted] Nov 13 '17

You forgot the well-worn dent in the wall about the size of my head.

7

u/I_EAT_GUSHERS Nov 14 '17

You forgot the desire to learn Kotlin. You plan on learning it, but you're putting it off.

4

u/Leonnee Nov 13 '17

This application stopped working

1

u/HyperionCantos Nov 16 '17

hahaha the photo of Jake Wharton