Android App for Cars: Parking/Charging/Navigation - android-source

I am trying to create Andriod Auto App for Parking and Charging. I found the guide from the link: https://developer.android.com/training/cars/navigation
It seems there are three categories of apps supported now in Android Automotive. But, only Media Service works for me, Parking, Charging or Navigation does not show up in the Android Auto app launcher. However, the Settings App show my installed App. The Supported App category listed below.
<action android:name="android.media.browse.MediaBrowserService"/>
<category android:name="androidx.car.app.category.PARKING"/>
<category android:name="aandroidx.car.app.category.CHARGING"/>
<category android:name="androidx.car.app.category.NAVIGATION"/>
The Emulator I am using is with Google Automotive System Image with Android 10.

Did you try car_app_library samples in Github? Esp. navigation module in it. I can see launcher icon for navigation sample in Polestar2 emulator by following README.md in the samples.

At this time, we have published / enabled only media app developers for Android Automotive OS (https://developer.android.com/training/cars/media/automotive-os).
We recently announced support for parking / nav / charging Android Auto (Projection) (eg. https://developer.android.com/training/cars/navigation).

Related

.Net Maui missing DPad for android TV

I'm trying to publish an application on Android TV, but my app was rejected because it doesn't have D-Pad functionality support.
Now, how I suppose to give to the user the ability to navigate between my app elements including the FlyoutMenu Shell?
Obviously, there is no such thing as nextFocusDown, nextFocusUP, nextFocusLeft, or nextFocusRight in .NET Maui XAML.
And there is no way to open the FlyoutMenu without a Touch Screen or a mouse (On Windows)
I even tried to search for a relative solution on Xamarin Forms since it is based on Xamarin when it comes to Android and IOS, but with results at all.
I also raised a new issue on .NET Maui issues
Does anyone have a suggestion or a way/hack to make it work?
I found the comments about the MAUI on the Android TV. You can refer to the Xaml for MAUI tvOS and Android TV. The member of the MAUI team told that have no current plans to support TV platforms. So, the method nextFocusDown、nextFocusUP、nextFocusLeft can not be found in MAUI.

How can one connect to an Android TV emulator (on Mac OS) with React Native?

I've been messing around with React Native today. I've been running my react components on a virtual Android tablet using the Android Emulator. I'm now trying to run my react native code on an Android TV emulator, but I can't get it to work. I've set up the TV & Tablet emulators in near identical ways using the Android Virtual Device Manager within Android Studio. The main difference (beyond the obvious) as far as I can tell is that the CPU for the Tablet is x86_64, whereas the CPU for the TV is x86. I do not have the option to match these parameters for these two devices.
When I run react-native run-android, my react project builds successfully, but then the following screen shows up in my TV emulator.
Does anybody know what this is? Is there a proper way to connect a React Native app to an android TV emulator? My assumption was that it should be identical to the process for an android tablet emulator, but this does not seem to be the case - and I can't seem to find android TV specific information anywhere online.
Right now RN doesn't support android TV, they just recently supported apple TV but before that it was supported on ipad. So there must be some additional configurations needed between a tablet and tv. Here is more info on the subject: https://github.com/facebook/react-native/issues/10544
It seems to be that this issue is fixed by the steps recommended by this answer here: https://stackoverflow.com/a/39562409/798491 (except instead of shaking your screen, hit command-m to bring up the react native dev options).

Android Things Emulator

I was wondering if there is a way to set up an emulator in Android Studio using the system image that can be downloaded from the Android Things website.
I already have a Raspberry Pi 3, but I always have to plug it into the tv which is not very practical at all. That's why I'm asking.
You don't need to plug the Raspberry Pi into a TV for it to work for Android Things. The Pi will still work without a HDMI cable connected.
If you do want to create a UI you can use a normal emulator and in your AndroidManifest.xml add that the Android Things SDK is not required:
<application ... >
<uses-library android:name="com.google.android.things" android:required="false"/>
... activities etc
</application>
android:required="false" is the key
You just have to make sure, that the code that is running on the emulator is not using any of the Android Things java imports at that time.
One way of making sure the Android Things SDK code is kept separate from your core application (meaning you can run your core app on an Emulator) is to separate the code with Hexagonal Architecture, it's a little off topic for your question but it would allow you to avoid the need to have a "raspberry pi emulator" you can read more about this here: https://www.novoda.com/blog/testing-android-things/
In my opinion it is not possible right now. To early stage, too much hardware dependant (GPIOs etc). If it would be possible at this stage good guys at Google would gladly provide some solution to do that.
If you just want to view the screen you could try Vysor which is Chrome app that works via adb. If your RPI is connected via adb it should work. You can get it here: https://www.vysor.io/.

Analytics: what are p502i and wireless transcoders devices?

We are currently running Google Analytics on an iPhone app, and we got two strange devices appearing at several percents: "DoCoMo P502i" and "Google Wireless Transcoder".
What are these strange devices?
I see the same after implementing the v2 SDK on iPhone. There's not a lot of visits, but enough to do some research.
Google Wireless Transcoder is a project that strips down everything from the page from scripts to styles back to it's bare bones. Some mobile browsers might use the service to reduce the page size before downloading it and showing on mobile devices.
http://www.google.com/gwt/n
It seems that you can instruct Google Wireless Transcoder to not process your page and instead redirect the user to another webpage using:
<link rel="alternate" media="handheld" href=”mobile_page.htm” />
Source: http://www.elc-seo.com/search-engines/google/mobile-search-the-google-wireless-transcoder/
I'm afraid I couldn't find out much about "DoCoMo P502i yet. It also seems to be related to some kind of Google Proxy. Look at the full UserAgent it uses:
DoCoMo/1.0/P502i/c10 (Google CHTML Proxy/1.0)
Source: http://user-agents.my-addr.com/custom_user_agent_lookup-ua_string_analysis_checker_tool.php?i=395&u=DoCoMo_1_0_P502i_c10_Google_CHTML_Proxy_1_0
I'm pretty sure the 2.0 beta versions of the Google Analytics SDK for iOS report an iPod touch as a DoCoMo P502i.
I've just set up a new Analytics profile & tested on two devices, and that's what's I'm seeing.
Yup. A sweet phone, the DoCoMo P502i.

What is the Android equivalent to iOS / iPhone's UICatalog sample app?

I'm looking for an app that demos all of Android UI elements. Similar to the following:
http://developer.apple.com/library/ios/#samplecode/UICatalog/Introduction/Intro.html
Any ideas?
If you are asking for Api demos, follow this link
http://developer.android.com/resources/samples/ApiDemos/index.html
And you can find Api Demos application in your android emulator too.
And the source code to them are shipped with the platforms itself. You can see the source in the
android sdk folder-> Platforms->Android x.x->Samples