Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1019 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 1019 Bytes

Tweetdiary android: A Nimbusbase android sqlite sync demo

This demo for NimbusBase shows how we sync structure data by replicating whatever is in the local sqlite database and then storing it on top of Google Drive. Please view or run.

		// four variables for GDriveModel: 
		//	1, the  Activity to run the sync process;
		//  2, the  App name;
		//  3, the  sqlite database  file name;
		//  4, the  tables need to  sync, if  set null will sync  all tables;
		gdriveModel = new GDriveModel(SwipeActivity.this.getActivity(), "diary_app", "D", new String[] { "Entry" });

		// google  authorize;
		gdriveModel.authorize();

		//sync data per  3s
		gdriveModel.syncThread(3000);