Reading NFC Tag in Unity3D - c#

I would like to get the text string saved on an NFC tag in Unity. I'm not experienced with developing for Android, it seems there was already success doing this but it seems to involve extensive use of the Android SDK and Eclipse, neither I'm familiar with.
I found also this thread though the source code is incomplete and I'm not sure how to declare the variables used in this if statement: http://forum.unity3d.com/threads/162834-AndroidJavaObject-as-array-for-NFC-access?p=1115826&posted=1#post1115826
Any usings that I need to import in order to use this snippet and the "var" type variable mentioned in the first post?
OP hasn't been answering all the other questions for over a year now.
I hoped someone here might have an answer for NFC in general.

Pablo from Twinsprite has put a full working example project on GitHub
And he has written a very detailed blog-post about how to create the required plugin yourself.
Works great for me!

For someone else reading in the future, they have an updated link:
The new Link
I am working with this right now and I will keep you updated

Related

BLE scanning and read value from pc, how can i solve 'unknown data' issue?

I'm a beginner in c#, I'd appreciate your help.
Here's what I use:
-nRF52840 dk (it is developed by segger embedded studio)
-pc bluetooth (window 10)
Im trying to create a program that scans Ble and receives a value(continuously sent by ble). I have been looking at the Windows-universal-samples.
but when i try to read value, it doesn't work.
enter image description here
How can i solve this problem? Thank you for reading it, and if you know how, please share it.
The LED Characteristic (0x1525) appears to be controlling LED 3 for the nordic_blinky example. My thought is that this might be a write only characteristic and so that is maybe why you are getting the error.
As others have pointed out, it is difficult to know with the little information you have shared. A link to the sample code you are following would be a helpful start.
Also, have you tested the nordic_blinky with general tools? For example, in chrome you can go to the URL: chrome://bluetooth-internals/#devices. It will tell you if the characteristic is readable and writable. Being able to share that would be useful information for others to help. If you are able to read or write in Chrome, then we can be more confident the issue is with your code. Again sharing it working in Chrome and your code that is failing will be helpful for others to assist as to where the issue might be.
Try these experiments and update the question would be my suggestion.

C# view source code of a particular .NET class

I browsed through some questions and this one stood out as the better one:
.Net Classes and their source code which pointed me to this place here: Microsoft Reference Source Server.
I tried everything the site says, downloaded a file that I cannot open from there and at some point ended up with a .pdb file in my source folder for the symbol cache that I could not open with a multitude of tools I looked into.
So this is my last resort to find an answer to my question. Out of pure curiosity (and lack of a better way to understand some stuff) I want to open a particular class from Microsoft (namely I wanna look into RichTextBox and maybe the classes it inherits from) but I simply cannot find a way to make this work for me. I want the original source, not a decompiler product because, well because I mainly need to understand some stuff, not see random variable names. I appreciate any help that may get me around my stupidity and clumsiness, as well as the right tools to do so (if any other than VS).
Note that I am using Visual Studio 2012 and yes, I went over a guide covering this specific version instead of the guide on VS 2008.
The "download" links on this page: http://referencesource.microsoft.com/netframework.aspx should work. However try downloading them via Internet Explorer; my Firefox attempted to download an .aspx file instead of the installer itself for some reason. (EDIT: as #ParagMeshram pointed out, just rename the netframework.aspx to netframework.msi as a quick fix if necessary)
In addition, here's a link to the source hosted by dotnetframework.org: http://www.dotnetframework.org/default.aspx/4#0/4#0/untmp/DEVDIV_TFS/Dev10/Releases/RTMRel/wpf/src/Framework/System/Windows/Controls/RichTextBox#cs/1305600/RichTextBox#cs
I can't say for certain if it's the latest greatest, or what you would be compiling against exactly, but should give you a good idea of how it works.

C# developer starting SICP - Suggested Dev Environment?

I've finally started reading SICP.
I downloaded GNU/MIT Scheme it appears that I need to work in the Edwin editor which I'm sure is great when you get used to it, however I'd really prefer not to have to learn a new editor while also learning Scheme.
I was hoping there would be a Visual Studio pluggin or something similar.
I'd actual be happy just using notepad++ and just compiling using the command line.
Has anyone got any suggestions?
Take a look at this question (a bit out of date, DrScheme is now called DrRacket).
I also see this page, which looks reasonable.
This page asks about DrRacket directly.
Edwin is pretty much the same as emacs, and that's worth learning. Any text editor will do. If you're really looking for the gui look and feel, try DrRacket? http://www.racket-lang.org/
If you are writing in mit-scheme, and are familiar with Emacs there is xscheme for Emacs
Neil Van Dyke also has a page where he has the book in texinfo format for emacs users.
sicp texinfo
You also can find videos of lectures for the book from the 80s on youtube or going to the MIT ocw site.
video lectures

Edit M4V Video Metadata

So far my google-fu has failed me, so I'm hoping someone here can help:
How can I programmatically modify video metadata (specifically in my case, m4v video files)?
I'm most familiar with Ruby and C#, but I can be fairly language agnostic on this -- that is, if there's a specific language that is good at modifying file metadata, I have no problems spending the required time to learn it well enough to accomplish what I'm trying to do.
This question is pretty similar to:
View/edit ID3 data for MP3 files
I have searched for the library so you dont have to:
http://download.banshee.fm/taglib-sharp/
Even tho it has linux on its name it is for mono, so it should compile fine in Visual Studio :)
Hope it helps.
Consider asking http://www.ffmpeg.org/contact.html in #ffmpeg
I don't think they use ID3 tags.

C# Code Formatter for Linux and/or MonoDevelop

MonoDevelop 1.0 doesn't appear to have a code-formatter like Eclipse does for Java. Is there a preferred shell script (or MonoDevelop add-in?) that you've found to work well?
At the moment, source code formatting in MonoDevelop is marked as a future enhancement:
https://bugzilla.novell.com/show_bug.cgi?id=321946
In the meantime, you may want to check out Artistic Style for C# formatting:
http://astyle.sourceforge.net/
I'm planning to see how this might be wired up as an external tool within MonoDevelop. If I get to that, I will edit my answer with the information. UPDATE: I don't have enough reputation to leave a comment, so I'll make one here: Nice job, Dustin, and patch for MonoDevelop too :-) I wonder how recent the version is that is included with Ubuntu... Either way, I'm glad you found something that works for you.
Thanks, Brandon. I submitted a patch to MonoDevelop. The issue with MonoDevelop add-ins is that there is a mono compiler bug that doesn't handle anonymous delegates correctly. (bug report: https://bugzilla.novell.com/show_bug.cgi?id=394347)
The patch/workaround is to just cast the anonymous delegate to the proper delegate type. (bug report & patch: https://bugzilla.novell.com/show_bug.cgi?id=369538)
I'm running with the patched version now and am able to execute AStyle on the currently edited document by simply creating a new External Tool setting with the following settings:
TITLE: A_Style (put in an underscore _ to enable hotkeys)
COMMAND: astyle
ARGUMENTS: ${ItemPath}
Then, just execute it using Tools->AStyle (or ALT-T, S)
9/25/08 Edit -- I just put up a blog posting on how to patch MonoDevelop 1.0 and get it working with AStyle: http://dustinbreese.blogspot.com/2008/09/auto-formatting-code-in-monodevelop-10.html
It's a nice programming exercise to write your own formatter . I wrote one for C++ , and it was a nice challenge . You could learn a lot by writing it :)

Categories

Resources