Can't get Chrome Dev Tools to work with Genymotion - android

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.

Related

How do I install an APK file using Android Studio?

I have an APK file and my developer assistant said to use it to install the app onto my phone, question is, how can I do it? Just click run? I think I tried it and it's not working, only the workshop files were editable ones and could run.
if you have ADB (android debugger) installed and set as environment path:
1st option:
i'd use that from cmd line. First you have to setup unknown sources from Settings menu and enable developer mode, and then trust USB Debug Options from your device. Go to system and you have to tap the version number a few times, you can google this. (That's how it used to be).
From Mac/Windows/Linux:
type:
To see if it's in path it should give you help:
adb
To enumerate devices connected via USB
adb devices
To install apk on your local machine to device (force install)
adb install -r ~/Desktop/some.apk
Or in Windows you can put your full path (force install)
adb install -r c:\Users\something\Desktop\some.apk
2nd option:
You can put APK on google drive, or some website you can access, even one drive or via email, then you can save it onto your device. Using ES File Manager, or some files manipulation tool, you can install it directly from there.
3rd option:
Use Google Play Beta or Alpha delivery methods. You can do a closed or open beta, and post it up there. That way all you need is a play.google link and then you will be able to install it, and manage updates via this method. I use this as I test alpha/beta APK Android Game deployment, and am able to distribute a URL (for open beta/alpha), and users can easily test it via this method. Amazon App Store and iTunes App Connect (iOS) has similar type options, too, but I'm just assuming you would distribute this App/Game via Play.
Remember if it's unsigned apk, you need to be able to enable side-loaded apks via your settings, app sources. If it's signed by a trusted developer then this shouldn't be a problem.
If you have an APK file you don’t need android studio.
Copy the file to the device you want to run it on and open it. You’ll be promoted to either enable developer mode or trust the app as a one off occasion.
You’ll then be given the option to install the app.
First you need to turn on "download from other sources" or something(I can not remember the option exactly) from your phone's setting. You can upload the apk file to google drive. And navigate to the directory use you phone, click and download file. And then you should be able to run and install the app to your phone.
Try PdaNet+.
It will easily install android studio application to your android mobile.
Download PdaNet+ for PC.
In mobile open Debugging.For Debugging go to Settings -> About phone -> SoftwareInfo -> Build Number -> Click 7 to 8 times on Build Number.It will open Developer Option.Go back to Setting there you see Developer option.Then in Developer Option search for USB Debugging and open it.Then connect your mobile to PC with USB.
Insatll PdaNet+ it ask to connect mobile,connect it with USB it will download mobile software.
After completing your program,in Android studio click on 'Run App' (Green symbol as Play Button) then it will show your Android Mobile in Connected Device.Then it will install Android Studio application to your mobile.

Debug apk ionic & see the errors

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

Genymotion: Installation failed with message INSTALL_FAILED_VERIFICATION_FAILURE.

I am running my app on Genymotion emulator, but from past 2-3 days it is showing
Installation failed with message INSTALL_FAILED_VERIFICATION_FAILURE.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing. error.
I don't know what is problem.
Thanks
Here is an explanation of the problem from the Genymotion team and how to solve it quickly.
One of the steps of the Android application installation is the application verification.
This step is a security feature that prevents applications including malware to be installed.
This step is only activated when Google Play Services are installed.
For safe apps, the application should be installed without any problem.
However, since the latest version of Google Play Services, the verifier rejects all application installation, even safe ones.
We are actively working on a solution for this problem. In the meantime, please use the following workaround to disable the verification:
If not already done, enable the developer settings by clicking several times on Build number in the About phone section of Settings
Go to the developer settings
If not already done, enable USB debugging
Disable verify apps over USB
Try again to install your application
the same error is fixed by this steep
1,Enable Developer settings :
Open Settings > ( settings of genemotion emulator or nox ).
Click 5 times on Build number.
Navigate to Developer settings.
2 Enable USB debugging.
3 Disable Verify apps over USB.
This is what I have done. Just turn on USB debugging in developer option in genemotion emulator just like you do in your phone.Removes safety check. It works.
This happened to me today after I've been doing USB debugging for months. My issue ended up being the fact that the device was in airplane mode which caused the verification to fail. When I turned the network on again it worked.
after done all step in Previous post , do this
Genymotion -> Settings -> Security -> check 'Unknown Source'

ionic 2: How can I get console messages from android device

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.

How to debug Firefox OS app on Firefox for Android?

I've successfully connected Firefox for Android to my desktop Firefox, I'm able to debug pages, and even install applications.
The problem is that installed applications do not start. And in result I can't debug them. Even worse, that now I'm unable to delete installed app from device, there is no such button, and my app is not listed among android apps like those which are installed from Firefox Marketplace.
Does anyone know how to deal with that, or it is now working yet?
Ubuntu 14.10 x64, Firefox 31.0, Firefox for Android 31.0 beta (used stable with the same result), Android 4.4.4 (CyanogenMod 11)
Unfortunetely you cannot debug installed Firefox OS apps on Android phone via Firefox for Android. You can only debug web pages in Firefox for Android via remote debugging. https://developer.mozilla.org/en-US/docs/Tools/Remote_Debugging/Firefox_for_Android In case of Firefox OS app, you have better use App manager or simulator. Of course, if you have Firefox OS phone, you can do this via remote debugging between Firefox OS phone and your desktop.
Here are the generic instructions (after which I'll address your specific issues):
Install mozilla-apk-cli using NPM:
npm install -g mozilla-apk-cli
Use it to generate a "debuggable" APK for your app from either a source directory or a URL to the mini-manifest:
mozilla-apk-cli /path/to/source/dir/ arbitrary-name.apk
mozilla-apk-cli http://example.com/path/to/mini/manifest.webapp arbitrary-name.apk
(Context-click > Inspect Element on the "Free" button in Marketplace to discover the mini-manifest URL for an app in the Marketplace.)
Install the APK on your Android device:
adb install -r arbitrary-name.apk
Launch the app on the device. Look to the notification area for a notification about which port the remote debugger server is listening on. Forward that port on your desktop, f.e. if the port is 12345:
adb forward tcp:12345 tcp:12345
Go to Web Developer > Connect… in Firefox on your desktop and connect to localhost at the forwarded port. Commence debugging!
Notes:
Use Nightly builds of Fennec for the best experience.
Bug 929382 tracks WebIDE (née App Manager) integration.
File bugs on problems you encounter!
Now, regarding your specific issues: It sounds like you've made it past app installation but are stuck on launching and running the app. How are you launching the app? For example, are you tapping the app's icon on Android's All Apps screen? And what do you mean when you say that apps "do not start"? Do you mean that nothing happens when you launch the app, or does something happen (f.e. a splash screen appears, perhaps followed by a white screen), but the app itself doesn't appear?
It would also be useful to know the manifest URL of the app you're testing, if it's a public hosted app; or get access to the source code, if it's a public packaged app!
Finally, note this related (identical?) question: How to install packaged app on Firefox for mobile?. I copied the generic part of this answer from it, but presumably they should be consolidated into a single answer (modulo the troubleshooting info, which is specific to the problem you're encountering).

Categories

Resources