Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Publish or Deploy Xamarin android app to my phone samsung galaxy s3

I am new to xamarin Andriod. I have done one simple application (Hello world on button click) in VS 2012 after installing xamarin studio and tested it in emulator (for the AVD created similar to Samsung Galaxy S3). Can anyone Please tell me the steps to move this application (.apk) file to S3 phone and run it on S3 phone.

like image 684
habeeb afvan Avatar asked May 19 '15 10:05

habeeb afvan


People also ask

How do I create an APK file in Xamarin Visual Studio 2019?

To create the APK file, right-click the Xamarin. Android project in the Solution Explorer and select Archive... This will open the Archive manager and begin archiving the project, preparing to create the APK file.


3 Answers

You can do this in 2 ways.

  1. Connect your phone to PC using USB Cable. If succesfully connected, you will find your device in emulators list. Select your device and Run. Application will launch on your device.
  2. Other way is to manually create a .apk and and copy that file on to device and install it. This method is lot time consuming and not suitable for development purpose. Details at : http://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/publishing_an_application/part_1_-_preparing_an_application_for_release/
like image 68
Piyush Khandelwal Avatar answered Sep 22 '22 20:09

Piyush Khandelwal


  • Just set the solution to release mode.
  • Right Click your Android Main Project -> Export Android Package(.apk)
  • Go to the bin\release Folder, you could find your app in apk format. Use application with Signed extension(Signed.apk)
  • Install the apk on your device.
like image 27
Anees Deen Avatar answered Sep 21 '22 20:09

Anees Deen


Here are a few steps you will need if you follow Piyush Khandelwal answer above:

First of all...you need to get your phone into developer mode
To do that...Go into Settings
Scroll to the bottom to About Phone
Find the Build Number and tap it seven times.
(this enables the developer options in settings)

Now you will have Developer options in Setting

Go into Developer options and check USB debugging..

Now plug your phone into your PC...
You will be presented with a Connect to PC dialogue Box.
Select the Install Driver radio button
Check the Enable USB debugging check box.

Now start Visual Studio and your phone should be an emulator option.

like image 39
Chris Catignani Avatar answered Sep 19 '22 20:09

Chris Catignani