wallpaper service in iPhone - iphone

i want some information about iPhone api. basically i'm a android developer .now i want to port my android application to iPhone. my application is live wallpaper. is there any way to apply live wallpaper service in iPhone.if possible means?
1.how to get touch event in home screen.
2.what are api i need to fallow in iPhone.can i able to use any of the iPhone background service for that.(wallpaper service)
3.if i done like this app store will accept my app?.
guide me thank you.......

You can save images to Library and give instructions to user on how to set it as wallpaper. You cannot set a wallpaper programmatically. Your app will probably be rejected if you use any methods from private API.

Related

Turn off app in IOS through PhoneGap API

I have a html5 app for iphone using phonegap. I check for internet connection for the necessary first update, how do I turn of the app if the user does not have an internet connection? Thanks in advance. As I said I have full access to phonegap api!
if you want to deploy your app to the app store, you can not update the app under the covers. You have to submita new version to apple and let the users update your app.
If you just want to know wether your device is online you can use the Phonegap online offline events. See: http://docs.phonegap.com/en/1.4.1/phonegap_events_events.md.html#online and http://docs.phonegap.com/en/1.4.1/phonegap_events_events.md.html#offline

iPhone: Access Camera and Album from Web app

I want to develop a web app using html5, js. One of the feature is to launch device Camera and record video, take a picture and access photo album. Is it possible to access via web app if i develop? I saw in the forums that, it is saying not possible in some places and it is possible in some places. I would like to know, is it really possible to access directly camera and album etc. ?
Please suggest!
Thank you!
It's not possible to access phone camera using Web app, as the "Web APP" typically runs in the browser of device.
Though there are some frameworks (like Phonegap) allows you to embedd your web app into native container. With this approach and added libraries from such framework you can access some of those native API's and Device Hardware.
One Possible solution is,
Create one app and distribute it using app store
using your webapp, you can connect to above app using url-scheme
http://code.google.com/p/iphone-photo-picker/
go to above link, where you can find complete code for it.

is it possible to continuously track gps location in phonegap app(iphone) in background(means when app is not running)

I am working on an iphone app which needs to pop up a notification when the user reaches some particular place. I am developing the app in phonegap. A function is available in phonegap to track gps location continuously i.e. "geolocation.watchPosition", but I want to know: will the function keep on tracking the location even if the app is not running(exited state)?
I recently came to know that for the desired functionality I have to create a phonegap plug in and embed it to the project. This worked for me.
you can do it if your app is runing in background but its not possible if the user stops the applicationcheck this post Is it possible to run a background process on the iPhone using private APIs?

how can I build and iphone app which tracks a users location uploads the coordinates

I am writing an app for iphone to go along site my website which tracks the location of the user. Can anyone give me any pointers on where to begin. I am very good with mysql and php etc but I am a novice with iphone apps.
The coordinates from the app need to be able to upload to my api which I have set up.
Thanks
What you probably want to do is create a simple app that can run in the background.
http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html
During background execution you cannot do anything really too much with the network so I suggest logging it using CoreData and then on resume/startup to send an HTTP post to a PHP page that logs it into your DB?
You might want to check out the HTML5 geolocation API. Also reading "Building iPhone Apps with HTML, CSS, and JavaScript" is recommended. I read the same book for Android and was very pleased. Building your app in HTML5/CSS/JS will also mean that it will probably work on other platforms.

IPhone launch application with home button

do you know in which ways is it possible to launch an application?
I know that it is possible by clicking on the icon, and it is possible by clicking an url with a cistom protocol,
Anyone know if there ae more ways?
For example is it possible to make an application be launched when the users touch 3 times the home button?
or when the user start a call?
thank you
Paolo
The only ways that it is possible to launch an application are the ways you describe:
Clicking the application's icon
Via a custom URL scheme
The above applies to non-jailbroken iPhones. I would imagine it is techinically possible to hack a jail-broken iPhone to launch apps in other ways, but naturally such functionality would not be permitted on the App Store
Jailbroken phones can use libactivator. It has a set of predefined touch and physical button events that can start an application. Of course it is not viable if you plan to publish your app in the store.