Long story short, you no longer have to mail in a master CD to a CD manufacturer. What Is DDP?ĭisc Description Protocol (DDP) is a format for specifying the content of CDs and DVDs.įor example, if you’re creating a master CD in Toast Titanium, you can add CD-Text for the album and individual tracks, including ISRC codes.ĭDP takes all of that information, including the mastered WAV files, and compiles it into a format that allows a CD manufacturer to use for replication/duplication.
I’ve used DDP files from other mastering engineers before, so I was at least familiar with the format, but now it was time for me to invest in some solid DDP creating software for my clients. Query query = mMeteor.getDatabase().I recently finished mastering an album for a client in Australia and quickly realized that mailing a master CD wasn’t a timely option. Query query = mMeteor.getDatabase().getCollection(collectionName).whereGreaterThanOrEqual(fieldName, fieldValue) // String fieldName = "address" Query query = mMeteor.getDatabase().getCollection(collectionName).whereGreaterThan(fieldName, fieldValue) // String fieldName = "age" Query query = mMeteor.getDatabase().getCollection(collectionName).whereLessThanOrEqual(fieldName, fieldValue) // String fieldName = "revenue" Query query = mMeteor.getDatabase().getCollection(collectionName).whereLessThan(fieldName, fieldValue) // String fieldName = "numChildren" Query query = mMeteor.getDatabase().getCollection(collectionName).whereNotEqual(fieldName, fieldValue) // String fieldName = "accountBalance" Query query = mMeteor.getDatabase().getCollection(collectionName).whereEqual(fieldName, fieldValue) // String fieldName = "active" Getting a collection from the database by name // String collectionName = "m圜ollection" Ĭollection collection = mMeteor.getDatabase().getCollection(collectionName) Retrieving the names of all collections from the database String collectionNames = mMeteor.getDatabase().getCollectionNames() Fetching the number of collections from the database int numCollections = mMeteor.getDatabase().count() Getting a document from a collection by ID // String documentId = "wjQvNQ6sGjzLMDyiJ" ĭocument document = mMeteor.getDatabase().getCollection(collectionName).getDocument(documentId) Retrieving the IDs of all documents from a collection String documentIds = mMeteor.getDatabase().getCollection(collectionName).getDocumentIds() Fetching the number of documents from a collection int numDocuments = mMeteor.getDatabase().getCollection(collectionName).count() Querying a collection for documentsĪny of the following method calls can be chained and combined in any way to select documents via complex queries.
This method call and most of the following method calls can be chained for simplicity. Accessing the database Database database = mMeteor.getDatabase() In these callbacks, you can thus ignore the parameters containing JSON data and instead get the data from your database. So whenever you receive data notifications via onDataAdded, onDataChanged or onDataRemoved, that data has already been merged into the database and can be retrieved from there.
So the code for the constructor becomes: mMeteor = new Meteor(this, "ws:///websocket", new InMemoryDatabase()) Īfter that change, all data received from the server will automatically be parsed, updated and managed for you in the built-in database. Right now, the only subclass provided as a built-in database is InMemoryDatabase. Pass an instance of Database to the constructor. Using databases to manage data Enabling a database Manually attempt to re-connect (if necessary) mMeteor.reconnect()
By using this library, however, you can write native Android apps in Java while still using Meteor as your real-time backend.ĭeclare the Gradle repository in your root adle allprojects ) Ĭhecking whether the client is connected mMeteor.isConnected().With Meteor's built-in features, your Android app will be written in HTML, CSS and JavaScript, wrapped in a WebView.
Doesn't Meteor provide built-in features for Android app development already?.With "Android-DDP", you can use a Meteor server as your backend for real-time applications on Android.Are you primarily an Android developer (who has never heard of Meteor)?.Using this library, you can build native Android apps that can talk to your Meteor server and web application.Have you built a web application with Meteor?.This library implements the Distributed Data Protocol (DDP) from Meteor for clients on Android.Ĭonnect your native Android apps, written in Java, to apps built with the Meteor framework and build real-time features.