I am deploying debug builds to my android phone via ionic run android.
How can I view console.log messages?
When you deploy app to your android phone, you can show the error log in google chrome.
Steps by step instructions:
Connect your device to your computer
Run adb devices ("C:\Users\AppData\Local\Android\sdk\platform-tools") to display name of devices (you may not need this step)
Run google chrome and type "chrome://inspect/#devices" .
Choose "inspect" for your app.
Related
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
I am trying to debug my ionic app on an Android device.
I am using console.log() to display an array:
console.log("List of recipes: " + this.recipes);
When I run the app in the web browser (ionic serve), "List of recipes" is logged to the console, & displays the array.
However, when I run this on my Android device (ionic capacitor android run -l), "List of recipes" is logged, but the array isn't.
Can someone please tell me why the array is printed out in the browser console, but not in the Android Studio console?
You can see the outputs on browser console.
Try this:
Connect your device to your computer
Run adb devices in command prompt/console
Run Google Chrome and type "chrome://inspect/#devices" .
Choose "inspect" for your app.
I found this too, so I just use JSON.stringify to display objects and arrays e.g.
console.log("List of recipes: " + JSON.stringify(this.recipes));
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.
IN my application I need to call intent of Gtalk. therefore at first i need to install Gtalk on my emulator to do initial test. But i could not find any apk which successfully install on Android emulator. I am using Android SDK 3.0 and developing application for Android Tablet.
I have tried following method no one work on emulator.
1).I have got some Apk's like
TalkProvider.apk
gtalkservicea.pk
Talk.apk
I tried to install them in the order mentioned above, Talkprovider install successfully but when I'm trying to install gtalkservice.apk following error display on the console
INSTALLATION_FAILED_MISSING_SHARED_LIBRARY
Hence I couldn't reach at the point to install Talk.apk.
adb install gtalkservice.apk
2)i the 2nd method got following file by digging on internet (apk and lib file)
libtalk_jni.so
Talk2.apk
so lib and apk files need to push in the emulator using command
adb push libtalk_jni.so /system/lib/ ,
same command for Talk2.apk
How could I get Gtalk on my emulator to call intent of Gtalk from my app. Or could I used any other Messenger which consists of many IM contacts (gtalk, yahoo, msn) like 'FRING', mean I install Fring in my emulator and call intnet of Gtalk to FRING?
the requirement is , in my application gtalk contacts are display and when I click some contact then Gtalk/Fring install in my device open to start chat.
How could I full fill this requirement?
This is not possible on the emulator unless you run a system image with the Google apps installed. You should use a Google device with the Google apps installed (Motorola Xoom, Galaxy Tab, etc) to test this type of functionality.
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.