Trending
Lukas Kurz's Avatar

Lukas Kurz

@shortdev.de

Fullstack @dot.net developer

10
Followers
31
Following
19
Posts
27.11.2024
Joined
Posts Following

Latest posts by Lukas Kurz @shortdev.de

Home screen (now a AndroidX Fragment) of the nearbysharing app for android

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

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
Preview
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.

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
Preview
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 modal SideSheet dialog

Nearby Sharing android app using a detached 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
Preview
Registry data for game controllers - UWP applications Learn about the data that you can add to the PC's registry to enable your controller to be used in UWP games.

There's even official documentation!

learn.microsoft.com/en-us/window...

03.08.2025 19:23 ๐Ÿ‘ 0 ๐Ÿ” 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
Preview
GitHub - ShortDevelopment/stadia-winrt: Use your stadia controller with GamePass and UWP Apps Use your stadia controller with GamePass and UWP Apps - ShortDevelopment/stadia-winrt

Do you want to use your #Google #Stadia controller with your #windows #gamepass and #uwp apps?

No problem: Just install this simple registry patch:
github.com/ShortDevelop...

03.08.2025 19:23 ๐Ÿ‘ 0 ๐Ÿ” 1 ๐Ÿ’ฌ 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.

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