Data syncing application between PC and Android? [closed] - java

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
So I wasn't exactly sure what to search for when I needed an answer to this problem, hence the crappy title, so I'm sorry of this is a repeat Q but I was hoping for some suggestions on how I should approach the following project:
An application similar to Google's Chrome to Phone but...
Much more functional
Much more scalable
Bidirectional (PC to phone and phone to PC)
Add in clipboard sync
Needs to be fast in order to be useful
Not a chrome extension but a PC application (Java?)
The way I initially wanted to go about it is creating a web service where clipboard data and other requests could be passed onto the phone or PC using polling but (and I'm not sure how accurate this is) this could seriously harm battery life on android if I'm polling every few seconds for clipboard data and if I'm conserving battery life by not polling as frequently, clipboard data becomes less available.
Any creative solutions? (or blatantly obvious ones that I'm not seeing)
Thanks in advanced!

Rather than polling, you should use Android Cloud-to-Device Messaging (C2DM).

I just launched ClipboardSync, a Android app with a PC client that matches all your requirements. Check it out at https://play.google.com/store/apps/details?id=com.ClipboardSync.
It does't poll on the Android end, uses push messaging. The PC client polls for data updates but I'm working on an upgrade to something better for it.

Related

voice recognition constantly in background android [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
FfhggtffgtfgtgftI want develop application that whenever it recognizes a keyword it does something. it needs to be in listening mode all the time, in backgeound too.
I was exposed to this and this. I treid run it but it is not work when I am speaking.
actually I read it still doesn't support my native language. is that the reason?
I want to know how it works? does it is doing speach to text and saved it in assets files? does it is run in background? does it is used AI models? how it behaves when two apps need mic resource in parallel? noises? does it is work with Neural Networks API? how can I start developing such a thing?
thanks!
It is great you tried Vosk offline speech recognition on Android, here are some answers to your questions:
actually I read it still doesn't support my native language.
If you are about Hebrew, we might support it in the future, and you can build it yourself.
is that the reason?
You didn't provide enough information to answer this, please explain a bit more what is "it is not work"
I want to know how it works?
Extensive documentation on speech recognition is available on lectures, courses and books. You can find some introduction here for example: https://www.youtube.com/watch?v=q67z7PTGRi8
does it is doing speech to text and saved it in assets files?
It does speech to text, but it doesn't save results into assets, it just displays them. You can not modify assets, they are static.
does it is run in background?
Yes
does it is used AI models?
Sure
how it behaves when two apps need mic resource in parallel?
In android it is not possible to record audio from two apps in parallel, second one will be blocked.
noises?
It is robust to noises.
does it is work with Neural Networks API?
No, it is portable
how can I start developing such a thing?
Get some basic understanding and start writing the code. If you have further questions you can ask them in the Telegram chat

Best solution for retrieve and manage phone contacts on server side? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I want to create an android application which retrieve and save phone contacts on server side, then the server-side application have to manage them and find the contacts which have installed the same android application on their phones.
I need some advice for choosing technology stack? Do you know any similar solution?
Which kind of database you recommend? Are graph-based databases (like Neo4J) any good or I just use relational databases?Performance and scalability considerations are very important to me.
Any help would be appreciated.
Thank you.
I suggest you build a prototype. Begin with a server side application with a relational database. Use a DAO layer so you can change the db implemantation later if needed.
Initially, I suppose your requirements are just functionality. So go for it and build something that works. Later on, you can continue with performance and scalability considerations, but when you have reached that point you will have much more experience in what you are trying to built and alternatives you could follow.
Now the modile (Android) app is a different story. I suggest you build an app that sends and retrieves data(contacts) to and from the server to begin with.
Finally, you could download some similar apps and try to replicate their UI.

How to make a real time concurency lock in a web application? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I m develloping a web application, in which I have to show, let's say, a list of tasks.
What I need to do is once a user open a task (i.e open it in his browser), it gets deleted of all the others users lists or it shows that the task is taken, no one can open a task that is already opened by someone else.
In addition, I need that once a user close a task (for example user closes his browser) , it get re-added to other users tasks list.
How can I do that please ? WebSocket in client side ? Any other -better- choices? How to manage this in the server side ?
Thank you
There is two solutions (that I know of) for your problem :
Ajax (and Long Poll)
Using Ajax you can poll the server every X seconds for data necessary to implement the behavior you described. This may work but it is not a recommended way to go. read why on this thread.
WebSocket
Just like a socket you'd use on a desktop application (hence the name), you can open a WebSocket connection (not an HTTP one), keep it as long as needed and close it only when you're done with it. This is the preferred way to have data flowing constantly between a client and a server. It is also supported by almost every major browser out there
There is other technologies such as WebRTC and Server-Sent Events, but considering your description of the problem, those might not be what you're looking for.
Off-topic : And I'm not sure why your question has been downvoted, looks legit to me.

Answer to android phone calls from PC by bluetooth [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have a PC (where a Java program is running), Bluetooth dongle and Android device (2.3. 6) and want to use PC microphone/headset/speakers to answer a call by Bluetooth. I give another question here, but seems we not understand each other. I not want to speak with PC by connected Android device, I want to answer to incoming calls by PC (use PC as Bluetooth headset or HFP headset or something like that). I find app in play.google.com that implemented such things here.
The simplest way would be to make the computer act as a Bluetooth Handsfree Kit, in fact it's already implemented in most OS with or without additional software.
In that case you don't actually need an android application since you can use the built-in HFP client.
If you want to implement the server yourself using Java then you could look at this :
http://today.java.net/pub/a/today/2004/07/27/bluetooth.html
You would also need to take a look at the Bluetooth Hands-Free Profile (HFP) protocol :
http://www.mcpc-jp.org/news/pdf/CCAP_Guideline_Ver10a.pdf

How to download video from Youtube with Android? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I saw many programms in Android Market which allow to download video from Youtube. Now I must create programm for download video from Youtube, but I don't know how to do it. Can you help me? Thank you for, anyway.
Well first of all. Stackoverflow is mostly used for question. No one here will write a complete app for you, well the majority will probably not do that.
Second, you might want to look at YouTubes ToS:
5L:
you agree not to access Content or any reason other than your personal, non-commercial use solely as intended through and permitted by the normal functionality of the Service, and solely for Streaming. "Streaming" means a contemporaneous digital transmission of the material by YouTube via the Internet to a user operated Internet enabled device in such a manner that the data is intended for real-time viewing and not intended to be downloaded (either permanently or temporarily), copied, stored, or redistributed by the user.
5M:
You shall not copy, reproduce, distribute, transmit, broadcast,
display, sell, license, or otherwise exploit any Content for any other
purposes without the prior written consent of YouTube or the
respective licensors of the Content.
So please come back with questions that we can answer.
You should probably check out http://sourceforge.net/projects/ytd2/ and http://www.google.com/support/forum/p/youtube/thread?tid=28e5b81a75f31def&hl=en

Categories