Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6191593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:47:36+00:00 2026-05-24T02:47:36+00:00

I have created two EditText fields and a single submit button in Android using

  • 0

I have created two EditText fields and a single submit button in Android using Eclipse. Now I need to develop a web service preferably in .NET that would expose my database. I must say that I did see this [http://www.hanselman.com/blog/CreatingAnODataAPIForStackOverflowIncludingXMLAndJSONIn30Minutes.aspx] before posting but I do not have knowledge of how to use a WCF service and instead I would prefer REST or SOAP.

I now just need to call the webservice on click of a button that would get a list of values of a particular column of the database in a ListView with a checkbox on emulator of Android

Please can anyone tell me how should I go about doing this ?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T02:47:36+00:00Added an answer on May 24, 2026 at 2:47 am

    EDIT:

    Given your note below, I would skip the “…synchronize an SQLiteDatabase…” part of the background service on Android (as there doesn’t seem to be anything to synchronize or cache on the target Android device). I would make that background service directly call your web service.

    The important thing here is to perform the actual HTTP-request from your Android application in a worker thread. If you call it from the UI-thread (a.k.a. the default- or main thread) the web service will most likely not answer quickly enough to keep the application alive and Android will treat it as a non-responsive application.

    An Android Service will by default run in the same thread as the caller runs in (which most likely is the UI-thread). You could have a look at IntentService which manages all the threading for you.

    But before all this I think you need to design your database and sort out your web service. Unfortunately I’m a bit too rusty on Microsoft’s products in order to provide you with useful help. But I figure there must be tons of tutorials and “how-to”‘s out there.

    ORIGIN:

    Wikipedia has a suprizingly good definition of what REST should be about. This concept also maps very well to the Android ContentProvider‘s concept.

    Assuming that you want to expose a database on a web server I think I would write a simple REST based web service (on your web server) which gives you access to the tables and columns needed by the app (no more, no less).

    By default I would perhaps continue with writing a background service (on Android) that periodically would synchronize an SQLiteDatabase (still on Android), maybe through a ContentProvider (NOTE that ContentProviders aren’t the only way to communicate with a database, actually I would even say that communicating with a database isn’t even the main feature of a ContentProvider).

    Finally I would broadcast a notification (still on Android) when the synchronization ends so that any (Android) clients would know when to automatically request fresh data from the SQLite database. Perhaps this fetching of fresh data could also be triggered by pressing a button in the UI in order to allow the user to trigger a manual update as well.

    If you write more about your Android App and what it’s supposed to achieve I will modify my answer to be more correct and specific.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created two input fields using EditText, a TimePicker , a Spinner along
I have created two partial classes for a web page. Now i have given
I have created two buttons using the following XAML code. <Button x:Name=Button1 Width=100 Content=Button1
Let's say I have created two objects from class foo and now want to
I have created an alert view with two buttons using the following code: UIAlertView
I have created two tabs in my Activity using the below code. This is
I have created two brand new solutions using the latest VS 2010: C# console
I have four EditText and two buttons namely, save and review button. If i
I have created two fields in a module assigned date and reviewed date. I
I have created two forms in my Windows Application. One Form acts as a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.