Thanks for reading this query.
I have received a requirement of Developing Android Tab & Mobile App for a Restaurant, which should work Offline.
Customer should be able see the list of Menu and details of each Menu Items. It will have Images, Videos, Ingredients for each Menu.
My question is, I would like to develop a Web Services which will take care of Adding new Menu including Images, Videos & other Informations. Restaurant people should be able connect online and Synchronise the new Menu. ( If Android is re-started, synchronised data should not be lost.)
Is this possible to store the new data in the App/Mobile?
For such App which framework is appropriate?
I hope to receive positive inputs.
Thanks in advance.
For consuming web services you might look into Retrofit.
Menu can be saved in the database. It will not be lost after device is restarted.
Each time when user opens the app if the network is available you can perform a check if you have the latest version of menu in the database.
Related
I am creating one Google Fit compatible App. My objective is to store Google Fit data using HistoryApi, and provide kind of Back Up- Restore functionality to user. If user buys new Android devices then he/she should be able to BackUp(sync) old data using his/her account.
I need to use Custom Data Type, as Public Data Types doesn't meet my requirements.
Everything works perfect, I am able to insert data and read data using History Api.
But When I try to read data from Another Android device using same Google Account then data is not available to read there.
My problem seems similar to this Custom DataTypes not synching between devices
This statement from Google Fit Document is not clear to me.
Custom data types are not available to use in other apps. Only the app
that creates a custom fitness data type can use it
source : CustomDataType
Q-1) What does it really means ? If I have an app GoogleFitDemo installed on multiple Android devices, then is it possible to sync data between this same app between multiple Android devices ?
Q-2)Is it improper way to store and backup data using Google fit ?
Update:
Finally, I found that Custom Data Type can also be synced normally, same as other Public Data Types. I had the sync issue as mentioned by #Ifor. Sync functionality is still buggy. In some scenarios sync stops working, and sometimes synced data is inconsistent across multiple devices.
1). My understanding is that same app same account but different devices it should work. Having said that sync is notoriously slow (hours days...) and has been buggy so it may be hard to tell if you have it right or not.
2) There are better backup methods... But if the data fits in with the rest of the stuff Google Fit is about and is not too big then it's probably ok.
I am new to android and developing my first app. I have an application which shows various topics in a list view and the user can set an alarm/reminder on each list item and the application sends a notification at that time using alarm manager, broadcast receiver and notification manager.
I m able to develop this functionality. However now i want create an activity which shows all the reminders set by the user and give functionality of deleting or editing the existing reminders.
However i am not sure how to save these alarms and show them in list activity. I have searched a lot on internet and there are suggestions to use SQLite or shared preference.
If someone can guide the best way to do it or have any resource regarding it,please share it
Thanks
There are several approaches:
Shared Prefs - Not suitable, usually it's for storing very small amounts of data, usually strings/Boolean flags etc.
SQLite - Good option because the expected amount of data is relativly small.
Server side DB: Can be SQL (redundant - you don't have here 500MB of data), or it can be NO-SQL, this is better, because you can store Reminder object directly and it's logical here. Check the GAE No-SQL option.
I am Developing an Application, in that i have to show a list which applications are showing the history or maintain the previous data like Browsers and whatsapp, wechat... . is there any intent action or use full method in android API.
thank you for helping.
is there any intent action or use full method in android API
No. App developers do not have to tell other app developers whether their app is "showing the history" or can "maintain the previous data".
i have to show a list which applications are showing the history or maintain the previous data
Since almost all apps "maintain the previous data" (e.g., game high scores, blood pressure readings, to-do items), simply list all applications.
I develop the app which is provide some information to general user. it is not only showing info but also curating and recommending further detail info depending on users history;what the users clicked, searched and acted on the app. (like a google targeting AD).
For this, I have to accumulate user's activites on apps. (which button was clicked, when did they turn on the app and so on...)
For this, I have two ideas.
1. let the app to leave their log text file in local device then append lines in it whenever user act, and upload it when they turn off the app on server DB.[like a batch]
-OR-
2. let the app, update db everytime when user acts something on app by http-post.[like a realtime]
Which way is common tactics(or popular ways) on real field? or can you suggest another way?
thanks for reading.
I have to create an app which shows a list of categories with products attached to each category.
The owner of the app uses this to inform customers about his products so there will be updates to the products every week.
Now I'm struggling how to create this app because there are a lot of options to do this, but I want to do it right of course.
So I was thinking about doing the following.
1. Creating a simple webapplication where the owner can manage his products and add/edit/delete them the way he wishes.
When changes have been made he can push a button "publish" which creates an xml file.
2. When the app is started and there is an internet connection, the latest xml will be downloaded into the device and the app will list the categories, products from the xml.
THe xml will be stored so that there are data to read when no internet connection is available.
Is this a good workaround? Or would maybe creating a webservice be a better idea?
But then the user should always be connected to the internet.
Some good advise would be welcome :)
A internet connection should be available at any time, and if not it should not be the problem for you to cover.
But if you want to catch that case, you'll need (or could use) XML to persist the latest data to the device, in case your app has to start up without internet connection.
I would think about a RESTful WebService, since you can add features with ease once you have it runnuing (that could get tricky of course). Here is a tutorial you could use: http://www.vogella.com/articles/REST/article.html