Android Community
Results 1 to 8 of 8

Thread: Writing private apps for Android

  1. #1
    Join Date
    Aug 2009
    Location
    London, England
    Posts
    4

    Default Writing private apps for Android


    Hi all,

    I am new to android development and mobile development in general.

    I am interested in writing an application for a private client (not for public release). In brief the application will be used by feild staff and will communicate with a webservice back at base.

    My questions are as follows...

    1. Is Android a suitable platform for this kind of work.
    2. Can you consume web services from Android this way?

    Thanks in advance
    Last edited by Grubber; 08-01-2009 at 12:18 PM. Reason: format

  2. #2
    Join Date
    Sep 2008
    Location
    Kansas City, Missouri
    Posts
    305

    Default Re: Writing private apps for Android

    ..writing an application...will be used by feild staff and will communicate with a webservice back at base.
    I take it from this you mean a 'web portal' type of thing, but where a dedicated app accesses a webservice rather than logging into a regular website via a browser?
    1. Is Android a suitable platform for this kind of work.
    2. Can you consume web services from Android this way?
    1. I don't see why not as long as you keep everything as simple, small and fast as possible. Even with 3G large data transfers could slow things down too much.
    2. I don't use a dedicated app like you're thinking of, but I do use the G1's browser to access my company web portal. Even though the site wasn't designed with anything but IE in mind, it still works well for most activities. A carefully designed dedicated app and webservice should work even better.
    Last edited by Crashdamage; 08-01-2009 at 01:24 PM.
    Registered Linux user #266531

  3. #3
    Join Date
    Aug 2009
    Location
    London, England
    Posts
    4

    Default Re: Writing private apps for Android

    Thanks for the reply Crashdamage.

    Quote Originally Posted by Crashdamage View Post
    I take it from this you mean a 'web portal' type of thing, but where a dedicated app accesses a webservice rather than logging into a regular website via a browser?
    Yes, that is the idea. For example - staff in the field would need to request a product list (in xml) from an existing webservice to be displayed on their phone. From this they could request a reservation on that product for their customer by sending a request to that webservice.

    The data would simply be small xml streams and login data. No pictures or anything.
    Last edited by Grubber; 08-01-2009 at 02:19 PM.

  4. #4

    Default Re: Writing private apps for Android

    The standard java jdk is mostly, if not all, represented in Android along with google's additions.

    If you're used to java then you may use an HttpClient to communicate data to the server, there is socket support and you may make post requests etc. SAX parser for XML is built in and you have access to local databases.

    You have two options;

    An incredibly simple Android app involving not more than 30 lines of code that accesses a WebView (displays a website) that has all of the functionality online but in a mobile format (which would also be accessible from any other internet enabled phone such as the iphone and palm pre), or you can make an android UI that talks to the server. This is likely the more flexible option as you may cache requests and send them whenever somebody loses network connection. Consider that your users will not always be in a wireless/3g/gprs/edge connection area and with the first method you would simply get a "web page cannot be found" error.

  5. #5
    Join Date
    Aug 2009
    Location
    London, England
    Posts
    4

    Default Re: Writing private apps for Android

    Thanks Supernova, some good points there. I am going to have to get out of the always connected mindset I have from years of working on desktop apps.

    I am new to Java, all my experience so far has been VB and other older languages. I am hoping that a lot of previous programming experience will shorten the Java learning curve.

  6. #6

    Default Re: Writing private apps for Android

    As a developer implementing a system your thoughts here should be not on the platform as a first port of call but rather the devices available with network coverage in the areas that your clients operate.

    Whilst I love developing apps on Android I wouldn't use it if there was no network coverage for Android devices for instance!

    Assuming coverage will be fine then either you could use a (more cross-platform) web app and just make a portal, or a (more robust, more difficult) local storage solution which could cache things when you're in a no-coverage area. However you would need to think about concurrency of data as well - I have no idea what data you have but - if it is something requiring stocks then you wouldn't want staff to see a local copy of data and think there's a bunch left when in reality somebody else has already sold it!

    Edit: Java learning curve was not too steep, do you have experience with any other object oriented languages such as c++? (or even php 5?)

  7. #7
    Join Date
    Aug 2009
    Location
    London, England
    Posts
    4

    Default Re: Writing private apps for Android

    Quote Originally Posted by Supernova View Post
    As a developer implementing a system your thoughts here should be not on the platform as a first port of call but rather the devices available with network coverage in the areas that your clients operate.

    Whilst I love developing apps on Android I wouldn't use it if there was no network coverage for Android devices for instance!

    Assuming coverage will be fine then either you could use a (more cross-platform) web app and just make a portal, or a (more robust, more difficult) local storage solution which could cache things when you're in a no-coverage area. However you would need to think about concurrency of data as well - I have no idea what data you have but - if it is something requiring stocks then you wouldn't want staff to see a local copy of data and think there's a bunch left when in reality somebody else has already sold it!

    Edit: Java learning curve was not too steep, do you have experience with any other object oriented languages such as c++? (or even php 5?)
    Network coverage is very good here in the UK. It is rare to be out of signal range, so it is not a major problem, clearly I will still have to code for it though.

    I have not done any c++, and only a little php. I understand the OO concept though.

    I am just strting to work through a few examples, so I'll do those and then have a bash at a couple of simple apps first to see how I get on.

  8. #8
    Join Date
    Feb 2009
    Posts
    136

    Default Re: Writing private apps for Android


    If you can live with the crappy tmobile coverage it would be a good platform.

Similar Threads

  1. Private Message from someone in Sierra Leone
    By ren857 in forum Feedback
    Replies: 13
    Last Post: 12-17-2008, 01:22 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •