Android synchronize data between different devices on Same app - java

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

Related

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

Is it possible to create an Android application that works alongside Google maps?

I am looking to potentially build an Android application that would work alongside Google maps and would require that there is currently navigation running with Google maps. This Android application would really just need to pull the navigation data (the route that is in progress, it would not need turn-by-turn) from Google maps. Does anyone know if this is possible/doable?
I have a couple other ideas so this is not necessarily the be-all, end-all, but if this is doable, I think it would be the best implementation for the users.
I am just looking for some general ideas, any feedback is appreciated!

Linking two phones/users together in Android app

Hi I am designing an Android App using Android Studio for my class and one of the requirement is that the app should link two users together as "partners" so that they can receive notifications or messages from each other. I already have google sign in available but I don't know how to link two users together. Can someone point me in the right direction to get started? Thank you.
You're looking to create an app that can connect users wirelessly and then do whatever tasks you wish to do. Now I'm not going to give you the code or anything like that, but I'm going to point you in the right direction as you asked.
The Android Developers site is a good place to start: Building Apps with Connectivity
The first two categories are closely related to your type of question, and will give you the stepping stone you need to start developing an app that fits your purpose.
Anytime you have an actual issue with coding it, StackOverflow will have countless solutions I'm sure.

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

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.

Creating an app that will display what apps you currently have installed

My question is pretty simple. I have created several apps that tell me what sensors I have and also to display the data, Accelerometer, GPS, etc... One thing I am trying to do is to create an app that will display what apps my phone currently has on it. I looked around online but have not come up with any way to do this. Is this a permission issue? anyway to do this? Thanks for your help.
I implemented a sample application a while ago that displays a list of currently installed applications. It uses getInstalledApplications() as Commonsware suggests. You can find a link to the application's source code in this blog post.
anyway to do this?
Use PackageManager, and methods like getInstalledApplications().

Categories

Resources