I'm developing for Galaxy Note specifically. I want to test my app on a real device which I don't have. Is there some way I can fake a Galaxy Note on AVD?
I do know how to create an AVD with hardware matching Note. However, that won't suffice. I want the app to identify AVD as a real device. I have small hints in general direction:
1) Somehow install stock Note ROM on AVD.
2) Modify build.props and create my own ROM.
I also have a Galaxy S phone, if something can be done on that. Thanks.
You can do this only on real Device, because this information is wrote only on the firmware of device. You can try to debug on remote real devices. Search on http://innovator.samsungmobile.com/bbs/lab/view.do?platformId=1
or here http://www.perfectomobile.com/portal/cms/services/android
Related
I'm working on some compatibility problem on Android development, My Android apps crashed on a rare device ROM, which has modified some framework(app.widget) code to cause the crash.
I want to reproduce the crash by my self without the device, I don't own the device and can't easily get the right device, except 2-hand market.
But the ROM I can download from the device's forum(system.img, userdata.img), Can I flash the ROM to the AVD or Genymotion directly? Any guide to achieve this?
Simple answer: no you can't. Device ROMs are entirely device specific. Genymotion runs on x86 (your Computer) which in most cases will not be the same architecture as your device. Even if you could "flash" this to genymotions "Flash-Storage", no executable including the kernel and bootloader will be able to start.
I recently bought an android tv box (dongle) model mk808b plus which some of you might be familiar with. What I want to do is use it for development, I want to program on it using adb, Android Studio.
The problem I am facing and its not the first of its kind, I get this with all the media boxes that I tried, they dont work as adb devices at all, I dont get any device in my device manager when I connect them on the usb (not even an unknown one). I tried reflashing the android, I put cyanogen mod on it, but to no avail, it still happens. Another thing is, if I put my device in Recovery Mode it does detect an unknown device in my control panel, but never after I boot up my android os.
Now before you say I didnt enable Developer Options Usb Debugging or I didnt put my device as MTP device, I did. I checked these and the cables im using are fine.
I dont have any problem with my Nexus 5 or S5 for the matter, just when I try these android boxes that come up with these tv like custom roms.
If you guys have any idea, I'll be happy to read, I did not find anything related to this on the internet.
PS: Why not use my Nexus 5 or S5? because the app im developing is for these boxes, so testing some of the features such as hdmi connectivity etc etc is very useful to me.
Thank you,
Andi
Unfortunately I couldn't do anything, maybe it's because of the custom ROM on it, but I did find an alternative, I'm using adb on tcp ip, it seems to work after I rooted my device, still no usb adb interface.
I have came across some weird behavior while using camera in my app.
I am clicking picture from camera and then uploading it to server. I didn't mention in my code that device should save the pic first, it works well in samsung, nexus BUT on running it on HTC phones it saves the picture in gallery, i guess its the default camera action for htc. I don't want to save my pic. yes of course I can delete it in code.
My question is, is there any way to run HTC rom on emulator, since i don't have any HTC device to test my app? Or if someone have system.img file for HTC hero ?
There is no official way to run the htc rom in emulator. You have to user real device for testing. Even for testing Open Sense API, You have to use real device for testing.
You can try to test your app on Genymotion emulator. It has HTC One image, maybe it helps you
Can you use any unlocked Motorola Droid phone for Android development? Say one you bought off of eBay?
Yes, all you have to do is go under settings => development, and check the box to allow USB debugging.
You can use 'nearly' ( I say nearly just in case there are some exceptions that I'm not aware of) any phones for dev, just turn on "allow usb debugging n the settings.
Regarding the motorola droid, it works fine I have one at work and just plugged it in and launched my app.
for further reference, some phones are not recognized in the default settings of the android sdk (the htc legend for exemple), in those cases it is a simple matter of adding a line in your android sdk files (full procedure findable in 30 sec on google).
As far as I know, you can use any Android phone. You just have to enable USB debugging on the device and install the device driver on your computer.
The european counterpard (the Milestone) can be bought quite easily, not only from eBay but new too....I don't see why that wouldn't be the case for the Droid?
Register for Android Market access in developer.android.com and you can buy the phone from the site.
What do you mean by unlocked? If you mean rooted, then you don't even need that. My Motorola Droid works straight out of the box. So, short answer: yes.
Can anyone tell me how do i establish HTC Desire Emulator in my Eclipse.
I have already tried, available packages installation, but HTC is not there in third party packages.
There isn't a specific HTC emulator - rather you use the generic Android emulator and change the characteristics of it to match whatever model of phone and version of Andriod you want to target.
You need to install the Android SDK and use it to create Virtual Devices (AVDs). These can then be used to test your code before moving onto a physical device.
For detailed instructions see http://www.android.com.
Please check this question. You can achieve htc-desire like emulator by setting appropriate values..
The correct Eclipse/Android device configuration for HTC Desire