i am making a project to help restaurant order system.. so the cashier using application build in visual basic 2010, and the waiter/waitress will use android as a Menu Book and they will sent data order to the server.
my problem is : i want to transfer my data which in database in visual basic (.mdf) to gadget android via wifi. so far, i was able to transfer string from android to VB 2010 via TCP socket.
please help to about the concept or best way to transfer database via wifi, a book / reference or some tutorial with a simple code will good :)
database in visual basic and in Android have the same structure :)
you can make a local web service and use ksoap 2 library to do that. Its my opinion for the best way..
and here is the tutorial http://seesharpgears.blogspot.com/2010/10/ksoap-android-web-service-tutorial-with.html
Related
Beginner here,I have tried getting the data using mongoDB driver which proved to be a herculean task as the app crashed every time I tried to create a connection to database.(The queries ran perfectly if executed separately). Then I tried to implement the queries on an asynctask class which ran on a separate thread in android. I feel there is a much simpler way to achieve the task at hand. The data i am trying to access is required by the UI of the app , so it should be fast.
I have referred this question but how exactly do we go about creating a web service . Can we use a framework like flask?
Please start with the following tutorial. Here is the Xamarin version. There are also other version of this tutorial, depending on the technology stack relevent:
.NET
Node.js
Java
Python
Build mobile applications with Xamarin and Azure Cosmos DB
I'm trying to create a WCF (web service) in order to connect a oracle data base server and use it on a android app. Could someone tell me which language is the best in order to create a WCF? I know visual basic .Net is good for it. Is there other langague for it? And could someone show me a good tutorial in order to create this WCF? I don't want to create a ASMX, I think WCF is better.
Please Help!
Thanks in advance.
I'm not sure whether categorizing one vs. other as best is the right way to think about it. There is a ton of code out there written in both languages. Personally and because of my background - I use c# and all the .NET jobs I've had over the years have required c# knowledge and not VB.NET.
That being said - you can implement a WCF service in either language.
I'm sure you have investigated what WCF is. If not - you can start here: https://msdn.microsoft.com/en-us/library/ms731082(v=vs.110).aspx
The following tutorial should get you started:
http://www.tutorialspoint.com/wcf/
You will need a .NET library that allows you to connect to an Oracle Database. One that I've used is the Oracle Data Provider for .NET which is from Oracle.
http://www.oracle.com/technetwork/topics/dotnet/index-085163.html
I will start a project ( not commercial, just for learning ) but I would like to choose to work with the right tools as I would if I were doing it for a company.
First of all small description of what I will need.
It would be a server-client(s) application.
For the server:
- GUI for Windows
- ORM
- Database without installation (sqlite ???)
- GUI builder (RAD Tool)
- Ability to create easily REST Services
Clients would be android devices
- GUI for android mobile
Clients would connect to the server and get some initial settings and then start to
send information to the server.
Server should be able to display properly the information collected from the clients and
edit them if needed.
Open source technologies are mandatatory.
First I am thinking to use sqlite ( I should not make any installation except the programm). Any alternatives here?
For the server maybe python with a gui library and sql alchemy. What about Camelot?
And for the clients (android) java. I think there are no other options here.
Can you make some comments on the above choices?
Maybe you can suggest something different which will make the development faster...
And for the clients (android) java. I think there are no other options here.
I'm no expert in the area, but below are some possible alternatilves for you:
C#: Mono for Droid (with MonoDevelop?)
http://monodevelop.com/Download/Mono_For_Android
https://stackoverflow.com/questions/tagged/monodroid?sort=votes
JavaScript: Titanium Appcelerator
https://wiki.appcelerator.org/display/guides/Home
https://stackoverflow.com/questions/tagged/appcelerator?sort=votes
Python: Kivy
http://kivy.org/docs/guide/quickstart.html#quickstart
https://stackoverflow.com/questions/tagged/android+python?sort=votes
For negative opinions on using such rapid-development frameworks, see, eg.
Appcelerator vs Android SDK
Of course such problems are not particular to the above frameworks... We couldn't rename a file atomically on Windows until the arrival of JDK7 which finally allows us to use MoveFileEx() (cf. Reliable File.renameTo() alternative on Windows? ). But you should always be careful on how to find an escape hatch :-)
As you have asserted: client is java only.
On server:
GUI for Windows : WPF
ORM - Database without installation : SQLCE 4.0 - Maybe use codefirst
GUI builder (RAD Tool) : Visual Studio lets you do that for WPF apps
Ability to create easily REST Services : Use WCF
hope that helps
I am searching in net about directly connect Android application to Sql Server develop using Eclipse. But not found solution. Most of them suggest use web service.
But Android Application developing using Monodroid is connecting
directly to SQL Server.
How Monodroid achieve this?
Thanks
Mono for Android ships with Mono.Data.Tds.dll and System.Data.dll which provide SQL Server support using TDS.
There may be Java libraries that would allow you to connect directly from an Android application written in Java, but I would recommend against that approach (I would also recommend against it even if you were using Mono for Android). As you mentioned seeing elsewhere, putting a service in between your app and the database is the right way to go. This would give you a much cleaner API to work against for the app, and would also be reusable elsewhere if you needed.
Maybe this guide can help
SqlConnection myConnection = new SqlConnection("user id=username;" +
"password=password;server=serverurl;" +
"Trusted_Connection=yes;" +
"database=database; " +
"connection timeout=30");
but I don't even know C# myself. I answered your question but later I found it was tagged monodroid
EDIT
Sorry, I didn't read the monodroid tag
I'm getting started on a contracting project bid, and I was hoping for some advice on the best way to go about it.
I am being asked to develop an Android application for inventory management for a small company (no more than a few thousand SKUs at most) for Android tablets and I'm trying to come up with the architecture for the system.
I was thinking of using MS Server 2008 hosting a MSSQL database. This database would be exposed via REST services, as the DB would need to be accessible remotely (through Android tablets by salespeople).
I haven't used SQL much in the past, but I am thinking this is likely the best solution, along with REST for performing remote DB transactions.
Basically the functionality would be to view stock, order items, check prices, etc.
I would appreciate any advice anyone has on this topic.
Thanks!
I recommend you go over this article: Creating an OData API for StackOverflow including XML and JSON in 30 minutes. Then, consider the odata4j project.
Also, here is an interesting lecture about clienting REST for android:
http://developer.android.com/videos/index.html#v=xHXn3Kg2IQE
I would go for Oracle Application Express. They have build in Jquery Mobile and easy to expose a report list as Rest web service. Then use Phinegap and Jquery for Android apps.
Take look my quick sample: http://m.youtube.com/index?desktop_uri=%2F&gl=US#/watch?v=5rfuq-e-_Ws
You are not building an enterprise system....give a try Oracle Apex...you will be addicted to it.
Phonegap, Jquery Mobile and SQLite as local database on Android tablet .... Only if you need offline capability. Otherwise just use Oracle Apex with build in Jquery Mobile will be super solution!
I recommend you take a look at restSQL, an ultra-lightweight persistence framework. It currently supports MySQL and PostgreSQL. See http://restsql.org. It runs in a standard Java EE container, e.g. Apache Tomcat.
restSQL is not a conventional ORM. It does not present an object-oriented view of the database. It presents flat or hierarchical "views" of relational database tables. These views are query-able and updatable through a simple REST-based HTTP or Java API. The HTTP interface is based on REST principles, which use HTTP’s built-in features, rather than abstracting away from them.
I have used http://www.remobjects.com/ for this. Create the server in .net, delphi and clients in anything.
Also, is possible to use just http://www.remobjects.com/da/relativity.aspx if not have heavy logic in the middle-tier.