I have written a simple login page using xamarin forms. When I try to deploy it on emulator, the emulator opens but my app is not visible.
1) Does it take time for the app to be deployed? Or would it appear on start up?
2) Should warnings be considered? I have no errors though.
Most Android emulated devices are slow. I have found that some of them simply won't render an app. This is not an indication that the physical device, which you are trying to emulate, won't work however. Try testing what works in an emulator and then creating a copy of what works in the device manager. Then make slight changes that are closer to the target device in the copy. Deploy every time to ensure that it is working. This process takes patience. If you are fortunate enough to have the physical device, debug through the USB connection.
Related
I created a simple Xamarin ANDROID App. I set up my phone to development mode and deployed my app to the phone via USB.
The app continues to work on the phone as a regular app.
I then created a Xamarin MOBILE App which was more complex. I deployed it to my android phone via Visual Studio debug mode as with my previous app and it ran perfectly. But when I attempt to run the app directly from my phone, it won’t run. The first screen partially loads without anything on it and then disappears. My phone puts a message up saying that my app keeps stopping and would I like to close the app. I make use of a file placed in Assets. Might this be an issue when not debugging from the computer?
Might there be a difference between deploying a xamarin android app and a xamarin mobile app.
A minor thing is that it has added the name ‘.droid’ to the name of my app which I would like to get rid of.
I am new to deploying apps to a phone
I have solved it thanks to your helpful prompts.
I looked at the error logs and the error was ‘FATAL’ in a mono dll. This was indirectly helpful in that I knew it wasn’t the logic in my code.
I also made the discovery that running my app directly in the emulator also failed in the same manner as on my phone. I also ruled out that it might be an issue with transferring an asset -a file the my app uses- as I bypassed using the asset.
(Running my app via visual studio in both the emulator and my phone worked perfectly.)
I then decided to re-house my forms and classes in a new template as I suspected it was corruption in some xml configuration setting that didn’t bother Visual Studio. This worked great and the app now runs stand alone on the phone (and emulator).
I am currently developing an Android app without an Android device.
Therefore, unwillingly, I am using Android Studio's emulator as my only source of testing.
However, half the time I use the emulator, the program glitches and the app either stops or does not trigger the functionalities that I put in.
However, the other half of the time (I did not change any line of code when doing this), I'll simply run the emulator again and the app will function normally.
But now I am concerned about this because I am not certain if this is only a bug in the emulator or if the same thing will happen in a real device. Since I do not have an android device, there's no way for me to text this in a real setting.
Can I just ignore this glitch? or is this actually an issue?
I decided to try and create an Android app using Xamarin in Visual Studio 2015. However, when I click on Debug, the emulator opens and there is only a black screen. No Android logo or anything.
I already scavenged Stack Exchange among other sites for solutions, such as checking or unchecking Use Host GPU. But nothing seems to work.
Here is a screenshot of the configuration
What could be the problem?
Thanks
Have you consider trying Samsung Test Lab? every time i run an emulator it's a pain, and it's super slow, the best way i found that works for me was Samsung Lab you can test your app on a real device i think this is the best way to test apps
you can connect the device via adb using adb connect localhost:port or adb connect 127.0.0.1:port
So I'm using an Android emulator (the stock one) to test out my react native application I'm building.
I can load my app on the emulator using react-native run-android and then my app loads fine. However I can only ever do pretty much one interaction, such as pressing a link, after that my app just doesn't respond and I have to restart my react packager to get it to reload. Are there any reasons why this might be happening and how this can be resolved please, it's making it super hard to develop any project.
There is no strenuous code in place and runs fine on my IOS emulator.
I've been having similar issues, especially after rebooting the emulator. I've found that the best solution is to reset the emulator and check the wipe user data box. You then need to wait until the emulator is fully booted before starting the packager. This works for me most of the time in 0.14, but isn't foolproof. I would also check the chrome debugger and make sure there aren't any IOS exclusive parts of the code causing issues, but I'm guessing you've tried that already.
I'm a newbie for Android development. I want to run a Hello World on the emulator in Eclipse as my starting point, but the magic words never show up. I just follow the tutorial, Launch the Android Virtual Device Manager, Create a New AVD and Click Run.
But Everything is fine if it runs on a real device. Is there any special setting on Mac?
Please help.
You have to wait a long time util it appears. I'd advise you to use USB debugging and a real device. It works much faster than the emulator. In addition you can use the app with the normal gestures and all the sensors like camera etc.. But as I said: it's much faster than the AVD.
Check Console tab in Eclipse for information about APK upload and installation progress.
Is there any special setting on Mac?
No there is not. Settings are pretty much the same on all platforms.