How to develop a basic online ordering app? - android

I need a small clarity regarding developing an android app. Basically the idea is to build an app where the user can select the items(eg.books), after selecting, he will be taken to next activity where he can choose the number of items(say 2). After selecting he will be taken to another activity where he is given option to pay online. After the payment, the seller(that is me) should generate a bill containing the details provided by the user.
So my doubt is, how to know what items has he selected and the details(how do I receive that info) he had entered and how do I generate a bill back to him?
Please help me with this.
I just need an idea of how to implement it.
Thank you!

Create a server application with a database to store the details of customer purchase. Server application cold be a web application and you can connect your application with android app by using web services or http connection. For any temporary storage in app,use sqlite database for android.

Related

how to link a satisfaction app with results dashboard?

I developed an Android application for my company to measure the satisfaction of our clients in our stores. I developed the front end with all the screens and the design in Android studio, and I generate the APK for the approval of the directors board. Now I want to develop a dashboard to see results of the application.
Each store has one tablet and the app is already installed. I want to link the answers (Happy - Moderate - Not happy) to a dashboard to show the daily/monthly results.
Honestly I know a little in coding but I'm fast learner if you can show me tutos or books to read quickly .. I heard about something like Back end as service.. is it the right way to begin searching ?
I assume that you want connect your app with the dashboard database. So i am gonna share to you 2 approach.
Approach 1
You can share a database between dashboard and app. If you see the picture you can see that the dashboard presents the data in the screen and the android app Send the anwswer to the database.
Approach 2
If you already has the dashboard with a database, you also can create a table for daily/monthly results and create a service to push the data from the Android app.
For the approach number 1 you can take a look to Firebase Database, and then connect the Dashboard and App to the database.
For the approach number 2 you need to take a look how to create a web service and then update the database with the data received.
I hope it helps you.

make APK with specific information

my question about publish project to my customers but should be each customer get specific APK with own information inside the APP.
My APP not necessary connect to internet then will be predefined for each customer.
this mean Main Activity appears with information and image of each customer and rest of APP working same as all customer.
please help to found solution.
If you don't want to connect the application to the internet and still want to verify, you can always use mobile numbers.
But anything hardcoded at the client side is not safe, as the information for those users can be leaked.

Which storage option for preserving app data in android?

I do not want the data that is fed into the android app by the user to go away when the app is uninstalled or the device is lost/disposed. What I necessarily want is - data has to be tied to a user account rather than a device where the user can install the app from any other android device by logging into his account using his login credentials and see all the data that was entered in the past from an old/other device. Please suggest a storage option that would best fit for this scenario.
This is a very generic question and I think someone might vote to close it but I will still attempt a generic answer.
Essentially you want the data saved on some external data storage (not on device). So the obvious thing is a server. You will need to set up a machine and run a server on it which can communicate with your app. Also you will need to have unique id for each user (authentication?) which will link user-data with the user, so that if user uninstalls and reinstalls your app, the app can then download the user's data from the server to the mobile device on which the app is running.
For the server you can look at Amazon AWS, Google App Engine, Heroku etc. You can set up a minimal server at one of these places, maybe set a DB there (SQL/ NoSQL) and get a unique URL so that the app can ping the server (so static IP obviously). Then your app can send network requests to your server fetch data for a user and save it to the app whenever the user wants it (say on reinstall, device change, monthly etc).
Hope this helps!
Google is working on Google Cloud Save as a simple way to save data to the cloud on an Android app. There is no backend programming needed.
It's in closed beta now, so that's not super helpful right away, but it might open up to the public soon.

How to sync android database with web database?

Hi I want to sync android database with web database, my scenario is:
I want to make an android app dictionary. The dictionary words are added by web forms and the user android consume those words. In the Android application I have the historical of words that the user displayed and data of their studies, that should be synchronized online in case of change user phone or him have multiple devices.
My question is how to do that:
I need authentication or can get the User's google account to identify him?
How should I synchronize these two databases?
If I use Backup API i can get the same data in diferents devices?
I need authentication or can get the User's google account to identify him? That's your decision. You could even provide both methods. Some people don't want to share everything with Google, others don't care. If you want to create your own authenticator read the Udinic blog post about it.
How should I synchronize these two databases? You need a sync adapter in Android and a receiving service in your web application. In the Udinic blog there is also a tutorial about sync adapters. On server side you could create a REST service for example.
If I use Backup API i can get the same data in differents devices? The Backup API doesn't seem to be the right choice as it only restores data during the initial setup and I assume you want to synchronize the data all the time.

Feedback from user to developer without involving Google Play

I want users to send textual feedback to myself(the developer) directly(without involving Google Play).
Hence, I can get the suggestions to improve my app directly to myself, instead of users writing negative reviews on Google Play.
I do not own a website nor have access to any server.
I do not want to use ACTION_SEND, as that opens an email app.
I'm an android beginner and this is my first app.
Maybe that data can be stored in a database(on cloud, common to all users) that I can access at any time I want?
After researching, I think GCM is supposed to be used, but I no idea how to go about it.
Please tell me the easiest way to implement this.
Thank You.
That is not what exactly what GCM is for. GCM is primarily for sending data from the cloud to the the devices.
You are correct in thinking that one option is to store the data in a database in the cloud. You could use http://pythonanywhere.com free account and build a web app that provides you endpoints which will save and retrieve data to a SQLite db pretty easily (if you have knowledge of python and server side web concepts).
Another perhaps simpler option is to use a pre-existing cloud database solution http://www.parse.com is a cloud backend that also has a free-to-use option that you can use to store arbitrary data. It is pretty easy to get up and running if you follow their many nice Android tutorials.
One last option I will present is to use a Google Spreadsheet with a Form associated to it. Once you create a form if you know the right url and parameters you can send a post request to insert arbitrary data into your spreadsheet. I've created a library that simplifies the process of uploading. GoogleFormUploader. If you need help getting your form set up you can watch the relevant portion of my video tutorial covering this topic

Categories

Resources