1

i want to develop a android application that can work only on the android emulator of my desktop , i have no idea of web service ,is there any way i can connect android directly to database just like we connect in ASp.net?

user1643227
  • 21
  • 2
  • 3
  • Maybe you should be looking at eLance for some assistance ;) – Bill Mote Apr 12 '13 at 23:35
  • http://stackoverflow.com/questions/18672012/class-not-found-although-particular-jar-is-added-in-project-connect-to-sqlserve?answertab=active#tab-top – C Sharper Sep 10 '13 at 09:46

3 Answers3

0

Android includes a full implementation of sqlite. Vogella has a nice tutorial: http://www.vogella.com/articles/AndroidSQLite/article.html

If you're truly wanting to accomplish this as a locally hosted web service you're going to have to include apache (or similar) in some way. Infinitely harder than just creating a local database.

Bill Mote
  • 12,644
  • 7
  • 58
  • 82
0

Be clear on what exactly you need?

For stand alone android application you can use SQlite database provided by android

SQllite tutorial

If you are looking to create a webservice... you can try the below link

WebService example

Srikanth Pai
  • 926
  • 3
  • 17
  • 30
  • Sir, i need to connect an android app to a sql server database and have no idea about web service , so i will prefer if you can tell me an alternate. – user1643227 Apr 12 '13 at 17:52
  • download the required library and add it to your project properties..Ex MySql connector 5.1.2 and do jdbc connection – Srikanth Pai Apr 12 '13 at 17:56
0

How about running Android in a virtual machine on a server:
http://androvm.org/blog/ (uses VirtualBox which can run on Windows.)

Then connect via local host to SQL server running on same Windows server.

edit: Running Android in virtual box is like running it on an emulator, but much faster and greater functionality, e.g. the ability to communicate with the host machine via a variety of techniques including via virtual network adapter.

Tom
  • 17,103
  • 8
  • 67
  • 75