Home screen (now a AndroidX Fragment) of the nearbysharing app for android
Settings screen (now a AndroidX Fragment) of the nearby sharing app fro android
Currently working on moving the #nearshare #android app from activities to fragments and navigation apis.
10.01.2026 18:14
๐ 0
๐ 0
๐ฌ 0
๐ 0
Charm
We make the command line glamorous
Uuh, nice!
I was looking for a modern-looking tui library to create some management tools for my server.
I especially liked the design of these go libraries (haven't used them though)
charm.land
06.01.2026 22:23
๐ 0
๐ 0
๐ฌ 0
๐ 0
Setup your Windows machine
I just noticed that some well-known #windows #firewall rules were gone which caused some issues in local-network stuff including #nearshare.
Resetting the firewall rules did the trick for me.
This is now part of the #nearshare setup docs:
nearshare.shortdev.de/setup/
09.11.2025 17:53
๐ 1
๐ 0
๐ฌ 0
๐ 0
Code snippet showing a single c# source-file that serves a "Hello World" json.
#dotnet "nano" api: A simple api handler written in #csharp that can be deployed to #vercel alongside your #nuxt (etc) app using .NET 10 "run app.cs" and NativeAOT.
(The usings could go away using GlobalUsings via a nuget package)
18.10.2025 20:51
๐ 1
๐ 0
๐ฌ 0
๐ 0
Last thing to do: Guess some names based on the values and we're done!
```
struct SendDataProgress {
NearShareStatus Status;
UInt64 TotalBytes;
UInt64 SentBytes;
UInt32 TotalFiles;
UInt32 SentFiles;
};
```
05.09.2025 14:03
๐ 1
๐ 0
๐ฌ 0
๐ 0
Voila:
```
pinterface({b5d036d7-e297-498f-ba60-0289e76e23dd};enum(NearShareStatus;i4);struct(SendDataProgress;enum(NearShareStatus;i4);u8;u8;u4;u4))
```
05.09.2025 14:03
๐ 1
๐ 0
๐ฌ 1
๐ 0
Because the iid of a generic interface in the #WinRT type-system is the uuid5 of it's signature, we can brute-force the layout of `SendDataProgress` by matching against the known iid (40772286-cf1a-5cbd-9d74-4137587691d5).
05.09.2025 14:03
๐ 0
๐ 0
๐ฌ 1
๐ 0
Based on the published debugging-symbols, we know that `ShareDataWithProgressAsync` returns an instance of `IAsyncOperationWithProgress<NearShareStatus, SendDataProgress>`.
`NearShareStatus` is a simple enum, but `SendDataProgress` is a struct with unknown layout.
05.09.2025 14:03
๐ 0
๐ 0
๐ฌ 1
๐ 0
The logic for Nearby Sharing on Windows is implemented in `cdprt.dll` and can be called via `ShareSenderBroker.ShareDataWithProgressAsync`.
Sadly, this method is not documented so we have to use some reverse-engineering magic to use this api.
05.09.2025 14:03
๐ 2
๐ 0
๐ฌ 1
๐ 0
GitHub - nearby-sharing/windows: [WIP] Utils for Nearby Sharing on Windows 10 / 11
[WIP] Utils for Nearby Sharing on Windows 10 / 11. Contribute to nearby-sharing/windows development by creating an account on GitHub.
Working on a small util app for #nearshare on #Windows to simplify the usage of Nearby Sharing on Windows (e.g. send files from your clipboard, drag'n'drop, etc).
It's a #WinUI 3 app on #UWP.
github.com/nearby-shari...
#dotnet
05.09.2025 14:03
๐ 2
๐ 1
๐ฌ 1
๐ 0
Search and explore code
Fortunately the #nearshare beacon format is not on the default deny list!
cs.android.com/android/plat...
13.08.2025 13:08
๐ 0
๐ 0
๐ฌ 0
๐ 0
I just tried the `neverForLocation` #android permission flag for the `BLUETOOTH_SCAN` permission so I don't have to request location permissions anymore.
Sadly the documentation is not very clear on which beacons will be filtered out...
13.08.2025 13:08
๐ 0
๐ 0
๐ฌ 1
๐ 0
Nearby Sharing android app using a modal SideSheet dialog
Nearby Sharing android app using a detached modal SideSheet dialog
Time to work on the UI of #nearshare again โจ
I'm thinking of replacing the `BottomSheet` with a `SideSheet`.
This would give more screen space but still be a modal dialog.
What do you think?
Do you like the (1) normal or (2) detached style more?
#dotnet #android #airdrop
08.08.2025 21:57
๐ 1
๐ 0
๐ฌ 0
๐ 0
All apps using the Windows.Gaming.Input namespace will search the registry for mappings and detect the Stadia Controller.
03.08.2025 19:23
๐ 0
๐ 0
๐ฌ 1
๐ 0
By generating the layout with code like that has the benefit of .NET hotreload.
0.5s hotreload vs 30s rebuild is not too bad ๐
Still not Jetpack Compose though...
07.06.2025 09:38
๐ 0
๐ 0
๐ฌ 0
๐ 0
Csharp code snippet from an AppCompatActivity.
Only the call to SetContentView is visible.
Instead of specifying a resource id, the layout is generated by code while abusing some syntactic features in csharp.
Can't wait for extension indexers in #csharp!
This would finally remove the boilerplate parentheses from my #android layout...
07.06.2025 09:38
๐ 0
๐ 0
๐ฌ 1
๐ 0
Imagine you could write a native #windows #winui app in pure #typescript with simple tooling and no big setup.
Would you like to do so?
19.05.2025 08:10
๐ 2
๐ 0
๐ฌ 0
๐ 0