CSharp


Native Android Receive Text from Other Apps in Unity
Android provides a native share functionality to handle text or multimedia sharing. Any app can trigger an intent along with extra params to share a text. To receive the text or show our app in the sharing intent list handled by Android, we majorly have to do two things. Register Intent Filter in Manifest file. Extract text from the Intent object shared by the other app. read more
26 Jun 2021
Custom Android Manifest File in Unity
The Android manifest file describes essential information about your app to the Android build tools, the Android operating system, and Google Play. Every Android app or unity app running on the Android platform must have a Manifest file. read more
29 May 2021
Typecast Android Object in Untiy
We can convert one Android/Java object to another by just using AndroidJavaClass and AndroidJavaObject. We can use java.lang.Class and its two functions forName and cast to typecast it to the desired Android/Java object. read more
28 May 2021
Native Android text sharing to Whatsapp contact in Unity
Direct accessibility is a feature that usually boosts the numbers as it reduces the number of clicks in an app. Sharing your score directly on some app can be one of them. read more
03 Dec 2020
Partial class in C# (partial modifier)
A partial class is a special type of class where a single class can be split into multiple '.cs' file and while compilation, all the functionalities of same partial classes written in different '.cs' files will be merged and then compile it. read more
29 Mar 2020
Native Android image sharing in Unity using FileProvider
Since Google changed the sharing way using FileProvider to make it more secure, we can not share the file object directly to any other Application. We need to use the FileProvider and grant read URI permission to make it accessible for any other app. read more
28 May 2019
Native Android text sharing to particular app in Unity
Direct accessibility is a feature that usually boosts the numbers as it reduces the number of clicks in an app. Sharing your score directly on some app can be one of them. read more
14 Aug 2018
Native Android image sharing in Unity
As the number says, an image gains more attention than a normal text while sharing. It’s better to challenge a player with your own high score screenshot in games instead of sharing just a plain text. read more
10 Aug 2018
Native Android text sharing in Unity
This is a very common requirement in any unity app targeting Android platform to share the high score or challenge other players with a text message or a screenshot of the high score. The sharing can be done via any of the app available on the user’s device which supports sharing. read more
29 Jun 2018
Native Android in Unity
While developing unity games in C# targeting android platform, we always want to use few native android features in our game. These features can be showing notifications on certain actions in the game or can be sharing the high score with other players and inviting them to try our game using android native share. read more
22 Jun 2018