I'm creating a login that if the user log's in, his/her data will be passed to another activity. BTW I'm using SQLite as my database.
Here is my class:
public class person
{
[PrimaryKey, AutoIncrement]
public int id { get; set; }
[MaxLength(25)]
public string fname { get; set; }
[MaxLength(15)]
public string lname { get; set; }
[MaxLength(500)]
public byte[] image { get; set; }
[MaxLength(15)]
public string email { get; set; }
[MaxLength(15)]
public string num { get; set; }
[MaxLength(15)]
public string uname { get; set; }
[MaxLength(15)]
public string pword { get; set; }
}
I want the ID to be passed to activity2, so that the activity2 will recognized who's the person who log's in. Then the activity2 will display all of the data of that user who own's the ID.
I try using put extra, but the value I used is static(fixed data). what i want to pass is the value from my SQLite Database
Can you give me some example, links or source code?
Thanks in advance