I have made an app in flutter with sql server database. I run my app using simulator and work fine there. After that, I make the apk installer by 'Flutter build apk' in terminal, and copy the apk to my real android device to install my app there. When I run my app in my real device, my app can not connect to database SQL Server (2012 Version). Is there any plugins that I should install in my real android device so my app can connect to SQL Server..?? Because when I run my app in simulator or even in developer mode directly to my real device, it works fine in all features.
Please help me
thanks
Heri
Related
I have an app which retrieves fine location. It does work pretty fine when I run the app from Android Studio and it installs on the device. But If I generate an apk file and install it to the phone, the location service doesn't work with the very same app. I couldn't understand where could be the problem on my package genaration.
I built a react-meteor android app, which I signed with Android Studio for a release.
The app is loading with a splash screen and then stuck in den loading screen of my React Komposer ( I guess the subscription does not get ready ).
However running the app via:
meteor run android-device --mobile-server https://fuldacity.de
runs the app successful, as well as running from signed debug apk.
I really do not now where to start to debug this problem. I guess there is a possiblity to get some error logs out of Android Studio? I would be really glad on any inspiration on how to tackle this problem!
Furthermore I have the feeling it is connected to my setup. I have a domain hosted by domainfactory, where I also get my https certificate from. The domain is then redirected to Heroku, where my App is hosted. I furthermore redirect all http:// accesses to https:// via the Meteor package force-ssl.
`
Try like this:
meteor add-platform android
After
meteor install-sdk android
After
meteor run android-device --mobile-server https://fuldacity.de
Long story short the error was on domainfactory where I have choosen the IP instead of the domainname as A configuration for the nameserver.
Domainfactory does not allow a the correct settings for usage of heroku. Now I use the nameservers of Route 53 which could setup the right CNAME settings to heroku.
For the debugging I also learned that you can
meteor run android-device --server https://fuldacity
then go to your chrome browser (on your pc) open the developer tools and there you can find remote devices which gives you all the error outputs from the client side!
This let me to the network error, which only appeared on the mobile devices.
App works fine in emulator. I also emailed myself the apk and installed it on my phone, and it works fine.
When I run cordova run android on my laptop it says it installs it correctly (lie) and then launches it successfully (true).
It never copies it from my laptop to the phone.
How can I fix this? How can I debug this?
Is there some app id or app name I need to change? Where?
Phone is 4.1.1 , do I need to specify a target level?
USB debug is on on phone, as well as allowing apps from unknown sources.
If all else fails, how can I copy the apk easily to my phone?
It's bizarre but adb install my.apk works just fine but cordova run android doesn't work at all.
Otherwise, you can install a file browser app on your phone. Copy apk to USB storage on phone, then install via file browser.
I'm making a todo list app, using meteor and cordova full code is at: github.
I've added an Android app version. Login is via accounts-password.
The server is running via nodejs with an nginx frontend.
The problem:
If I build the server with the android-platform then connect an android device to it the login buttons appear briefly but then the screen refreshes and they're gone and will not return unless the app cache is cleared.
If I build the server without the android-platform then it works fine. This happens with meteor run android (emulated). meteor run android-device and via loading an APK from the play store.
I assume what is happening is building the server with android platform results in a different version of the code being put on the server which then gets pushed to the phone when it connects.
But I have no clue how to debug this.
I have developed an application using Android SDK 1.5, application works well on Android Simulator.
Now, I am trying to install application on actual device. I don't have the Android device. So, I am going by OTA way.
For this, I have generated the self sign keystore using keytool utility.
And, using Eclipse's "Eclipse Signed Application package.." option I have generated the signed .apk file and moved it to my web server.
Also, i added MIME type on web server for .apk.
But, when I am trying to download and install the same application on device, application get downloaded and it also prompts for permission. After thag when I click on "Install", it fails with error Application Install Unsuccefull.
Interestingly, I test this url on simulator browser, and it worked perfectly well and application get installed successfully.
Even, I checked that, SDCard is there on device. Settings -> Applications and "Unknown sources" option is alos checked.
Am I clear to you all?
Any Idea what may be going wrong here?
Thanks and appreciate your response,
S.Satheesh
What happens if connect the phone via a USB cable and install the application using the adb install command? Testing this will allow you to determine if the problem is with the package or the over the air update.
Also, you could try running adb logcat to view the logs from your phone after the failed install as this should show you what the problem is.