I am using Visual Studio 2015 Community version.
I am creating app using Cordova for android mobiles that need an internet connection during access the app.
Everything running fine when I run my app in computer / laptop android emulator but when I install my app in mobile by running that app it disconnect the internet connection and without that my app can't run.
what to do?
I have came across these solutions but no one helps me to solve this problem.
Link 1
Link 2
Link 3
Link 4
Related
I have build android app on cordova -v9, it works completely fine till android 8 but when run on android 9 it only runs on emulator fully functional but when run on real android device, final submission of data to database is not done. Problem is I don't see any error in it. I think ajax request is not completed with database. Can anyone suggest some solution to it.
I have created a app for getting results from OMDB to show ratings. It is working fine in browser when I am using ionic serve and also when I am using ionic cordova emulate browser (For android device). But the issue is when I am converting it to the android app (Via ionic capacitor add android, ionic capacitor copy android) and checking in my android device then it is not working there.
My device has installed latest version of android version with latest MIUI version.
TIA.
I have tried to find the solution but there is no solution found to me for this.
I am using HTTP call for mobile device and HTTPClient call for web browser. I am doing it in my localhost.
I expect that if it is working with cordova emulate browser then it must be working with android device
9 times out of ten this is because you haven't used https for the API feed.
http is disabled on android since a while back, unless you set up special security rules.
The rest of the time it's a CORS issue.
I have installed Xamarin in Visual studio 2015 and I have android and ios application within same solution file. when I am trying run android project in my local machine, I got error 'click retry to run the emulator in elevated mode. you do not have permission to modify internal Hyper-V network adapter settings,which are required to run the emulator'. So I clicked on "Retry" - it said windows packages changed to machine and I click on 'Yes', after that my local machine internet connection was gone. with the help of network engineer,Internet connection came back, my question is how can I run android application to my local machine without Hyper-V error.
I am a .Net developer and learning Mobile Application development, please can you help me out and suggest me that what I need to do?.
Thanks.
You did the right thing by retrying emulator in elevator mode, That is supposed to create internal switches to run your emulator and set up internet connection for it. Shouldn't affect your internet connection.
I'll advice
1. Try running the emulator again and let it create the adapters as Visual studio android emulators run in Hyper V.
Test app with a physical device connected to your computer
I am new to mobile development, a few days ago i install Xamarin and Android SDK. I have just created a blank app and when i try to run it says built was unsuccessful and shows the above message.
But when i open the main.axml i can see Nexus one with android 7.1 is selected. I did change these option but the same error.
I did try everything mentioned here on stackoverflow and on Xamarin but none worked for me. i did update Xamarin and downgrade JDK to 8 from 9 as it was mentioned somewhere on the blog but still i am out of luck. its been more than 5 days i am trying different solutions and finally i have to put it in front of the professionals.
Its just an empty app not even a single line of code.
I can give teamviewer access if necessary.
Thanks.
You must install an emulator on which you will run the application. Or connect physical device. There is nothing to do with Xamarin or SDK versions. Your app compiles OK. You just need some device (virtual or physical) to run your application.
My Android App is running successfully in android studio emulator, but after installing the same apk file in my mobile it is installing and it is shows the following error
Unfortunately app stopped
while I try to open it.
how to fix? My android version is 6.0(both emulator and mobile).
I suggest you check the permissions of your application. Since version 6 of Android, you must request the permissions on demand.
Look at this topic:
https://stackoverflow.com/a/34722591/3665983