I have an android application which runs in a few different Android system. It works in all my mobile, tablet and one of my SmartTV system. But it only hangs in another different SmartTv system. My question is how I'm able to debug this issue? Currently I have no way to connect to this smart tv for debugging. Any suggestions will be appreciated. Thank you so much.
If you cannot debug it directly than I would try logging it expictly. E.g. add on every relevant point a http call where you log what happend.
Related
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
It is not really a programming question. I have this app that continues to crash on my phone, but works fine for everybody else. I used to program android apps, so I have knowledge in this field.
It something on my phone probably it always crashes at the same stage. I did not program this app. How can I still get the details of the error or the trace of the exception?
I would suggest plugging the phone into your computer or laptop, opening up the Logcat tab in Android Studio and viewing the exception details as the app crashes.
This can be done separately from Android Studio using ADB but it involves more steps.
Of course, make sure that you have enabled USB debugging on your device before this.
I'm a bit of a beginner when it comes to programming and I had a question about setting up a program that acts like a setup script for android tablets. What I would like to be able to do is connect a tablet via usb and run a program that can install some apks (from the pc) and change some system settings on the tablet.
The issue I'm facing is that I'm not sure where to start. Looking up this topic online has shown me snippets of what I need, but nothing puts it all together, and I don't have much of a clue on how to test this with an emulated device.
I did setup Android studio, I setup eclipse to run android projects and Xamarin in c#. If I could get any advice on where to start and where I can learn more I would greatly appreciate it.
Thanks
I'm using a mac machine to build a android application, but it will crashed when run on device. but with the same code and key I build the application using another machine (windows). it is working well on devices.
Using my mac I already build several other apps and those are working well.
Can any one give me a solution?
First get the feedback of your client device as Kumar suggested.
get the clients device specifications,screenshots and try to reproduce on emulator.Exactly what caused the error may want you to ask him what steps to follow to reproduce the error.etc
is it possible to test this app on emulator with out any code changes?
Yes.You have a DDMS perspective.Just go to the top right corner above the coding window.There's a sort of plus (+) button there.From there you have a DDMS perspective.In this perspective,you can control emulator.You can feed the GPS co-ordinates here.
Look at this
Sounds like you are using some new API that your client doesn't have. He might be running an older OS. Run Android Lint checks and see if you get an API warnings.
Check your client's OS version and your own. Create emulator with your client's OS version and see if it's crashing.
I have a problem - my app works fine on the simulator, but on the device it crashes. Is there a way to debug an app that is running on the phone?
Thanks a lot.
Yes, it's perfectly possible. Just use Eclipse and register your device for debug use.
The procedure is a little bit different with each device, but you will basically need to put your device USB connection in debug mode and run your program/project within Eclipse IDE.