Android database and connection to the cloud - java

I'm developing and Android app which provides content to the user.
I want to store the information of the data in a database on the cloud and locally, and to store the actual content also on the cloud, and access it via the information on the database.
I also want to be able to show the user content based on a date, and to check for that frequently.
I would also like to be able to update the content over the web, and show the user news and updates on the fly.
I'm new to this, and would like to understand this. I read all sorts of terms, but not sure which I need for what. GCM, Content Provider, SyncAdapter, database, AsyncTask, etc..
If someone could please give me an overview of how to do what I want, with an explanation, I would be very grateful.
Thanks!

I want to store the information of the data in a database on the cloud
and locally, and to store the actual content also on the cloud, and
access it via the information on the database.
About this requirement, I recommend you can use Azure Offline Data Sync feature to sync up your local and cloud data. Please refer to this documents:
https://azure.microsoft.com/en-us/documentation/articles/app-service-mobile-xamarin-android-get-started-offline-data/
I would also like to be able to update the content over the web, and
show the user news and updates on the fly.
Notification Hub Service is for pushing the message to client and customer, if you want to use the similar feature, please refer to this documents :
https://azure.microsoft.com/en-us/documentation/articles/notification-hubs-push-notification-overview/#integration-with-app-service-mobile-apps

Related

Access Data from Azure Application Inside

I have created an Azure Function that has the purpose of generating data under certain conditions. During the day, the function is triggered several times and if the condition is met, the data is saved in a database and a project team is informed.
Since it can sometimes happen that no data is generated in a week, the project team should receive a weekly report about the number of Azure Function executions and whether they were successful or not. I have seen in the Azure Portal that the Application Inside stores exactly this data, but I am not yet clear how I can access this data.
What options do I have in Java to retrieve and process the telemetry data?
What options do I have in Java to retrieve and process the telemetry data?
To retrieve the telemetry data and store it for longer time or to process the telemetry data in some specialized way, Continuous Export is ideal for this purpose.
Alternative ways to retrieve or access/process the telemetry data:
In the Log explorer, export button lets you transfer tables and charts to an Excel spreadsheet.
Log Analytics Queries also exports the results of telemetry data.
Power BI used to explore and export your data.
To access your telemetry programmatically, you can use the Data access REST API.
Through PowerShell, you can also access setup continuous export.
Instead of Log Analytics API, you can access it programmatically for retrieve and storing the Telemetry data because the Query API has some query limits.
To access programmatically, the Azure Monitor Query SDK contains idiomatic client libraries for JavaScript, .NET, Python, and Java.
Refer to the Azure Monitor Query Client Library for Java Documentation by Microsoft provides sample code examples to view how to access/process the Telemetry logs programmatically.

Simplest way to store and return data on google app engine

I have created an app to enable users to manually log data for their use of phytosanitary products in their fields.
I would like to store all of this data one the app engine.
I thought of storing it as entities on the google app datastore but then is there a way to gather all that data afterwards and make it downloadable as an XML file for example?
The only data that will be stored each time will be the following:
I am using Vaadin to handle the whole application
AFAIK, you will need to write code to read data you want from Datastore and convert it to the form you need - XML or something else. Then you can trigger above functionality at a specific URL (click of a button) or as a scheduled job that emails you the XML or stores it in a Cloud storage bucket.

Parse.com: Deploy app with local DB

I use the Parse.com Cloud service in my Android app to sync data between devices.
I use the app mainly offline and use the local DB
Parse.enableLocalDatastore(getApplicationContext());
I want to deploy my app with a local DB that already contains a few thousand records. How can I do that? I don't want to sync the data on every device on first use.
Local datastore is not really a "local db", although you get some of the benefits a local db would give you. There is unfortunately no way to pre-populate the local datastore like you're after. The only way I can think of is to use another technology (like sqlite/core data etc) to store the pre-populated data. The problem is that to pin the data to the local datastore, you would need to get the PFObjects from Parse first anyway...
The Parse local datastore is not created to work as an offline database per se; only to offer an "offline mode" for your online data.

sending data from android to web without being able to look it up

I am making an android app for a survey. The answers are saved in a file, and that file should be sent to the web, so we can analyse the data. I am searching for a way to put the data on the web, in such a way that only I can access it.
I've tried google doc's, but it seems to me that if too many people upload their data at the same time, some data might get overwritten.
I've also tried dropbox, but the problem is the authentication step. Since every person would have emailadres and password, everyone would have access to all data, which should not be possible (unless there is a way to authenticate in the code, but I haven't found anything on that).
Does anyone have an idea what I can do? Thank you!
You shouldn't use a Google Document directly. With a lot of traffic you'll definitely get overwritten data. You're also vulnerable to someone messing with the data since you'll need the document to be public so people can edit it.
What you want to do is create a Google Form and then have your application POST the data to that. Google will handle making sure that no data is overwritten for you.

How to access online mysql database in android?

I have created an online database about the restaurants and I need to access this database through my android application, so that I can display the data to the users after filtering. My application does not need to update the database, but my problem is how to connect to my online mysql database and provide it to the users? I have looked on many suggestions on this site as well as on others, and I just found I have to use JSON parser while accessing but do not how to do it.
The best solution is provide a public API, managed for example with PHP, which delivers your database data filtered and displayed as your Android application needs.
This link might help you . http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/
Just get an understanding of JSON parsers and how it can be used in android for retrieving data from database on server... you can write webservices in php..
You need to provide a server side solution that the Android application can speak to. PHP scripts are a good way to go, that can directly interface with the MySQL database, and return results to the device.
You can then be creative with the PHP script, by sorting the results etc, and providing a more comprehensive solution by taking away some of the processing from the Android device, and doing it server side where battery life isn't as much of a problem.
You simply need to implement web service calls on the Android device, simple GET/POST requests over HTTP suffice depending on what you intend to do. Have a look into REST APIs for guidelines on how to implement properly.
You can easily add a PHP script to the same server as the MySQL database for this

Categories

Resources