it is posibble to block meetings via Android calendar
-
11-12-2019 - |
Question
How Can I block meetings via Android calendar and save the result in the database? I am beginner and can anyone share their knowledge please ?
Solution
For storing data in the database please go through this http://www.vogella.com/articles/AndroidSQLite/article.html. For getting date and time you can achieve in the following manner.
Calendar calender = Calendar.getInstance();
SimpleDateFormat dateFoamat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String dateandTime = dateFoamat.format(calender.getTime());
Toast.makeText(this, dateandTime , Toast.LENGTH_SHORT).show();
dateandTime String will show you current date and time.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow