create a service to check external database frequently [closed] - android

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am new in android and i develop an application that receive data from MYSQL external database using PHP.
I need to create a service to check frequently the database if there is any change made on it the end user will get notification , so how i can create this like this service ??
any article to read ?!
thanks in advance

Well, what are the specifics of the service? What are your requirements? Do you just want to poll your database, and then stop the service once data is retrieved. Will you need a separate worker thread to do this work?
You might want to look into Intent Service for this. Documentation on it can be found here
A standard service may be fine too, but I'm not sure what the specifics are for your project, so I would read up them both and figure out exactly which would be best for your needs.
See this SO question that gives a brief outline of them both.

Firstly, welcome to android development.
Unfortunately your seemingly simple example will require you to learn a lot of android concepts so I cannot answer your question as directly as you might like.
That said, the following site is very good for android tutorials
http://www.vogella.com/android.html
I have also compiled a list of android resources on my site that you might benefit from:
http://www.sage42.org/we-recommend/

Related

How to create a simple Chat App in android [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I wanna create a simple chat app in android but really I don't how to start
I really searched in google but really I didn't find any helpful link or code
so guys please I need your help how Can I start any video link or any simple code
In case you have some experience in Java I can recommend this book:
Professional Android 4 Application Development (Wrox)
It really helped me to get started with Android development. Otherwise the best start is probably a quick introduction to Java. In German there's also a book called Java for Android, not sure if it exists in English, too.
Also for inspiration you can have a look at this:
https://code.google.com/p/simple-android-instant-messaging-application/

How to connect Android App to SQL Server database [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am working on a project in which I am trying to have an Android app access a SQL server database. The web-portion uses an ASP.NET back end. I have seen several posts about the same or similar topics, but all of them I have found are over a year old. Has anything changed in terms of libraries, or do I still need to work on creating a web service? That seemed to be the most popular answer in all of the responses. Any and all help is greatly appreciated!
I'd suggest a web service, yes. We have an application that does this - we have a RESTful web service that delivers XML to the application and vice versa. The SQL server database layer communicates with the application through this HTTPS web service for logins and exchanging data results back and forth.
Something similar to this: Query SQL Server via REST to get XML

How to save score on server side with different Id's? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am working on android quiz game and dont know how to write code that save score of every user at the end of game with differnt id on server side. So that i can check the winner with highscore after some days. I prefer to use sqlite database but dont know much about this. If someone know about this problem plz help me with example of some code.
Thanks in advance!
Anyone have better answer than this?
There are different storage options available in android. Choose the one that suits you the best.
As far as Sqlite, Yes its good option for storing structured data in a private database. Go, through this simple Sqlite sample here , here and here
If you want to maintain achievements, leaderboards, and real-time multiplayer stats to your mobile then Google Play Games services should be your option as rightly mentioned by
#MarvinLabs.
You should use the Google Play Games services. That provides all you need and sample code.
https://developers.google.com/games/services/

How to Work on VoIP? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want to develop an app in android through which I can easily transfer Voice over Internet (VoIP). There are many application in market like CSIPSIMPLE. Is there any tutorial which can start from beginning and also how to maintain its server. What are the basic terminologies which we have to use. Please suggest.
Thanks in advance
http://developer.android.com/guide/topics/connectivity/sip.html
Android has a simple sip stack included which should satisfy your needs. Apps like CSipSimple (most of them) use their own sip stack with different codecs/filters applied to the device's input/output, but that requires more work as these are native due to performance.
So for a simple VoIP application, feel free to use android's utilities. Server software choice and maintenance is depending on what you want to achieve, just google for sip servers and read.
CSipSimple is open source. Just start there. Note that it is GPL, so you won't just be able to copy and use it in a commercial application, but you'll see what's involved internally.
For the server, Asterisk has been around for over a decade. There are other alternatives, but Asterisk is the de-facto standard for open source PBX.

OCR (Image to text) in Android [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you've tried to do, why it didn't work, and how it should work. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
How can I implement an OCR function in my android app? I want to make an app that takes a picture and translates a text from it. Any APIS or tutorials for that?
Thanks
Update: Here some additional links I found that may assist you on configuring tesseract. I personally have not use this, as I personally opted for 2D code approach.
http://rmtheis.wordpress.com/2011/08/06/using-tesseract-tools-for-android-to-create-a-basic-ocr-app/
http://gaut.am/making-an-ocr-android-app-using-tesseract/
Original answer
Well without knowing anything about your app, I would like to note that you probably could not beat Google Googles when it comes to OCR features. Maybe you can add additional detail what kind of text do you want to be able to translate? So we know your not reinventing the wheel :)
I found a few links
https://code.google.com/p/tesseract-ocr/
http://ocrsdk.com/producttour/many-more/
But if I may suggest, if you it specific message that can you want to parse, I would recommend actually using QR barcode. You can convert a CSV file into 2D code and then have your app scan it then parse it to do some custom feature.
Here library I used for 2D code and found it quite useful in the past. Zxing which is open source and free to use

Categories

Resources