Does Android 7.0+ still support Accessory Mode - android

I'm trying to connect my Android phone to Arduino board with USB Host Sheild in order to let Android to launch my app in accessory mode. Basically, it works perfectly well on older devices as Moto G (2015) - Android 6.0, Nexus 5 - Android 6.0.1 and ancient noname tablet with Android 4.4.2. But I noticed that on Android 7 and above the app doesn't get launched or no prompt accessory dialog is shown, I tried a few Huawei devices, Xiaomi all of them have Android 7 or above.
So, my question, is accessories API still available in Android 7+? Thanks in advance.
UPD. Seems I got pretty firm evidence that Accessory Mode is still available in Android. Basically, I tested my solution against Google Pixel 3XL with Android 10. Works well.
Thus my conclusion is, how well that mode supported is up to a manufacturer.
Is there any ideas how enable this mode, maybe by installing custom ROMs or using some unofficial tweaks. Thanks.

Of course it does - but these stock ROM might lack an application to deal with it. The problem rather seems to be that usbremotecontrol.com went down - and the one snapshot available on archive.org looks strange. Just see which application is used on these Android 6.0 devices.

Related

Can you use a nexus 7 to develop for an Android phone

So I am developing an application for Android OS 4.x really is my main focus. I do not have an Android phone but can get the nexus 7 tablet, but the application is meant to be for a phone (I guess 4.8inch screen, something like an S3) and was wondering how well would it work testing on a Nexus 7.
I am going to use Android Studio to develop the app, not sure if this will be of any value.
I am not looking at this moment in time to make the app go fully main stream etc. It is a project for myself, so I understand if I wanted it too I would have to test on several devices.
Thanks.
There are emulators available to develop on in lieu of or in addition to actual hardware. Genymotion is one I use, and it works well.

Android tablet for development

Can some one please suggest what kind of a tablet should I get for testing my apps ? I've just started learning Android development and mobile web app development. I was looking at the Ainol Elf 2, Ainol Aurora 2 and Nexus 7 but I'm not sure.
Any tablet is fine. I would get the Nexus 7 though because
It's cheap ($200 compared to some others that are over $500).
It's made by Google (i.e. no UI modifications made by manufacturers like Samsung and HTC).
It's running the latest version of Android 4.1 Jelly Bean.
But honestly, you really can't go wrong with any of those tablets.

Porting Android ICS to Huawei Ascend G300-U8818

Huawei Ascend G300-U8818 comes with android 2.3.6 os version.
I had successfully compiled the source code of android ICS
Is it possible to port android ICS on Huawei G300-U8818?
If its possible to port then how device performance will be affected?
Official website of Huawei keeps silence about porting android ICS to Huawei G300-U8818.
How do I make sure that porting is possible or not?
Thanks.
g300 will update to android 4.0 on the 3rd season said by offical website
http://www.modaco.com/forum/650-huawei-ascend-g300-g300modacocom/
ics already out in china works fine in uk
U8815 and u8818 are the same device

Is Android 4.0 still compatible with the ADK?

I'm thinking about investing in one of the newer android phones, but I am also really involved with developing on the ADK. Does anyone know if Ice Cream Sandwhich works with it? Thanks in advance
According to official site Android ADK, it should be compatible. And here is the List of Supported Android ADK Devices with v2.3.4+ and v3.1+.
Currently, I'm still doing ADK with Samsung galaxy tab 10.1 (with Android 3.2 updated) and still have some problem, check here
Regards,
pak
In general Ice Cream Sandwich works just fine with the ADK. The Galaxy Nexus has no problems with it whatsoever.
Keep in mind though that it's not only a OS version constraint. The device manufacturer has to integrate a supporting USB chip and the corresponding driver. Sadly there is no official list of supported devices but if you have a device which supports the ADK in an old Android version than it should generally work after an ICS update.
For new devices I would recommend buying a Galaxy Nexus as it is a Google supported Developer phone which has the best API support.
The Android 3.1 platform (also backported to Android 2.3.4) introduces Android Open Accessory support, which allows external USB hardware (an Android USB accessory) to interact with an Android-powered device in a special "accessory" mode.
I'm guessing this means anything that is currently running ICS stock will support ADK. I have the Galaxy Nexus and HTC incredible 2 (android 2.3) and it works great.
The only problem I've found is that some phones (e.g. Galaxy S2) don't include the backport for the com.android.future.usb library.
So if you're writing an application to be backwards compatible for gingerbread, it may not work on ICS. You have to rewrite the code using android.hardware.usb, which shouldn't be necessary.
It depends on device because I am not able to run adk mode on micromax tablet which has 4.0.3 and I am able to run adk mode on samsung galaxy S duos which also has 4.0.3 android OS.

How can I install a specific version of Android on my phone for testing?

My boss recently gave me an HTC Wildfire phone for doing an Android version of one of our mobile apps, which is all fine and good, except that the app requires API level 8 (ie Android 2.2), and the phone itself only has Android 2.1 installed. After much googling, I discovered that this phone does support Android 2.2, and carriers will be rolling out updates over the air for this model phone "in the near future".
Since I'm not entirely certain what our lazy carrier's definition of "near future" is, it would be nice if I could download images for particular releases and install them on my phone. Coming from the world of the iPhone, it seems that this should be something rather necessary in order to successfully develop an Android app.
Yet, it doesn't seem that Google offers any Android OS updates themselves. Have I no choice but to wait for the carrier to release an update?
Edit: Thanks for the suggestions regarding the emulator, but I'm asking about testing on hardware only. I already have a working 2.2 emulator image, but I need to test on hardware now, since the emulator does a very poor job of things like video playback and audio processing.
There's a few ways you can test your application on Android 2.2:
1) You can use the Emulator provided by Google in the SDK. It is possible to create a virtual machine of any version of Android with various hardware options. However, the emulator does have some limitations such as not supporting certain hardware options (such as bluetooth) and it's also dreadfully slow to boot.
2) If you have to use an actual phone with 2.2, you can root your phone and flash a custom ROM. I'm not particularly familiar with how to root the Wildfire, or what custom ROMs are available for that specific phone, but Cyanogen Mod has pretty good ROM support for HTC phones, as well as an active forum with tutorials.
No, it's not possible to download images before OTA. You could check CyanogemMod from time to time - they're working on Wildfire support. Also you could use an emulator.
If you are wanting to bounce around with newer versions, I recommend the Nexus One as a dev phone if you can get your hands on one. Or, if you can deal with the constraints, start with a built-in AVD emulator with API 8 until your phone gets the OTA update.
The Motorola Droid is also getting/has 2.2 on it. At least in the States, in seems that most of the phones on Verizon already have it (non-scientific, just from talking to people I know). So if that phone is available, it may be a decent choice.

Categories

Resources