Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development > iPhone SDK Development - Advanced Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 07-15-2011, 07:10 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 1
pavan_sistla is on a distinguished road
Default To know which application started

Hi,


I want to know which application is launched i.e. my own application needs the information of application which was started.

How to interfere in b/n OS and App launch.


Thanks,
Pavan.
pavan_sistla is offline   Reply With Quote
Old 07-19-2011, 01:52 AM   #2 (permalink)
Registered Member
 
macoholic's Avatar
 
Join Date: Dec 2008
Location: around a Mac...in Pune,India :)
Posts: 137
macoholic is on a distinguished road
Default

The sand box nature of the iPhone Applications prevent info sharing between applications.

To identify when your application is launched looke into the life cycle methods of the application...typically the ones in the app delegate!!
macoholic is offline   Reply With Quote
Old 07-25-2011, 01:32 PM   #3 (permalink)
Registered Member
 
Join Date: Mar 2009
Location: I'm a Brit-pat.
Posts: 171
coulls is on a distinguished road
Default

Quote:
Originally Posted by pavan_sistla View Post
Hi,
I want to know which application is launched i.e. my own application needs the information of application which was started.
A way I'd share information like this would be to use what's called a "Custom Protocol Handler".

Imagine your app is App A, and the second app is App B.
In App A, you register the custom protocol handler "appA://" and look for a component of that Url called "notify" for instance... and when App B starts, it tries to open the URL "appA://notify/appB".

Edit: Look at this for example
http://iphonedevelopertips.com/cocoa...rl-scheme.html

Just watch that if App A is not running, then iOS will launch A and bring it to the front.

Cheers,

Coulls

Last edited by coulls; 07-25-2011 at 01:33 PM. Reason: Added Example URL
coulls is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 380
17 members and 363 guests
Absentia, AyClass, Diligent, dre, givensur, hussain1982, jbro, jPuzzle, momolgtm, Newbie123, Paul10, revg, skog, skrew88, taylor202, tomtom100
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,643
Threads: 94,110
Posts: 402,858
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Diligent
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:45 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0