How can I save login credentials in my C++ Android app?

0
17
Asked By SunnySky234 On

Hey everyone! I'm a university student from Japan and I'm working on a project to create a mobile-friendly web viewer for our university's website, which isn't very good on mobile devices. I'm facing a challenge with adding a feature where users can save their login ID and password, similar to how browsers like Chrome do it. Unfortunately, our university's website doesn't support it, so I'm having a tough time figuring out how to implement it from scratch. I'm using C++ with Visual Studio, along with Qt Creator and Android Studio. I attempted to get different HTML elements after logging in to create a pop-up asking users if they want to save their ID and password, but it hasn't been functioning properly. Any advice on how to save these credentials in the mobile application without using a database would be greatly appreciated! (Sorry if my English isn't perfect.)

1 Answer

Answered By TechWizard42 On

You might want to look into the local storage options available in Android. There are resources on the official Android documentation that cover how to store data in a way that might suit your needs. Here are a couple of links:
- https://developer.android.com/training/data-storage/app-specific
- https://developer.android.com/training/data-storage/shared-preferences
Also, it’s a good idea to encrypt the data instead of saving it as plain text to enhance security.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.