I'm learning how to use SQLite Databses, and I have a gist of how to use them with simple data, for example I know I can store names, and emails of data type TEXT into a table. Now, I would like to apply that same thing to a more complex object, storing my Alarm object. My alarm looks like
public class Alarm {
public int st;
public String name;
public String time;
public String date;
public long mili; ///calender time
public Intent intent;
public PendingIntent pendingIntent;
public AlarmManager manager;
public Alarm(String name, String time, String date, int st, long mili, Intent intent, PendingIntent pendingIntent, AlarmManager manager){
this.name = name;
this.time = time;
this.date = date;
this.st = st;
this.mili = mili;
this.intent = intent;
this.pendingIntent = pendingIntent;
this.manager = manager;
}
}
I know I can use data types such as INTEGER and TEXT to store my strings and integers, but is there a way to store things such as intents, pending intents, and managers. I have a list of these objects, that I use in different classes so I need to be able to access each alarm objects intent, pending intent, and manager, so that I can reset and cancel alarms, therefore I find it easy to store that data in the object. However I'm not sure of this can actually be saved in an SQL table. Would anyone share some tips with me?