Can two different browser share one cookie?

You can build a cookie-proxy by creating a Flash application and use Shared Objects (SO = Flash cookies) to store data. Any Browsers with Flash installed could retrieve the informations stored in the SO. But, it’s an ugly workaround. Just don’t share cookies… and find another way to build your website/app.

How to make my Android app appear in the share list of another specific app

Add this code in the activity you want opened first when sharing a content from outside the app, call this method in onCreate() private void onSharedIntent() { Intent receiverdIntent = getIntent(); String receivedAction = receiverdIntent.getAction(); String receivedType = receiverdIntent.getType(); if (receivedAction.equals(Intent.ACTION_SEND)) { // check mime type if (receivedType.startsWith(“text/”)) { String receivedText = receiverdIntent .getStringExtra(Intent.EXTRA_TEXT); if … Read more

Showing ‘UIActivityViewController’ in SwiftUI

The basic implementation of UIActivityViewController in SwiftUI is import UIKit import SwiftUI struct ActivityViewController: UIViewControllerRepresentable { var activityItems: [Any] var applicationActivities: [UIActivity]? = nil func makeUIViewController(context: UIViewControllerRepresentableContext<ActivityViewController>) -> UIActivityViewController { let controller = UIActivityViewController(activityItems: activityItems, applicationActivities: applicationActivities) return controller } func updateUIViewController(_ uiViewController: UIActivityViewController, context: UIViewControllerRepresentableContext<ActivityViewController>) {} } And here is how to use it. … Read more

An URL to a Windows shared folder [duplicate]

I think there are two issues: You need to escape the slashes. Browser security. Explanation: I checked one of mine, I have the pattern: <a href=”https://stackoverflow.com/questions/5796215/file://///server01\fshare\dir1\dir2\dir3″>useful link </a> Please note that we ended up with 5 slashes after the protocol (file:) Firefox will try to prevent cross site scripting. My solution was to modify prefs.js … Read more

How to implement “share button” in Swift

Swift 5: // Setting description let firstActivityItem = “Description you want..” // Setting url let secondActivityItem : NSURL = NSURL(string: “http://your-url.com/”)! // If you want to use an image let image : UIImage = UIImage(named: “your-image-name”)! let activityViewController : UIActivityViewController = UIActivityViewController( activityItems: [firstActivityItem, secondActivityItem, image], applicationActivities: nil) // This lines is for the popover … Read more

How to successfully implement og:image for the LinkedIn

This answer I found on LinkedIn forums might be of help to you: Guys, I’ve spent a whole day trying different things. What worked for me is using the mata [sic] tags as following: <meta prefix=”og: http://ogp.me/ns#” property=”og:title” content=”{Your content}” /> <meta prefix=”og: http://ogp.me/ns#” property=”og:type” content=”{Your content}” /> <meta prefix=”og: http://ogp.me/ns#” property=”og:image” content=”{Your content}” /> … Read more

How to take a screenshot of a current Activity and then share it?

This is how I captured the screen and shared it. First, get root view from current activity: View rootView = getWindow().getDecorView().findViewById(android.R.id.content); Second, capture the root view: public static Bitmap getScreenShot(View view) { View screenView = view.getRootView(); screenView.setDrawingCacheEnabled(true); Bitmap bitmap = Bitmap.createBitmap(screenView.getDrawingCache()); screenView.setDrawingCacheEnabled(false); return bitmap; } Third, store the Bitmap into the SDCard: public static void … Read more