How to implement shopping cart in android - android

I am new in android. My app is basically is to scan the QR code to obtain product information such as the image, name, description and price and choose to add to cart and continue to do so(scan the qrcode) till user choose to end shopping and click to proceed to cart and will be shown the total prices of the items selected. User then can click either to edit the cart or proceed to the checkout. I have been searching tutorial but cannot find a complete one. Can anyone guide me through proper code how could i do this?

I do not think you will ever find a complete tutorial for the your task. However, a quick googling led me to zxing which can be used for processing barcode. I didnt go through the examples provided there, but I believe they are easy to understand.
Edit:
This is an exact duplicate of another question in SO. see
Now if that answer seems not enough for you, I think you are new to Android. Just google Android and you will find plenty of tutorials available. Start with Layouts, Activities, Intents, Bundles, Event Handling. To build what you want you would need a blend of many such small small things. Good luck

You will most probably wont find one single complete A to Z tutorial satisfying ALL of your app requirements .
But you can search for code/tutorial implementing parts of your app , like reading QR code , proceeding to next item etc . You will have to figure yourself out how it all comes together.
QR reader app on Google Play store

Related

Allowing a user to update the contents of an app

I just want to start by saying I am doing this for a friend as a general information app and I am receiving no money for doing this. He would like an app to help inform his clients of different treatments as well as adding in daily memos etc. I can create an app no problem and have only created apps for general use and for my University assignments (I will also add that this is not a university project but just more to improve my own abilities). I am hoping someone may have a suggestion for how I can allow my friend to update the apps information easily. For example, I will be creating a general app that will display information (contact information, advice, guidelines, exercises etc) most of which will need updated every so often. He has also said he would like to add a daily update (almost like a daily tip or piece of advice). What I would really like help with, is for guidance on how I can have my friend maintain the app after I have done the project. I want an easy way for him to add/remove/edit memos or information. I haven't come across anything like this so I don't know if it is possible or if it is possible but complex etc. I hope I have explained the scenario well enough. Only looking guidelines of things I can research and do on my own, I just don't know where to start looking.

Android: multi select list preferences with autocomplete?

I need to let the user in my app to choose several cities.
so the users should be able to choose "All Cities" or "multiple cities", every tap on city name will be shown above the list, and every click on the list above, will bring it back down, I designed a sketch so you will be able to understand what i need.
the closest example i have found is android chips edit text:
https://github.com/klinker41/android-chips
but it works on contacts and actually its too much code for a pretty simple select list.
any idea?
Thank you!
Eran.
Finally, I have found exactly what I was looking for, you can find it here:
https://github.com/pratikbutani/MultiSelectSpinner
Thank anyway.
Eran.
There are many library in Github. You can find it here:
Multi Choice - Github Links
https://github.com/wongk/MultiSelectSpinner
https://github.com/GunaseelanArumaikkannu/MultiSpinner
https://github.com/pratikbutani/MultiSelectSpinner

Android - find image link API

Hey !
I have an Android app where the user can search on a specific subject, let's take the word "Cats" for example. When the user submits the search I want to find an image similar or on the subjects the searched for. A search engine for images more or less. I want something "easy" to deal with, so I thought about integrating the Google Search API into my app. Let the user search Google, and take the first image that comes up.
However, I haven't found any example and I just need a push in the right direction. If you could give me an example API for my needs, that'd be great.
Apparently the Google Search API never was fully deprecated it's still up and running. It provides JSON data and is easily parsed with Android.
If anyone else needs an image API here's a test search: https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=searchquery&rsz=8&start=1&imgsz=small|medium
And the JSON reference: https://developers.google.com/image-search/v1/jsondevguide

Finding people with similar parameter around you android app

So I'm currently working on an android app for a class project which essentially matches users who use the app to other users in vicinity that have similar interest inside the app as well. So the basic idea is, PersonA open up my app and there is a dropdown box that they can select say 1/10 interests options in the list. Then PersonB, who has already opened the app as well and specified their specific interest from the dropdown before can click a button that says "find a person near me within 100feet with my interest that I just selected". If the PersonA is within 100feet of PersonB with them both matching the interest selected, then PersonA is returned to the screen with where they are. How would you go about doing this solution in Android? Is there a library/class or some api that does this? I'm fairly new to android, so I'm not exactly sure how to approach this.
I've been looking through many forums and even stackoverflow questions, but can't seem to find exactly the way to implement this or even start to go about creating this solution. Any help is appreciated! Thanks :)

Help needed with android app code

I'm looking to make a new type app that when the user open it for the first time it will open up a pop-up menu that contains multiple check boxes that the user can select from and will then save their selections for later use. After the user selects their choices I would like to have a monthly based calender on this same screen that the user can select a date from and based on their selection this will then take them to a separate screen showing the news for that day.
I am fairly new to android app development and this will be my first go at it. I have read several books and websites but cannot seem to find the help I need to produce the code for the above desired functions. Any and all help with this will be much appreciated.
Read these tutorials and you'll be able to create just what you need
Tutorials
Your question is very vague in fact, so I will only suggest a few points to start reading from, that I believe are important.
I think that you will answer any other questions you may have by reading through the developer documents for Android and studying the supplied examples. But don't hesitate to ask another, more specific question if you run into trouble.
tl;dr
Activities (must read!)
Dialogs (you will need these)
Data Storage (also important for the app you describe)
If you're still lost, just get some sample code from the repository and toy with it.
Good luck!

Categories

Resources