How to send multiple parameters from android app to search in database? - java

I am creating simple search application. I have search parameters in ArrayList that I want to use to make search in database. Every single time size of ArrayList would be different. I already have most of my application completed and this part made me completely stop.
I use Volley and my PHP for getting JSON from database and I read that I could also send parameters by Volley, but don't think it would work for me.
Friend told me that only way to make this is to use services (I still trying to understand what they are). I tried researching Django, Spring, but I cant understand what I can use them for, I'm so confused about this part.
I want to ask for your guidance for my specific problem, because I don't even know what I should be paying my attention searching in Google as there not so much tutorials for Spting framework or Django or other methods.

Related

How to take a webpage's content to create a native app for it? e.i not just a webview of the website

I want to create an app for a website that I don't own, like youtube or reddit. Every time I search for help, all I keep getting is how to create a webview. I've done that but that's not what I want. I want to take the website's content and create an app with it, like create my own buttons and such. I want to convert a website into an app.
I was thinking of somehow loading the website in the background and creating activities/buttons/intents that basically do what the webpage does but I don't know how to go about that or if there's a better way.
Thank you in advance.
Please let me know if clarification is needed.
Alright i got -3 votes for some reason and it has been 12 hours since i posted this question, i'm guessing the question has been consumed by the abyss of questions by now.
I made a reddit post and got some responses:
one user:
The term you’re looking for is “web scraping“ or “site scraping”. I think that’s probably what you need to research before you’re ready to handle how to make that into an app.
That’s a good starting point and once you have the content from scraping, making the app is no different than any other app.
second user:
If the website has a public (or private) API, you can use your buttons and networking calls to their API to build your client app. You are building a "YouTube client" in this case using the YouTube API.
If they dont have an API and you don't want to display their website, what you are doing is trying to reverse engineer their website and hijack the UI which is not a good practice and may even be illegal depending on the site and terms.
third user:
#second user is right on the money, but one thing I'll like to add is, the goal is to get data off of the website so that you can use in your app. An API is one (convenient) way of doing that but others are,
RSS or similar feed content (prefer this if there website supports)
HTML scraping
The above two will require you store the data somewhere else (and possible expose an API instead) because of technical reasons: you don't have access to older entries in RSS feeds and it's atrocious to keep on scraping everytime you need to access the website data. They can be done on the client (mobile app) but are best done on a server. This means you might need to get your hands dirty writing server code but you don't have to.
/thread
I'm going to do research on website scrapping and APIs to see which route i should go.
Hopefully this helped someone else.

React - Java Backend - Sync New Data

I'm having a small problem with a personal project, I'm trying to create an auction site in React - it's an amazing learning experience - with a Java backend.
One trouble I've stumbled upon is how to "sync" data effectively, when new data is inserted into the database from a different user, such as if a user would bid on an item, how would other users update their data?
The only way I can see it happening is with a push model, or constantly polling for data from the server. Both seem pretty out of reach, to be honest, although the push-model seems the more likely of the two.
I could somehow set up an observer pattern with users "registered" when viewing an item, although if there is a better method, I would love to hear it.
I already tried searching for answers, but either none exist (I doubt it), or I'm simply terrible at using Google and don't know the keywords to search for to get the specific results I need. (Likely)
Thanks in advance!
You are looking for a kind of server push technology. Try researching more into Websockets or Server-Sent-Events.
A start could be: WebSockets vs. Server-Sent events/EventSource

Android synchronize data between different devices on Same app

Im planning to develop an android app which allows the user to add different items to a List. My goal is to display every new added item immediately to an User with the Same app on a different device.
Im looking for a good approach without using any server to store the data. Now i know there are syncadaper but im not quite sure how to apply this concept to my use case. Basically a solution similar to a chat peogram is what a have in mind.
I already did my research but couldnt find a good fitting answer.
So i would appreciate any Suggestions.
Thanks in advance

Connecting Java standalone server to Nest cloud via Firebase-Api

I would like to connect a Java application to the Nest-Cloud via the Firebase-Api. The application is as simple as reading the setpoint of a nest thermostat.
I spent a lot of time on developer.nest.com and firebase.com to find the required information, but failed.
What is actually the base url, where the firebase is located? seems not to be home.nest.com
How can I authenticate without user interaction? I tried FirebaseSimpleLogin, but the implementation depens on Android, which is not my platform.
Thanks for your help.
For 1) I don't know for sure, but have you tried https://api.home.nest.com and https://developer-api.nest.com?
2) The user has to authenticate and allow the client you're developing at least once. You'll need to get an authorization code, which you get from the client page on the Nest developer site. The code is six characters I think, and you'll have to include that in your code or assign to a variable and call it.
Take a look at another entry I made. If nothing else, it might help you get a little farther down your rabbit trail.

Android database from webservice

I'm wondering the easiest way to go about this. I've used retro fit for java before to post and get from endpoints in web service my friend wrote in python.. However I've never wrote server side stuff. I have phpmyadmin running on a vitural server... Havnt used it yet however. I just need people to be able to like or dislike a poem on my database. I know how to create the database... What is the best way for me to do this? I've looked this up on Google with so many results but not sure where to start!
Found out the easiest way to go about a restful service. Google app engine! You can easily create endpoints and add objects like a breeze!

Categories

Resources