I have written a game using C# monogame android. I want to first transfer it to my personal phone and then upload it to google play possibly? How could i do that ? I saw that it is 25$ is this all the fee there is to it ? Can someone reference a blog to me, or guide me through, that would be helpful. All the information i found on google was kind of confusing.
#Shiro If you have APK file (Android Package executable file) then you can directly copy it on your phone and install it.
Which IDE are you using to develop. Intellij, Android Studio and Eclipse. Connect your phone to the system, enable the debugging in settings.
Click on the Run button, it loads the app to your phone.
You can also use the emulator (using AVD manager) in all the IDE mentioned above. Genymotion(an external emulator) can also be used
Go to your project "YourProject"\bin\Debug and copy yourprojct.apk file to your phone and install it.
For google play watch this tutorial.
Related
I am new to Unity and BLE, so I am having trouble getting Bluetooth connection. I tried following along the solution posted here: BLE device with Unity
But, I can't work it out. I have added the WclGattClientDll to my assets folder, but can't figure out how to connect to my Bluetooth device. My Bluetooth device uses the heart rate service and works properly, since it connects to the manufacturers phone app.
Thanks in advance for any help/suggestions.
This could be down to a permission problem. It is possible to solve this issue in both Unity (pre-build) and Visual Studio (post-build). Here are both solutions:
Solution A: in Unity
Head to Edit > Project Settings > Player.
In the Inspector, open up the tab Publishing Settings.
Under the Capabilities section, make sure that Bluetooth is enabled.
Click on the .gif to expand
Solution B: in Visual Studio (2017)
In your Solution Explorer (Ctrl+Alt+L), expand your project.
Double-click the Package.appxmanifest.
Go to the Capabilities tab.
Again, make sure that Bluetooth is enabled.
Click on the .gif to expand
This will give your app the right to use Bluetooth.
https://github.com/adabru/BleWinrtDll
For my project I created a UWP-BLE wrapper as C++-dll that you can copy into Unity. It works for the Unity-Editor and the Windows standalone version. It has only the basic functions but you can extend it with the rest of the UWP-API if you are willing to write some C++.
I am using windows 10 home and visual studio 2017. I want to develop android apps with xamarin. Hyper-V feature is not available on windows 10 home and I can not afford pro version, So emulator is not installing without hyper-v.
What should I do to develop android app?
Have anybody idea to deploy android app without using emulator and hyper-v?
Thank you in advance!
It's possible to develop Xamarin app without using the emulators. But in that case you'll need to have an Android device to deploy your app on.
Setup Android SDK Manager on your system. Although Xamarin includes a
SDK Manager, you can download it from the following link. Android SDK Manager download
Setup the ADB (Android Debug Bridge) on your system (install Google USB Drivers)
Connect your Android device to the system after you enable USB Debugging(Developer options) on it. Once the device is connected it will give you a prompt to enable debugging. Tap yes and you'll see the option to build to your device as shown in image.
You can try to use any avaliable on windows android emulator. I like to use Bluestack (https://www.bluestacks.com), the steps for use it below:
Install Bluestacks emulator
Launch emulator and wait for load finished
It's your wellcome screen, your application and apps from store will be here
Go to settings > Preferences and check "Enable android debug bridge (ADB)" + "Enable Android input debugging"
One time Setup finished
"Open android adb command promt" and type
adb connect 127.0.0.1:5555
If you have done everything good you will be connected to emulator and ready to debug your application
Good luck!
UPDATE:
As of visual studio 2019, non-hyper v emulation has been stopped.
Old Answer
I am very positive that at the time of VS installation the Visual studio emulators for Android are readily available for download and use, there you can find a good amount of android emulators also it provides you with Android SDK which again can be used to create Android emulators without using Hyper-V
The below link contains all you need to know about Visual studio emulators including on how to install :
https://msdn.microsoft.com/en-us/library/mt228279.aspx
Hope this Answers your question.
Goodluck!
I started a project on Unity and I would like to test it on an Android device, but I am unable to do so. I researched every tutorial out there and couldn't find a solution that worked for me. Note: I have been using Android Studio and I am able to launch apps both through an emulator and a USB phone.
I am pretty sure I correctly chose all the settings inside of Unity
(followed every single tutorial I could find).
Turned on developer mode on phone and tried multiple setting
variations that I could find on the web.
Made sure all the drivers are installed correctly (wouldn't be able
to do stuff through Android Studio if I haven't).
Uninstalled Unity and Unity Remote 5 multiple times.
JDK and NDK seem to be working fine. Tried turning adb server on and
off multiple times. Also I can see my device with the 'adb devices'
command.
I had some issues with MalwareBytes when installing Unity. I did try
granting permissions to every Unity folder I could find, but I think
MalwareBytes could be the culprit.
Has anyone encountered a similar issue? Is there another thing I could try? Any help is apreciated.
EDIT: I switched my VPN to a VPN that allows open source software and I also uninstalled Malwarebytes and replaced it with Avira. Did not fix the issue.
I did not run in exact same issue, but working with Unity remote might be a little tricky.
It may require to launch Unity remote first before launching Unity itself. And I hope did not forget to ProjectSettings -> Editor -> Any Android Device option to be set. I'm talking about Window OS.
I had the same issue today. I also did everything was mentioned in tutorials and nothing helped.
Then I noticed that when I press 'Play' there's a message in the console "Set-up Android SDK path to make Android remote work in Unity". After I went to 'Edit'->'Preferencies' I unchecked the 'Android SDK Tools Installed with Unity(recommended)', then closed Unity, opened it again and checked the box again.
It worked for me, I hope it will help you too :)
When you connect your phone to your PC, you may chose the file transfer option in your Android device, but charge mode worked for me, this is what I did:
1-Make sure that the "Any Android Device" option in Project Settings/Editor, is enabled and close unity.
2-Open the Unity remote app in the phone and connect it to the PC, in charge only mode.
3-Open Unity and run the game
This method worked for me, I hope it works for you too.
I am a newbee to c#. Please treat me as a beginner. I downloaded and installed Ximarian C# and the IDEA on my Windows 10 computer. Now, I want to install it onto my LGA ANDROID Gpad X10.1 so I can study and learn C# when I am not at home; I want to write programs for Android using my Android Tablet. I did some homework and found out I had to go to Security and check unknown devices which I did. I downloaded the Xararianinstaller.dmg file (I can't) figure out where Xamarian keeps the APK file).So the XamarianInstaller.dmg file is sitting in my download folder but it will not execute. Android does not recognize the. Dmg file or know which program to run the installer with.
How do I get the .dmg file to execute? What do I need to do?
Where are the latest APK files kept,how can I download and install them?
I have an LG GLAD X10.1
Android Version 6.0
Kernel 3.4.0
Build MRA5BK
Version: V93020f
Sorry to inform you this, but you will not be able to use your Android device to extract and execute the .dmg file.
Xamarian is a compiler/API that installs onto a Windows/iOS device (which you have done) but it is used to plan, develop and build your projects.
Android does use APK (Android Application Package) file formats to install and run their applications. The confusion you have is that there is some sort of APK for Xamarian to install it native on your tablet. This will not work but what you can do is test your build applications on the go with your tablet with a compiled APK file from Xamaarian from your computer.
Android can not run .dmg file extensions and can run very few renditions of .exe files native but your best bet is to simply build and test/debug on your device. Use the device as an extension to your Computer not a stand alone solution.
Happy Coding.
I've downloaded a zipped project from https://github.com/slodge/face. This project is a wp7 realization for face.com api. I've just started studying silverlight and wp7 applications, so I'm not strong at it. The problem is that I can't load this solution. The error message is "One or more projects in the solution were not loaded correctly. Please see the output window for details"
What do i have to do?
I just opened solution and it works ok. I think you have problem with your environment.
From errors you see it appears you have no SDK 7.1
Please download and install.
Since it's my github account... :)
This project is just a 7.1 (Mango) project - so it should load for you.
If it doesn't then please do check the output window for more help.
If it still doesn't then the project itself is quite simple - the main code is in the faceapi class - and should be simple enough to use even without a project file. If you need any more help with it, then email me (see my so profile for email address) or contact me via twitter #slodge
To get the app running you will need your own API key from Face - see https://github.com/slodge/face/blob/master/SmilieHappy/Helpers/FaceApiSecrets.txt
Also, the team at face.com seemed very helpful when I contacted them!
Stuart
I also encountered same issue like yours. Some project can open correctly and somes are not. The issue is because the tag is only support "WindowsPhone" other than "WindowsPhone71".
So the solution is clear, manually edit the ".csproj" file. Change the "WindowsPhone71" to "WindowsPhone".
This issue does because symbols related to the windows phone framework (7.1 or 8.0) are missing. I think why I meet this issue is due because I install SDK7.1 on Windows Server 2008 R2 (which sdk not support) through "Web" way.
Here is the link how I install the SDK.
How to install the Windows Phone Developer Tools on Windows Server 2008