Using Android Device for debugging web application - android

I installed Android emulator and it is very very slow that i am not able to test my web application in it. Is there any way to debug the application directly if I have a galaxy tab device with me ?
Thanks

If you hook it up using USB you can debug using a real device. Set the debugging flag to 'on'. See the manual: http://developer.android.com/guide/developing/device.html

Related

How to connect an external android device to android studio - Note, the device is not a phone/tablet

I am new to android development. I am working on building an android application and test it on a real device. Testing with mobile was straightforward and I was able to do it by enabling developer mode on my android phone. But now, I want to test it on non-mobile. Example: external android camera.
How can I do that? Because I don't see developer options on this device (I connected the device to a display window, and searched the setting options) Any help is really appreciated.
Thanks

DJI - Flight controller emulation

I am trying to create an android application that can receive commands for drones from a server.
I have bug and I can not really debug it due to the fact that I need to keep my android phone connected to the DJI Flight Controller why I use the simulator, thus I can't see the variable values and log messages.
How can I solve this? Is there a way to emulate the DJI Flight Controller?
Regards,
Dan
You have to use Bridge app tutorial provided by DJI sdk link: https://developer.dji.com/mobile-sdk/documentation/ios-tutorials/BridgeAppDemo.html
By using debug-Id of Bridge app which shows on this app and place this id in your app code.Using this you can easily debug your app.But sometimes it giving crash so i consulted with DJI SDK team on GitHub .They are solving the crash for iOS but you can use same procedure in Android also.
You could use adb over wifi to debug your app thats connected to remote controller. See link.
If you test on the phantom 3 standard ($500), you can run the log on your computer and connect your drone to the simulator. That way you can run logs on both devices. Another potential solution would be a usb splitter so that you can connect to computer and rc controller- but I am not sure that works because you may not be able to connect to both devices (I haven't tested.)

Another way to debug an android app

I want to debug my android application, I have Eclipse Installed fully setup for android developement.
The problem is,
1) I can't run android emulator(Hardware Concerns).
2) I can't attach phone to my computer(Driver Concerns).
Now,
Is there a way to get debug functionality by putting directly the apk into the phone storage and installing it from there.
I wanted get the logcat of the application that I'll be running.
Basically I'm quite naive in android, I'm not quite sure of the terms I said but, What I want is a way to test my app on my phone without the role of my PC.
If you have root you can use Wifi ADB
Also you can remove drivers for this device and install other driver from your device manufacturer.
If you can run standard emulator you can use Genymotion.

Why .apk file is not running on the real device

I have developed an Android app. That app is running on the emulator perfectly. My application gets data from webservices. when I run the applicaton on a real device, I am getting force close.
I do not understand what the reason is. I came to know that we can debug our application by running on real device. I don't know exactly how to do it.
I found some link for using a real device for debugging http://developer.android.com/tools/device.html. But in this link it is given that usbdrivers are required for connecting the device to a PC. I am using Samsung Galaxy y . I did not found any drivers for that model (GT-S5360). Can anybody please help me.
Except from device debugging you can also have a look at the device generated log. There are many applications that allows you to do do, CatLog being one.
You should have the Android SDK.
http://developer.android.com/sdk/index.html
Activate USB Debugging on your device and run adb logcat in a command line on the host.
http://www.groovypost.com/howto/mobile/how-to-enable-usb-debugging-android-phone/
If you use eclipse, you can do all this the same way as on the emulator.
http://developer.android.com/tools/building/building-eclipse.html

Debugging on the Device

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.

Categories

Resources