How to Create a Login Activity - Deepstash
How to Create a Login Activity

How to Create a Login Activity

Curated from: medium.com

Ideas, facts & insights covering these topics:

6 ideas

·

5 reads

1

Explore the World's Best Ideas

Join today and uncover 100+ curated journeys from 50+ topics. Unlock access to our mobile app with extensive features.

Main Activity

When we start the application, we will want to greet the user with a login page. On this screen, user will be able to perform two actions: logging in and signing up. This is how I designed my login page:

2

3 reads

Sign-up Activity

Many users ask, “how do we save the user information locally so that the information stays even after the App has been closed?” the answer is file. Using file component, we can save the data locally, and retrieve it next time the App starts. Start by adding a new file component in Signupactivity.Java:.

2

0 reads

Back to Main Activity

Here is the logic for the Login_Button clicked event:. If the user enters the Username/Password, validate the length. If they’re both greater than 0, we want to retrieve the information from the data we previously saved. If valid, log the user in, otherwise show an error message.

2

0 reads

Logged-in Activity

Last but not least, this is the screen that shows up when the login is complete. Pretty simple right? Even though I didn’t apply this concept, you could possibly pass the username through the Intent if you’d like and welcome the user with the message “Welcome username!”. Just a thought :-) 

2

1 read

Login Blues

Most applications today have an authorization system in forms of Facebook login, Google login, plain old email login, and more. In fact, Sketchware uses Google Login in the application as well. Having an authorization system is a great way to keep users organized. Today, we’ll learn how to create a basic username/password login system on Sketchware.

2

1 read

Sign-up Activity

Clicking on the Sign-up button leads us to the SignupActivity, which looks something like this. This page has one purpose — signing up the user with the provided information.

2

0 reads

IDEAS CURATED BY

doglass

Bookseller

Douglas Glass's ideas are part of this journey:

Ultimate Guide to Reducing Churn

Learn more about marketingandsales with this collection

How to analyze churn data and make data-driven decisions

The importance of customer feedback

How to improve customer experience

Related collections

Similar ideas

Read & Learn

20x Faster

without
deepstash

with
deepstash

with

deepstash

Personalized microlearning

100+ Learning Journeys

Access to 200,000+ ideas

Access to the mobile app

Unlimited idea saving

Unlimited history

Unlimited listening to ideas

Downloading & offline access

Supercharge your mind with one idea per day

Enter your email and spend 1 minute every day to learn something new.

Email

I agree to receive email updates