How to Create a Login Activity - Deepstash
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

Ultimate Guide to Reducing Churn

Discover 62 similar ideas in

It takes just

9 mins to read

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

0 reads

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

0 reads

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

CURATED BY

doglass

Bookseller

stash-superman-illustration

Explore the World’s

Best Ideas

200,000+ ideas on pretty much any topic. Created by the smartest people around & well-organized so you can explore at will.

An Idea for Everything

Explore the biggest library of insights. And we've infused it with powerful filtering tools so you can easily find what you need.

Knowledge Library

Powerful Saving & Organizational Tools

Save ideas for later reading, for personalized stashes, or for remembering it later.

# Personal Growth

Take Your Ideas

Anywhere

Organize your ideas & listen on the go. And with Pro, there are no limits.

Listen on the go

Just press play and we take care of the words.

Never worry about spotty connections

No Internet access? No problem. Within the mobile app, all your ideas are available, even when offline.

Get Organized with Stashes

Ideas for your next work project? Quotes that inspire you? Put them in the right place so you never lose them.

Join

2 Million Stashers

4.8

5,740 Reviews

App Store

4.7

72,690 Reviews

Google Play

samz905

Don’t look further if you love learning new things. A refreshing concept that provides quick ideas for busy thought leaders.

Shankul Varada

Best app ever! You heard it right. This app has helped me get back on my quest to get things done while equipping myself with knowledge everyday.

Sean Green

Great interesting short snippets of informative articles. Highly recommended to anyone who loves information and lacks patience.

Ashley Anthony

This app is LOADED with RELEVANT, HELPFUL, AND EDUCATIONAL material. It is creatively intellectual, yet minimal enough to not overstimulate and create a learning block. I am exceptionally impressed with this app!

Jamyson Haug

Great for quick bits of information and interesting ideas around whatever topics you are interested in. Visually, it looks great as well.

Laetitia Berton

I have only been using it for a few days now, but I have found answers to questions I had never consciously formulated, or to problems I face everyday at work or at home. I wish I had found this earlier, highly recommended!

Giovanna Scalzone

Brilliant. It feels fresh and encouraging. So many interesting pieces of information that are just enough to absorb and apply. So happy I found this.

Ghazala Begum

Even five minutes a day will improve your thinking. I've come across new ideas and learnt to improve existing ways to become more motivated, confident and happier.

Read & Learn

20x Faster

without
deepstash

with
deepstash

with

deepstash

Access to 200,000+ ideas

Access to the mobile app

Unlimited idea saving & library

Unlimited history

Unlimited listening to ideas

Downloading & offline access

Personalized recommendations

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