Request types on iPhone || Android? - iphone

Is it possible to send GET, POST, PUT and DELETE requests from iPhone || Android applications to a third party server?
I want to build a web service to reuse on all 3 platforms (3rd being the web app itself).

Yes, making HTTP requests on mobile devices running iOS or Android is no different from desktop Java or Cocoa. Both platforms offer API's that enable you to change the request method. Checkout NSURLConnection on iOS and the org.apache.http package on Android.

Well, it's all possible on both iOS and Android OS platforms, however while designing web service, you probably may consider a lightweight implementation as mobile platforms are not powerful enough if you for example intend to use SOAP extensively. My most often choice is REST+JSON.

this is an example of how to implement a webservice call in android:
http://lukencode.com/2010/04/27/calling-web-services-in-android-using-httpclient/

Related

framework for chatting functionality that supports all mobile platforms and .net web application

our application is web integrated with mobile application.
develop web application in .net and mobile applications in iphone,android,blackberry,windows mobiles.
Now my requirement is i need to provide chat provision between web application and mobile application.
i found xmpp framework but i don't know xmpp supports in all mobile platforms.while i am checking xmpp does't support for iphone 3.0 simulator while i am executing the same framework it works with out any errors in iphone 4.0.
experts can any one suggest solution for my problem which is the most efficient framework that supports as my requirement.
thank you very much
If you mean groups.google.com/group/xmppframework
If most recent versions no longer support 3.0 you can go back to an older version which I know supported 3.0 (I used it to build a chat app for iPhone and Android), xmpp v2 perhaps. Or fix the lib to support 3.0 again, its a pretty simple library.
Google Talk uses XMPP so any mobile device supporting Google Talk will work including:
Android, BlackBerry, iPhone.

Cross platform mobile developement using UIWebView and Webview

I am just wondering is it worth to do a cross platform mobile app development using UIWebView (iphone) and Webview(Android)? We need to port multiple web applications as mobile apps for iphone and Android. One of the strategy is to use the UIWebView to render content from server and this content from server is same for Android and iPhone.
Have a you developed using this concept? Is there any limitations you found in it? Such as issues with redirect of web-pages, cookies, java-script library performance etc
So far I see only two issues:
Non availability specific UI design features native to device such as may be rounded corner buttons not available etc
Infrastructure code for handling cookies, sending and receiving information back and forth from server to device.
any advice?
Thank you
Cross platform frameworks are talking similar approach and also adding wrapper libraries to abstract away platform specific functionlity. Check out PhoneGap, Appcelerator and others.
Checkout Pyxis, which is a cross platform mobile app development software.

CrossPaltform Mobile Application

I want to do the following:
1- mobile friendly Portal - accessed through different Mobile Phones.
2- A mobile Applications that does the same functionality of the portal to different Platforms:
iOS(iPhone,iPad), BlackberryOS(Blackberry mobiles and Playbooks),Android OS (Android mobiles and Tabs), WindowsOS, Symbian OS (Smartphones).
I am mainly a web Developer and an iOS programmer using Objective-C, and I have resources that can develop on android, blackberry and other platforms using native languages.
the Application mainly present data from internal database and deals with different types of web services, and write data to the file system of the device itself.
what is the best practice for the mobile applications, do each one alone with its native language, or using HTML,CSS,JS and produce them to all platforms using PhoneGap or something else???
Thanks a lot.
Also check this thread : best cross-mobile framework
With a javascript solution, your app will be available on stores but also directly on the web !

How to gain direct access to the hardware capabilities of mobile devices from mobile browsers

We are developing web browser application for mobile phones and I am trying to figure out a way that I can gain access to the camera and take a photo and then upload it to the internet. But so far what I was suggested is to use phonegap and create native application. Phonegap is fine but it is not what I am looking for because my client wants to design forms and these html forms somehow will be able to trigger the camera and take photo and upload it to a server. Do you think developing a native API for every platform and having access to its functions from the web browsers is possible? What your suggestion would be?
(Note: My customer only want application that can run on mobile web browsers no native application runs on I-Phone, windows mobile, Blackberry and Android)
Thanks a lot...
Web apps (not wrapped in native code as Kumar details) cannot access all device hardware and sensors. Location support is available on iOS and Android, but camera access is only available on Android (via JavaScript). Similarly, device motion APIs are not accessible on Android, but are on iOS.
As you can see, support is sketchy and if you are truly looking to use such features, you are better off (and in many cases, realistically looking at) writing native apps for each platform you intend to support.
HTML5 is not yet at the point where it can replace native apps. It can do some of the things that native apps can, but even then performance is suboptimal. Currently, native apps may be more difficult and time-consuming, but they are necessary.
Calling android native APIs from javascript functions of embedded WebView
Use JS to call Java code which will in-turn call the Camera API or whatever else you are looking for.
It's not going to be possible to do it on iPhone, the only known way of accessing the camera is through the Cocoa layer.

How to develop products on mobile phones

Recently we are going to develop some products on mobile phone (specially for 3g). There are many platforms about mobile phones: iPhone OS, Symbian, Blackberry's. If I want to develop a product, should I use Java or write every program for the main platforms?
Particular one question for iPhone development: are there many Java programs on iPhone? Most iphone app I've seen are developed by their own xCode.
I need some guidance on how to do coding for mobiles correctly.
All these platforms are completely different beasts as in the old days. About symbian, (which I am most familiar with) you can use Qt for quality native applications. Native api is confusing so avoid it where possible. If your application is simple, you can even get away with python.
In short, use the language which you are most productive available for each platform. Their apis are wildly different anyway. Language choice doesn't matter as much as the choice of platforms you are supporting.
Java is not available for use on the iPhone; you can use Objective-C, C and C++ to develop iPhone applications.
There is currently no Java for iPhone, so you need to develop separately for iPhone in objective C.
Alternatively you can create application which runs in web browser, it'll be available on all platforms, but not every application is suitable for web.
Have you considered you using web technologies?
There are a couple of cross platform tool kits for iPhone and Android. They work in the same fashion as Adobe Air. Allowing you to make HTML/JS based web app and run it as native code in the browser.
Titanium Mobile (Android & iPhone) HTML/CSS/JS
Corona iPhone Only via Lua
Palm's Web OS is also based on web technologies.
Finally the old guard, Symbian Provides a Web Widgets system, that works in on all handsets with 9.2 fp 2 installed (n95,e72, n97 etc.) The api supports some hardware functionality.
The only one left out in the cold is Windows Mobile. There is some 3rd party support in the form of Web Widgets by torch mobile
It's currently limited to iPhone, BlackBerry, and Android (and possibly WinMo) but you may want to check out the open source project called PhoneGap. I think it is basically just a native wrapper around the built in web browser for each device, but it does expose some functionality not normally available in that environment such as geolocation, accelerometer, sound, etc.