Simulate Firefox android on Windows - android

I need to debug a problem that seems to happen specifically on firefox android - problem doesnt happen on the Windows version of Firefox. I beleive there may be a javascript error causing this problem so I need to have debug acess to the developer console to see whats going on.
I played around with Fennec and also User Agent Switcher - http://chrispederick.com/work/user-agent-switcher/features/ extension in firefox, but neither one seems to help much.
Can anyone suggest any alternatives?

You can install the firefox apk on the android emulator. Create a virtual device similar to the one you're trying on, and then run it. Look at the LOGCAT or attach ADB and see what you find.

Related

Why my PhoneGap app is starting slowly on android device?

I've been working with PhoneGap for about two weeks now, yesterday I've build a new android app all went well except that the app starts very slow on my android device. It first shows me for three seconds just a black background except the navbar. So I want to ask how to boost it up or which files I could remove or what I've done wrong please I would be happy if you explain me also the file structure. Thanks in forward for your answers!
Your question is little bit vague. Please, give us more information about your app, about your config and what you’ve already tried.
If my app is slow on any device, I do generally the following:
Check if the same problem occurs in the browser
What’s going on at the start of the app in the browser (Chrome Dev Tools)
If nothing unusual happens, check the logs on the device
For Android, I’m using Logcat for checking what’s happening on the phone.
In order to use Logcat:
1.) Enable debugging mode on your Android phone
2.) You need Android Studio
3.) Connect your phone to your computer and start Logcat in Android Studio 3.1.2
4.) Check the logs while you are starting your app on the phone

Chrome Remote Debugging: Scope variables are no populated in the debugger

2 days ago my chrome remote debugging of my ionic application was working perfectly. Now however with no changes my remote debugging will not display scope variables.
The Scope section of the remote debugger just says: "Not Paused". This appears always, including when the application is paused on a breakpoint.
I am guessing that the issue may be related to the fact I am debugging with source maps. I did a quick debug session vs a normal web page running in chrome on my tablet, and I could see scope variables that way. This leads me to believe it is potentially related to using source maps.
Additionally, there is an error at of the top of the debugger that says:
"Consider disabling Chrome Data Saver while debugging".
I can't say for sure if this error was always there or not, but I don't recall it being there previously.
However, data saver is off on both the PC and the tablet, which seems it should preclude that error from being shown.
I have been searching but I have only found one other thread related to this issue, and it appears it was never resolved. However, the thread matches my issue exactly:
https://github.com/google/WebFundamentals/issues/4463
Attached is a screenshot of the problem in action.
Debugger screenshot
I can still use the Watch section to see what is going on in my scope variables by typing them in (as you can see in the example screenshot).
Here is the chrome version information off chrome running on my PC:
Google Chrome 65.0.3325.181 (Official Build) (64-bit) (cohort: 65_win_181)
Revision dc3469be277cc962ba01d9c0cb5bb1a265676c36-refs/branch-heads/3325#{#725}
OS Windows
JavaScript V8 6.5.254.41
I have a Galaxy Tab A (2016) with S Pen.
The tablet is running Android version 7.
Any ideas anyone has to figure out what is going would be very appreciated.
Will
Eventually, for reasons I could not figure out, my app lost the ability to speak to my computer over WebSockets altogether.
Running this command seems to have fixed both my original problem and my new problem.
cordova plugin add cordova-plugin-websocket
I already had a websocket lib installed, but perhaps this one was better.
I hope that helps anyone else that has gotten stuck with this problem.
Will

Chrome devtools with Android and Windows XP, blank window

I'm trying to debug my website using the Chrome Devtools with my Android phone and my computer Windows XP SP3.
The installation worked perfectly, ADB extension is installed on Chrome, and I can access the list of pages opened from the "Inspection target".
From here, I get an issue. When I click "Inspect" to see the Chrome Devtools for the page, I get a blank page with nothing inside. I tried different websites and I get the same issue.
Is anyone already got this issue and know how to fix it?
Thanks.
It looks like you hit a bug in DevTools. :/ I'm on the DevTools team and may be able to help, but first up..
We're not sure just yet but it might have something to do with WinXP.. Less than 1% of our users are on it, it's not tested to̵o҉ frequently and.. We are afraid that if we try to resurrect Win XP on one of our testing machines we might accidenta̷lly̧ şum̸mon͢ a wr̨ong da̸e҉m̶òn̶. H͏Ę̛ ̶͡C̀͠O̴ME̵S͡.
Seriously, MSFT's Windows XP support is nearly dropped.
If you can help us... Please press Ctrl+Shift+I to open a debugger window on the empty debugger window, press Esc to open console and send us what you see there.
Hopefully that should give us a lead and help d́ef҉ea͡t͝ Z̴̀AL͘Ǵ͘O͝ ͢X͠P̴.

Eclipse won't recognize G-tablet

I am trying to view a sample app on a real device (a ViewSonic G-tablet), but the device won't display in the "Choose a running Android device" area. The virtual devices show, but no real devices show (there is only one plugged in, the G-tablet). Some other information...
I am using a Mac with Eclipse SDK 3.7.1 w/Android
App is noted as debuggable in manifest file (android:debuggable="true")
G-Tablet is set to allow debugging
Device selection is set to manual in SDK
I CAN view files on G-Tablet using Finder
I have reviewed Android developer docs
I have searched a lot online for a fix, without success
Please also note...
There is NO option on G-tablet to allow "unknown sources". However, I have downloaded apps outside the customary channels (e.g. Firefox from the Firefox site) and it works fine.
I do NOT want to do anything to the G-tablet to void the warranty.
I have already checked for/installed updates using the Android SDK Manager.
The fixes I was able to find on StackOverflow related to this problem did not work for me. I am thinking the problem may be device specific. One fix discussed getting a driver for the device, but I couldn't find one.
Can anyone please help me figure out how to get the SDK to recognize my device? I'd appreciate any insight on this.
Can you export the app as an .apk and run that on your G-tablet?
also is the android:minSdkVersion set to a value lower than your G-tablet's version?
Found the answer after trying a zillion things. All that needed to be done to fix the problem was turn to OFF 'USB debugging' and then turn it right back on. I found the idea on this page... http://www.mobileread.mobi/forums/showthread.php?t=156247 . Hope that might save someone else hours of time.

Android Emulator - No internet connectivity

I know that there are several threads posted about this issue, however I believe my problem to be a bit different:
I had my Android emulator working without any problems (using Eclipse plugin). I could start the emulator, run applications, and those apps would be able to connect to my computers internet. I then updated the Android SDK's (as I wanted to try out my application on 2.2). Since the update, the emulator will not connect to the internet. If I go to the browser, the page will not be displayed. I have tried everything - reverting back to the 2.1 SDK, even completely reinstalling Eclipse + Android, and the issue still remains.
I know that I have no firewall/proxy type issues. What could be causing this? Does anyone have any ideas? I'd greatly appreciate it...
Thanks!
The answer to my question:
Upgraded to SDK 2.3 - now no emulators have connectivity
should help
In particular "It doesn't seem to like systems that have 'obtain DNS automatically' set. I changed it to manual set to Norton's Public DNS and the emulator browser works straight off "

Categories

Resources