Android Engineer
MobilePosted 8 weeks agofrom Trainline's own hiring page
- Work type
- RemoteIn the UK
- Experience
- Not stated
- Pay
- £55k–70k a year
- Posted
- 8 weeks ago
Skills it mentions
Add your skills to see which ones you have.
About the job
About us
At Trainline, our purpose is to empower greener travel choices, connecting people and places. Trainline enables millions of travellers to find and book the best value tickets across carriers, fares, and journey options through our highly rated mobile app, website, and B2B partner channels.
Great journeys start with Trainline 🚄
We’re Europe’s leading independent rail platform, helping millions of travellers find and book the best-value rail and coach journeys across our app, website and partner channels.
Our job is to make the green travel choice the best choice. By building a better train travel experience, we help more people choose rail - creating a positive impact for customers, our business and the planet.
We’re a team of more than 1,000 Trainliners from over 50 nationalities, working across London, Paris, Barcelona, Milan, Edinburgh and Madrid. Now is a brilliant time to join us and help shape the future of travel.
Introducing our Mobile team 👋
Our Mobile team are the people who build the travel companion in your pocket. They own the mobile app that allows you to travel smart and the buy-flow process that helps you get there. You will be an Android specialist in one of our many cross functional product teams. Our squads are paired up to company level 'Strategic Themes' which set the tone for the kind of product roadmap the squad will primarily be working on delivering. Key technologies include: Kotlin, Coroutines, Jetpack Compose, Dagger, SOLID principles with a huge focus on quality and clean code.
As an Engineer at Trainline, you will... 🚄
Be a part of a cross-functional team that will contribute to the design and implementation of our software in the product for Android users.
Appreciate the value of agile and of engineering practices, and solid, clean code.
Be actively involved in all aspects of the product lifecycle.
Work closely with the team and Product to help drive & deliver roadmaps.
Help to build and deliver software using Agile practices (SCRUM, two weeks iterations), continuous integration and pair programming.
Be delivering new functionalities and features, using the best tools and techniques for the job.
We'd love to hear from you if you... 🔍
Have good working experience with Kotlin
Are enthusiastic for a great user experience
Have a passion for continuous delivery
Have experience working with Git
Have solid grasp of Design Patterns, SOLID & Clean Code Principles, CI/CD...
Basic understanding of AI structured skills as Trainline has skills for creating components, maintaining quality, speeding up work
More information:
Enjoy fantastic perks like private healthcare & dental insurance, a generous work from abroad policy, 2-for-1 share purchase plans, an EV Scheme to further reduce carbon emissions, extra festive time off, and excellent family-friendly benefits.
We prioritise career growth with clear career paths, transparent pay bands, personal learning budgets, and regular learning days. Jump on board and supercharge your career from day one!
We're operating a hybrid model and ask that Trainliners work from the office a minimum of 60% of their time over a 12-week period. We also have a 28-day Work from Abroad policy.
Our values represent the things that matter most to us and what we live and breathe everyday, in everything we do:
💭 Think Big - We're building the future of rail
✔️ Own It - We focus on every customer, partner and journey
🤝 Travel Together - We're one team
♻️ Do Good - We make a positive impact
We know that having a diverse team makes us better and helps us succeed. And we mean all forms of diversity - gender, ethnicity, sexuality, disability, nationality and diversity of thought. That's why we're committed to creating inclusive places to work, where everyone belongs and differences are valued and celebrated.
Interested in finding out more about what it's like to work at Trainline? Why not check us out on LinkedIn, Instagram and Glassdoor!
Interested?Android Engineer at Trainline
Apply on company site (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on Android, CI/CD, Kotlin and 1 more
Interview questions for this job
For the skills the ad mentions: Android, CI/CD, Kotlin and Agile.
How can I close/hide the Android soft keyboard programmatically?Android
To help clarify this madness, I'd like to begin by apologizing on behalf of all Android users for Google's downright ridiculous treatment of the soft keyboard. The reason there are so many answers, each different, for the same simple question is that this API, like many others in Android, is horribly designed. I can think of no polite way to state it.
I want to hide the keyboard. I expect to provide Android with the following statement:
Keyboard.hide(). The end. Thank you very much. But Android has a problem. You must use theInputMethodManagerto hide the keyboard. OK, fine, this is Android's API to the keyboard. BUT! You are required to have aContextin order to get access to the IMM. Now we have a problem. I may want to hide the keyboard from a static or utility class that has no use or need for anyContext. or And FAR worse, the IMM requires that you specify whatView(or even worse, whatWindow) you want to hide the keyboard FROM.This is what makes hiding the keyboard so challenging. Dear Google: When I'm looking up the recipe for a cake, there is no
RecipeProvideron Earth that would refuse to provide me with the recipe unless I first answer WHO the cake will be eaten by AND where it will be eaten!!This sad story ends with the ugly truth: to hide the Android keyboard, you will be required to provide 2 forms of identification: a
Contextand either aViewor aWindow.I have created a static utility method that can do the job VERY solidly, provided you call it from an
Activity.public static void hideKeyboard(Activity activity) { InputMethodManager imm = (InputMethodManager) activity.getSystemService(Activity.INPUT_METHOD_SERVICE); //Find the currently focused view, so we can grab the correct window token from it. View view = activity.getCurrentFocus(); //If no view currently has focus, create a new one, just so we can grab a window token from it if (view == null) { view = new View(activity); } imm.hideSoftInputFromWindow(view.getWindowToken(), 0); }Be aware that this utility method ONLY works when called from an
Activity! The above method callsgetCurrentFocusof the targetActivityto fetch the proper window token.But suppose you want to hide the keyboard from an
EditTexthosted in aDialogFragment? You can't use the method above for that:hideKeyboard(getActivity()); //won't workThis won't work because you'll be passing a reference to the
Fragment's hostActivity, which will have no focused control while theFragmentis shown! Wow! So, for hiding the keyboard from fragments, I resort to the lower-level, more common, and uglier:public static void hideKeyboardFrom(Context context, View view) { InputMethodManager imm = (InputMethodManager) context.getSystemService(Activity.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(view.getWindowToken(), 0); }Below is some additional information gleaned from more time wasted chasing this solution:
About windowSoftInputMode
There's yet another point of contention to be aware of. By default, Android will automatically assign initial focus to the first
EditTextor focusable control in yourActivity. It naturally follows that the InputMethod (typically the soft keyboard) will respond to the focus event by showing itself. ThewindowSoftInputModeattribute inAndroidManifest.xml, when set tostateAlwaysHidden, instructs the keyboard to ignore this automatically-assigned initial focus.<activity android:name=".MyActivity" android:windowSoftInputMode="stateAlwaysHidden"/>Almost unbelievably, it appears to do nothing to prevent the keyboard from opening when you touch the control (unless
focusable="false"and/orfocusableInTouchMode="false"are assigned to the control). Apparently, the windowSoftInputMode setting applies only to automatic focus events, not to focus events triggered by touch events.Read the rest at the sourceFrom Stack Overflow: asked by Vidar Vestnes, answered by rmirabelle (CC BY-SA 4.0)
How to restart Jenkins manually?CI/CD
To restart Jenkins manually, you can use either of the following commands (by entering their URL in a browser):
(jenkins_url)/safeRestart- Allows all running jobs to complete. New jobs will remain in the queue to run after the restart is complete.(jenkins_url)/restart- Forces a restart without waiting for builds to complete.From Stack Overflow: asked by Kerry Jones, answered by Željko Filipin (CC BY-SA 4.0)
Explain: Kotlin collectionsKotlin
Collection(Kotlin)
Collectionusually contains a number of objects of the same type. Objects in a collection are calledelementsoritems. For example, all the students in a department form a collection that can be used to calculate their average age. The following collection types are relevant for Kotlin:-
List is an ordered collection with access to elements by indices – integer numbers that reflect their position. Elements can occur more than once in a list.
-
Set is a collection of unique elements. It reflects the mathematical abstraction of set: a group of objects without repetitions.
-
Map (or dictionary) is a set of key-value pairs. Keys are unique, and each of them maps to exactly one value. The values can be duplicates. Maps are useful for storing logical connections between objects.
Collection Types
The Kotlin Standard Library provides implementations for basic collection types: sets, lists, and maps. A pair of interfaces represent each collection type:
-
A read-only interface that provides operations for accessing collection elements.The read-only collection types are
covariant( collection types have the same subtyping relationship as the element types. If aRectangleclass inherits fromShape, you can use aList<Rectangle>anywhere theList<Shape>is required.) -
A mutable interface that extends the corresponding read-only interface with write operations: adding, removing, and updating its elements.
The mutable collections aren't covariant; otherwise, this would lead to runtime failures. If
MutableList<Rectangle>was a subtype ofMutableList<Shape>, you could insert otherShapeinheritors (for example,Circle) into it, thus violating itsRectangletype argument.Below is a diagram of the Kotlin collection interfaces
Links
https://kotlinlang.org/docs/reference/collections-overview.html
From Android Interview Questions (Apache 2.0)
-
Agile for the Solo DeveloperAgile
- By doing test-driven development
- By developing in small sprints
- By having a lot of contact with the customer
I remember reading a thesis about Cowboy Development, that is essentially Agile for solo developers. The thesis can be read here: Cowboy: An Agile Programming Methodology For a Solo Programmer (PDF)
From Software Engineering Stack Exchange: asked by kelleystar, answered by Federico klez Culloca (CC BY-SA 4.0)
What do you know about ViewCompositionStrategy?Android
ViewCompositionStrategyViewCompositionStrategydefines when the Composition should be disposed. The default,ViewCompositionStrategy.Default, disposes the Composition when the underlyingComposeViewdetaches from the window, unless it is part of a pooling container such as aRecyclerView. In a single-Activity Compose-only app, this default behavior is what you would want, however, if you are incrementally adding Compose in your codebase, this behavior may cause state loss in some scenarios.To change the
ViewCompositionStrategy, call thesetViewCompositionStrategy()method and provide a different strategy.There are four different options for
ViewCompositionStrategy:-
DisposeOnDetachedFromWindow. The Composition will be disposed when the underlyingComposeViewis detached from the window. Has since been superseded byDisposeOnDetachedFromWindowOrReleasedFromPool.Interop scenario:
ComposeViewwhether it’s the sole element in the View hierarchy, or in the context of a mixed View/Compose screen (not in Fragment).
-
DisposeOnDetachedFromWindowOrReleasedFromPool(Default). Similar toDisposeOnDetachedFromWindow, when the Composition is not in a pooling container, such as aRecyclerView. If it is in a pooling container, it will dispose when either the pooling container itself detaches from the window, or when the item is being discarded (i.e. when the pool is full).Interop scenario:
ComposeViewwhether it's the sole element in the View hierarchy, or in the context of a mixed View/Compose screen (not in Fragment);ComposeViewas an item in a pooling container such asRecyclerView.
-
DisposeOnLifecycleDestroyed. The Composition will be disposed when the providedLifecycleis destroyed.Interop scenario:
ComposeViewin a Fragment's View.
-
DisposeOnViewTreeLifecycleDestroyed. The Composition will be disposed when the
Lifecycleowned by theLifecycleOwnerreturned byViewTreeLifecycleOwner.getof the next window the View is attached to is destroyed.Interop scenario:
ComposeViewin a Fragment's View;ComposeViewin a View wherein the Lifecycle is not known yet.
Links
From Android Interview Questions (Apache 2.0)
-
What is the STAR method, and how do you use it to answer?Behavioural
Use the STAR method to prepare for interviews and to show your skills and experience on a CV or application form.
What STAR stands for
- Situation - the situation you had to deal with
- Task - the task you were given to do
- Action - the action you took
- Result - what happened as a result of your action and what you learned from the experience
When to use STAR
You can use the STAR method in your:
- CV
- cover letter
- application form - usually in a further information section
- interview
How to use STAR
You can use the STAR method to structure the examples you give to questions, especially in interviews.
A job description lists the skills and qualities the employer is looking for. You can use the STAR method to show how you meet these.
It can help to look at common interview questions when preparing.
When using STAR, remember to:
- use examples that work for you - these could be from work, home or volunteering
- keep examples short and to the point
- try to get your points across in a conversational way so as not to appear too rehearsed
- be prepared to answer follow-up questions about the examples you give
Example 1 - leadership skills
Tell me about a time when you have shown leadership skills.
Situation - in my previous digital marketing job, the company wanted to get more people to sign up to a newsletter which was not receiving a lot of attention.
Task - my job was to find a way of getting more people to sign up.
Action - I organised a meeting with other members of the marketing team to come up with creative ideas, and I led the social media campaign to generate interest in the revamped newsletter.
Result - over a period of 3 months, there was an 25% increase in sign-ups to the newsletter and the approach I took was used by the management team in other departments.
Example 2 - teamwork
Tell me about a time you have worked as part of a team?
Situation - when I was at school, I was part of the netball team. We needed to raise funds to buy more equipment for the team.
Task - my job was to work with the rest of the team to set up a bake sale to raise money.
Action - I took the lead and found out who wanted to help with the bake sale. I then held a meeting so we could work out dates and what tasks each person would do. I made sure that we were all clear what our role was and everyone who wanted to, got a chance to get involved.
Result - the bake sale was a success due to the team all pulling together. We raised £200 and were able to buy new equipment for the netball team.
Example 3 - problem solving
Give me an example of when you faced a problem at work. How did you handle it?
Read the rest at the sourceFrom National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Senior Mobile Engineer (iOS), Global PaymentsAirwallex, London, on-site3 days ago
- Engineer II - Athlete PerformanceHudl, London, on-site9 days ago
- Senior Android EngineerZopa, London, hybrid11 days ago
- Senior Android EngineerThe Economist Group, London, on-site4 weeks ago
More like this: Mobile developer jobs in London (23), Jobs in London (4,438) and Mobile developer jobs in the UK (42)


