how to get all saved passwords on the webview on a listview - webview

As we know, Chrome stores all the saved password on saved passwords sections, and we can save a password using
webview1.getSettings().setSavePassword(true);
How to show all on a list view?
webview.getSettings().setSavePassword(true);
//it only saves password

Related

how to validate the json username and password and to display the particular info

I have one login screen, where user want to login with the user id and password. When particular logged in - the particular user data alone should be display in two labels.
jsonObject = #[#{#"Id1":#"mad”,#“Password”:#“123”,
#“Earning”:#“300”,#“Extra”:”1000”,},
#{#"Id2":#"normal”,#“password”:”111”,
#“Earning”:#“9”,#“Extra”:#“300"}];
How can i validate that username and password to display the two "earning " and " extra" data alone in label in next screen.
Like below image:
Now how can i validate that username to allow user to see their particular data in that label in next view
Like wise when particular user logged in, their data alone should display.BUt while do for check username id and password. How can i validated using if statement.
Please explain me some code.

IOS data saving

I would like to create an app where a user can put in some text and save this.
Then i would like to be able that a other user can download this text by putting in the first users email address and his password. say like john#appleseed.com password: 1234.
So if john writes into the iOS app Hi.
And I would "download" this data using the email and pass.
What is a good way to achieve this?
I've read posts about using an API.
But what is the best way to save data to a data base.
I need to save the
Email address of the user
Corrosponding Password (randomly generated numbers)
List items
the database should look something like this.
[Primary Key: Email adress] [ Password] [Text]
john#appleseed.com 1234 "- Hi
- Welcome
- To
- My
- App"
me#icloud.com 3123 "- This
- App
- Works "
you#me.com 546758 "Text
Lorum
Ipsum
doret
samet"
Hope it is clear for you guys!
Use a .php or .aspx web service (preferrably JSON) which gives you a flag to check if the username or password exist OR is valid and then download the user info accordingly. Make a json web service and parse it in your iOS app and download the user info from the web service.
Create a database using sqlite or core data with the field names as you required like email-id,password etc. If first user enters some data it should be saved in db. when second user uses the same user id and password he will get the same data what was stored in db.

Confirm multiply data before save

In my app I sometimes need to import some CSV data and I wanna get a view that is shown before save imported data to provide user possibility to check that data is correct. How to achieve it in Rails?
in the first form field, have a hidden field name "confirm" with value 0.
In the rails controller, if the confirm is 0 you just populate with the csv data, show the form again with confirm = 1
if the confirm is 1, then it means the csv was seen by the user, so you can save it.
bonus points-
Instead of showing the csv, make a textfield out of each csv cell- the user will be able to update the fields, not just check if the data is correct.

After saving to the database, are there additional steps to make values appear in a form

I'm using Ruby on Rails. I have a form and when the user changes the value and hits save, the page reloads and the values are saved to the database but the fields are blank. Is there an additional step to take to make sure that the values are still seen in their fields or is there just a bug in the way I'm saving to the database?

ios - how to store mail contacts in an array

in my ios app when the user clicks a button it opens email part by which the user can send a common mail to all.
Now my question is whenever the user types an email address in the to: column i want the addresses to be stored automatically to an Array, so that the next time when the user clicks the to column i will be listing out the emails he have used so far.
I want to store the text typed there to an array.
how to do this, please help me friends
you can add the emails in NSMutableArray and save it in NSUserDefaults for future, each time user enter email you have to create new temp NSMutableArray which init with NSUserDefaults's array then append last entry to it after that and save it again in NSUserDefault by replacing last value.

Resources