I am new to this development process please help me out. I am developing an application in which i have a list of words under a user profile.
Let us suppose i have two devices A and B, both want to share their words-list with each other.
If A is sender then B act as receiver and vice versa.
So how can they communicate (Share Data) with one another using wifi direct without internet connectivity.
I have reached upto level that array of words created now i donot know how to proceed further client and server in same app. stuck in problem
Any Example will be appreciated.
You may want to use solutions such as Parse ( it is closing now, but you can still setup you own server). You make queries as with ordinary database, but can save/fetch data on any device (android/iOs). It also has good sample project and comprehensive documentation (https://www.parse.com/docs/android/guide).
Related
I'm developing an application that will require sending data offline to other users of the app.
The are two different users: Managers and Salesmen. Salesman users will login with a PIN that Managers will generate. As the Manager need to do a first login he will be required to access the internet at least once.
The problem become more complicated when I need to send product lists and other informations about the event created by the Manager when both Manager and Salesman are offline.
This is due to the possible scenario where users won't have internet connection ( even 4G or 3G).
QR Code won't handle the case because the data can be more complex than a big String.
The data will have:
List of validated Employees (users with a name and a PIN number)
List of All Categories
List of all Products available (Product Name, Product Price, ProductID, Product Category)
Is there possible alternatives instead of Bluetooth? The idea must be cross-platform (ios x android) as this are our targets. Couldn't found much about offline methods. Any help is welcome.
using WIFI will give you the ability to use the same code for online AND offline, while its offline you can make the manager application part of the server code.
Use wifi instead.
Then you can use same code for both offline and online.
If it is offline
Make manager App part as server code (like TCP/UDP server) and make the sales person part as the client.
If it is online
make both Manager and sales person connect to a central server then exchange data from there.
Use wifi instead.
Then you can use same code for both offline and online.
If it is offline
Make manager App part as server code (like TCP/UDP server) and make the sales person part as the client.
If it is online
make both Manager and sales person connect to a central server then exchange data from there.
Here is a realy simple example with TCP
https://www.myandroidsolutions.com/2012/07/20/android-tcp-connection-tutorial/
Bless To all
I am developing an application in which i am implementing instant Messaging,Voip audio call and video call through using opentok/tokbox.I read all documentation it was though easy but not very much.But i am confusing at a point.Lets suppose if i have three user in my android application say A,B,C.
if user A wants to message with user B then how user B will know that he have to receive message from that session that is assigned to user A?how user A will send message that will go directly to user B.
Hope you all understand the question.Would like to hear any suggestion from you.and if anyone worked other plateform for these 3 features(instant messaging,voip audio,video) for free or trial.Please let me know also.
Thanks in advance
Your server will need to coordinate users and sessions using logic that you implement yourself. This will vary greatly depending on the server side language you use and the type of application you're creating.
Based on your example, your server side implementation needs to pair user A and user B together and give both users the same session ID so when they initialise and connect to that session, they can see each other.
If you've already read all the guides found at https://tokbox.com/developer/guides/ then make sure you also take a look at the sample applications https://tokbox.com/developer/samples/ They don't match your use case exactly but demonstrate how to create a 'room' that both users can visit to retrieve the same session ID.
The way opentok Sessions are structured is more like a conference call than a direct phone call which is what makes it confusing. But it's still possible to get the behaviour of a phone call. There are a couple of different ways you can do this.
You can create a session for every user. Then if user A wants to message user B, they connect to User B's session and send a signal. This requires you to keep track of which sessionId applies to each user.
Everyone is connected to the same giant session. When user A wants to message user B they send a signal to user B's connectionId. You can use the connection data property to put eg. usernames in the connections to help you keep track.
You can use a 3rd party service for messaging and just use OpenTok for the audio/video part.
Hope that helps.
I want to build an android app, that when you put your phone on nfc tag, the app connect to server (I suppose database will be in web server) and get the data from database, and when you put a phone on second nfc tag it connect again to server, but this time gets diffrent data from database(must be there new database).
So basically I' am new to servers and databases and if this is posible what I mention above or at least a similar. Can you provide me with some tutorials that I can learn from and will help me build this.
Please go through the following link,
http://developer.android.com/guide/topics/connectivity/nfc/index.html
It has all the tutorials on how to utilize NFC on Android. It has certain API's available as well which you can use. The part where first it does a different operation and the next time a different one all depends on you on how you deal with it. You can write a condition based on a boolean value to see if its a first time or second.
Hope this helps.
i want to develop a notepad alike app where initially all those who subscribed my pad can get my contents synchronized in real time but they can't edit my pad's contents and later on i want to give collaborative write access to every client.
There are so many references regarding sync between dropbox with phone or within yours multiple devices but didn't find anything useful.
EXAMPLE: Etherpad for desktop but mine is for android.
(Q1) How can client subscribe my pad.
(Q2) How can i setup a server which once get my pad's content will automatically broadcast to all the clients.
(Q3) How can i control conflicts for multiple write access between clients.
Please give some references to start with..thanks
About Q1 and Q2 it will depend on the tool you choose for the server. But it will end being a socket. I recommend reading this http://docs.oracle.com/javase/tutorial/networking/sockets/
About Q3, you will have to create a policy for this. One aproach is doing like Google Docs: keep the cursor location on server and broadcast to all clients, when another client changes the place your cursor is, your cursor changes along the change (remove or add text)
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