sharing
Sharing classes between projects in xcode/objective-c
If you have two or more products that are going to share a good amount of common code, like a suite of products, you might want to consider creating just a single xcode project, and then add a different target for each product that will be built from both shared and product-specific code. With a … Read more
UIActivityViewController customize text based on selected activity
I took this answer and made a simple class for it. The default message will be seen by sharing outlets other than Twitter, and for Twitter words within the hashWords array will appear with hashes if they are present in the default message. I thought I would share it for anyone else who needs it. … Read more
Sharing images and text with Facebook on Android
Why? Because they are Facebook and can permit to themselves such bugs. So, they expect only images upon type is “image/“. If the type is “text/plain”-then a URL should be contained in the message. Don’t use .setType(“/*”); Otherwise use their SDK. But in this case you’ll sacrifice simplicity and flexibility of your application.
What’s your favorite cross domain cookie sharing approach? [closed]
My approach designates one domain as the ‘central’ domain and any others as ‘satellite’ domains. When someone clicks a ‘sign in’ link (or presents a persistent login cookie), the sign in form ultimately sends its data to a URL that is on the central domain, along with a hidden form element saying which domain it … Read more
How to code sharing between Android and iOS
Note that I almost exclusively work on “business/utility/productivity” applications; things that rely heavily on fairly standard UI elements and expect to integrate well with their platform. This answer reflects that. See Mitch Lindgren’s comment to Shaggy Frog’s answer for good comments for game developers, who have a completely different situation. I believe @Shaggy Frog is … Read more
Combine ASP.Net MVC with WebForms
Combining web forms with MVC is entirely possible. See this blog post by Scott Hanselman for an introduction. Sharing master pages: see this StackOverflow question routing: In ASP.Net 4.0, routing has been enabled for web forms page routes (scottgu’s blog)
Sharing & modifying a variable between multiple files node.js
Your problem is that when you do var count = require(‘./main.js’).count;, you get a copy of that number, not a reference. Changing count does not change the “source”. However, you should have the files export functions. Requiring a file will only run it the first time, but after that it’s cached and does not re-run. … Read more
How to Share Entire Android App with Share Intent
To add the Facebook, Twitter etc. share options, the user just needs to have those applications installed. It’s up to other applications what type of Intents they will tell the system they can handle. Then a basic ACTION_SEND intent will get picked up. Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, “Hey check out my app … Read more
Share SQLite database between 2 android apps?
UPDATE: The method described below relies on android:sharedUserId, deprecated as of API level 29 (Android 10). You certainly can share a single database between 2 apps. In order to share data between apps (provided they are issued by the same publisher) you will need to specify a shared user id in the AndroidManifest.xml of both … Read more