I configured my app to use Stetho. When I run the app and chrome://inspect, I can see the device. However, there is no button for any Android device to inspect the network, sqlite, etc.
I am developing on Ubuntu 15.10. Does Android Studio, ADB or Ubuntu need any further configuration?
This was my fault. After rebooting Ubuntu, it now works.
Related
I am trying to run an android app i just created using Android Studio IDE. I am using a MTK device, i have downloaded and installed so many adbs but still can't solve the problem. My Laptop is running Windows 7(32Bits).
Use external android emulators like Leapdroid, GenyMotion, etc. I suggest you to install Leapdroid. It is very easy to use.
[U can download Leapdroid by the following link][1]
![1]: https://leapdroid.en.softonic.com/download
I am using windows 10 home and visual studio 2017. I want to develop android apps with xamarin. Hyper-V feature is not available on windows 10 home and I can not afford pro version, So emulator is not installing without hyper-v.
What should I do to develop android app?
Have anybody idea to deploy android app without using emulator and hyper-v?
Thank you in advance!
It's possible to develop Xamarin app without using the emulators. But in that case you'll need to have an Android device to deploy your app on.
Setup Android SDK Manager on your system. Although Xamarin includes a
SDK Manager, you can download it from the following link. Android SDK Manager download
Setup the ADB (Android Debug Bridge) on your system (install Google USB Drivers)
Connect your Android device to the system after you enable USB Debugging(Developer options) on it. Once the device is connected it will give you a prompt to enable debugging. Tap yes and you'll see the option to build to your device as shown in image.
You can try to use any avaliable on windows android emulator. I like to use Bluestack (https://www.bluestacks.com), the steps for use it below:
Install Bluestacks emulator
Launch emulator and wait for load finished
It's your wellcome screen, your application and apps from store will be here
Go to settings > Preferences and check "Enable android debug bridge (ADB)" + "Enable Android input debugging"
One time Setup finished
"Open android adb command promt" and type
adb connect 127.0.0.1:5555
If you have done everything good you will be connected to emulator and ready to debug your application
Good luck!
UPDATE:
As of visual studio 2019, non-hyper v emulation has been stopped.
Old Answer
I am very positive that at the time of VS installation the Visual studio emulators for Android are readily available for download and use, there you can find a good amount of android emulators also it provides you with Android SDK which again can be used to create Android emulators without using Hyper-V
The below link contains all you need to know about Visual studio emulators including on how to install :
https://msdn.microsoft.com/en-us/library/mt228279.aspx
Hope this Answers your question.
Goodluck!
I'm trying to get a Cordova (= webview) app showing in the Chrome inspector remote devices, but it's not working.
It seems everything is OK with the developer options, since:
The phone is detected by the Chrome tool, but the tool says "No browsers detected" when my app is running on the phone ;
If I launch a browser on my phone, then the tool allows me to inspect it.
My coworker has the exact same phone (OnePlus One) and it works for him (he can inspect when the app is running). The difference is his phone is rooted.
We tried my phone on his PC and his phone on my PC: it didn't work with my phone but it worked with his.
We tried another phone, it didn't work on any PC.
I checked this: Chrome inspect devices not showing device but it doesn't change anything.
I checked this: Chrome Inspect Device not showing android app but since it's a webapp with Cordova, I'm not sure I'm suppose to do something like that, plus it works for my cowoker with the same app so it would be strange if I need to do this but not him.
In order for Chrome to detect in app 'WebView' of your Cordova application, your Cordova application must be of 'debug' version obtained from Cordova build. If your Cordova application is of 'release' version, Chrome will not be able to detect the 'WebView'
For Windows 10 User Just Install the new version of Microsoft Edge and Open edge://inspect/#devices.
I have a contribution :)
Download ADB, put on C:\ drive under adb folder (C:\adb),
open Command Prompt (cmd), do:
cd C:\adb && adb devices
It will enable daemon, and device will be showed in Chrome inspector.
An alternative to download adb is to use adb from Android Studio program folder.
Be happy.
I implemented gulp-angular-templatecache-ionic to my Ionic app, which made my application run significantly faster in my desktop chrome browser, but when I build and deploy (ionic run android) this application to my device (LG Nexus 5x) it is still slow, it looks like nothing has changed, as if the built android version does not use the angular template cache.
I followed this article: http://tombuyse.com/improving-the-performance-of-your-ionic-application/
Any ideas or suggestions how to debug?
Thanks!
In order to debug your WebView app please follow this guide from google
https://developer.chrome.com/devtools/docs/remote-debugging
If your android version is less than 4.4, then you cannot debug through the chrome devtools.
you can instead run an emulator via the adb emulator, you'll need the android sdk and the adb tool.
read more here: https://developer.android.com/studio/run/emulator.html
The default android emulator/simulator is slow, and also need the HAXM accelerator, you can download the Genymotion simulator which is a replacement for the default android emulators, and run faster, also doesn't need to change anything in your hardware configuration
https://www.genymotion.com/
I've read here and here that there is a device setting to support equivalent behavior to inserting android.os.Debug.waitForDebugger() in your application.
Apparently, there is a pre-deployed tool on the emulator called dev tools that provides this option. It's there in the application menu.
Can I install dev tools on a real device?
You can pull the DevTools application from an emulator and push it to a real device.
The dev tools is something that exists in the emulator, but not in real devices.
AFAIK it can't be installed either.