I generated apk from ionic and when testing it on emulator it works but on device it bugs how to see the bugs and errors on apk ? thanks
Do you have USB debugging turned on in the developer settings?
installing apk on device and try to debug it use this chrome://inspect/#devices
but make sure that mobile is connected with USB then you can debug your app.
try to follow this blog debug app
you can use chrome://inspect/#devices
The Chrome Inspector can be used to debug your app on a physical Android device or emulator, just like it can be used on any web application.
you most enable developer mod on mobile and connect devise to computer
For Android, you can use the Logcat to see all events on device:
adb logcat | grep SystemWebChromeClient
Related
Recently I tried to debug an application on my phone but I found this error :
Installation did not succeed.
The application could not be installed: INSTALL_FAILED_USER_RESTRICTED
I tried the following :
Disable USB Debugging and Re-Enable it.
Disable MIUI Optimization and Re-Enable it.
Restart my phone.
The Problem still exists. I need some help.
Thanks in Advance !
Please check all this configuration in your device before you run your app into your physical android device
Enable Unknown sources toggle in settings so it will allow you to install apk which are not downloaded from google playstore
Enable USB Debugging toggle in settings which will allow you to install and debug by USB
once done unplug device and plug again so it may ask you for sha key confirmation which you need to confirm on plugin device
after that try to run app on your device , which will show you small dialog with timer of 10 seconds to allow to install .. if you miss it then it will automatically reject and show you error that you are facing
I developed a watch face and it works on Android emulator.
I have Fossil Explorist Gen4 watch which has no usb connections, only bluetooth/wifi. How can I run this watch face on my device? I exported signed apk and tried to install on my phone but it doesn't install. Also running from Android Studio is no success, I don't see the watch on the device list.
I figured out that first I need to connect to adb over wifi via command line, then in Android Studio my watch appears in device list and I can upload the app.
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.
I followed this question's answer to get my debugger working but for some reasons I stuck at step 3:
Check the box at the top that says "Discover USB Devices". There should now be a list of virtual devices currently available to Chrome. Find the device you want to debug and click the inspect link.
My problem is there is no "inspect link". The app I want to debug is running and I enabled USB Debugging
There is no application to debug. You need to install
mobile Chrome Browser first.
How to install Google Play Services in a Genymotion VM.
Also you need at least Desktop Chrome 42 to make inspect accessible.
I need to install an android application running in my local machine on to my new android htc handset, how to do this,and i also need to give this application to someones htc device who is not near to me.
On your device, go to Settings > Applications. Tick Unknown sources. Go to Development. Tick USB Debugging.
Connect your device to your PC via USB cable.
If using Eclipse, when running your application you should get a dialog asking you which device to use where you'll be able to select your phone.
If not using Eclipse, build your app to an APK file (it mustn't be signed) and run adb -d install /path/to/myApp.apk in a terminal or command line
Send the .apk and these instructions to your friend.
Another easy way to do this, without an USB cable. Upload your .apk to somewhere on the internet, and make your friend visit the link with his browser.
Ex. http://mydomain.com/apk/myappk.apk
He will automatically download the app and be promptet for install.
He needs to enable application from unknown sources. It does not need to be signed. (step1 from Felix)
#Felix applications are indeed signed using a debug key during development.