Android singleTask or singleInstance launch mode? [closed]

From the Application Fundamentals page of the Android dev guide: By default, all the activities in an application have an affinity for each other — that is, there’s a preference for them all to belong to the same task. A “singleInstance” activity stands alone as the only activity in its task. If it starts another … Read more

Android Respond To URL in Intent

I did it! Using <intent-filter>. Put the following into your manifest file: <intent-filter> <action android:name=”android.intent.action.VIEW” /> <category android:name=”android.intent.category.DEFAULT” /> <category android:name=”android.intent.category.BROWSABLE” /> <data android:host=”www.youtube.com” android:scheme=”http” /> </intent-filter> This works perfectly!

How to detect first time app launch on an iPhone

– (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { if (![[NSUserDefaults standardUserDefaults] boolForKey:@”HasLaunchedOnce”]) { [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@”HasLaunchedOnce”]; [[NSUserDefaults standardUserDefaults] synchronize]; } return YES; }

tech