- KeyCode на android всегда 229
- 25 Amazing Facts About Android
- 25 Amazing Facts About Android
- Now in Android #26
- Target API requirements, AndroidX, Unit 2 of Android Basics course, Play Store+Billing articles, texture mapping for game developers, RecyclerView, performance, and authentication
- NiA26 in Video and Podcast Form
- Video
- Podcast
- Target API 29+ Required for App Updates
- AndroidX Releases
- Course: Android Basics in Kotlin
- Play Time
- Play Store and Play Billing
- Listening to Developer Feedback to Improve Google Play
- Developers are our partners and by pairing their creativity and innovation with our platforms and tools, together we…
- Answering your FAQs about Google Play billing
- We are committed to providing powerful tools and services to help developers build and grow their businesses while…
- Working with Google Play Billing — Part 1
- For many Android apps, the main source of revenue comes from selling digital content through the app. This can be in…
- Working with Google Play Billing — Part 2
- This is the second post in a series focused on integrating Google Play’s billing system into your Android app. If you…
- Play Console
- All developers will get the new Google Play Console on November 2, 2020
- We hope you’re enjoying the new Google Play Console. With over 350,000 people now using it as their default experience…
- Hey, Game Developers!
- Texture Compression Format Targeting
- Improve Your Game with Texture Compression Format Targeting
- Google Play Asset Delivery allows you to publish an Android App Bundle to Google Play containing all the resources your…
- Texture Counters in the GPU Inspector
- Other Articles & Videos
- RecyclerView: The Basics
KeyCode на android всегда 229
На моей вкладке Samsung Galaxy 4 (Android 4.4.2, Chrome: 49.0.2623.105) Я столкнулся с ситуацией, когда keyCode всегда 229.
Я установил простой тест для двух ситуаций
К счастью, я могу найти сообщения об этом, но я не смог найти его с рабочим решением. Кто-то предложил вместо этого использовать keyup или использовать событие textInput , но этот только запускается при blur .
Теперь, чтобы все это произошло, этого не происходит с браузером акций по умолчанию 🙁
Любая помощь будет оценена!
UPDATE: Если выяснится, что это невозможно, я все равно могу захватить символ перед каретой: post
Обычное событие нажатия клавиши не дает keyCode в устройстве Android. Об этом уже шла большая дискуссия .
Если вы хотите захватить печать space bar или special chars , вы можете использовать событие textInput .
Примечание: textInput не запускается по алфавиту, номеру, обратному пространству, enter и нескольким другим клавишам.
Запуск в ту же проблему, только с клавиатурой Samsung на Android. Работа вокруг заключалась в том, чтобы отключить предсказания клавиатуры, которые фиксировали вход. Все еще анализируя далее, чтобы увидеть, можно ли найти работу на земле JS.
Изменить: мне удалось найти решение для нашего дела. Случилось то, что у нас был белый список разрешенных символов, которым пользователю разрешалось вводить в поле ввода. Это были буквенно-цифровые символы плюс некоторые управляемые символы белого цвета (например, введите, esc, вверх / вниз). У любого другого символьного ввода было бы предотвращено событие по умолчанию.
Случилось так, что все события с кодом 229 были предотвращены, и в результате текст не был введен. Как только мы добавили в белый список код 229, все вернулось к функционированию нормально.
Поэтому, если вы используете какой-то пользовательский или сторонний компонент управления входными формами, убедитесь, что код 229 включен в белый список / разрешен, а не по умолчанию.
Надеюсь, это поможет кому-то.
У меня была такая же проблема на телефонах Samsung S7. Решил его, заменив событие от нажатия клавиш до нажатия клавиши .
Источник
25 Amazing Facts About Android
Android’s logo isn’t actually called Android. Google unofficially calls him Bugdroid.
Ah the age old debate, Apple or Android. It does seem a little bit like David vs Goliath really doesn’t it?
The heavy-hitter and global superpower; Apple, versus the widely used, customizable and in some weird way lesser; Android.
Is this the case though?
It has to be that good if the big boys of the smartphone world are even using it, including Google, HTC, LG and Samsung to name a few.
Today we’re here to look at 25 amazing facts about this undeniably successful and impressive piece of software.
In 2004, the Android OS was developed with the backing of Google by Android Inc. In 2005, Google paid $50 million for the OS.
Originally the Android OS wasn’t designed for the smartphone market; it was actually developed as a digital camera platform.
All Android versions, with the exception of Android 1.0 & 1.1, are named after confectionary and desserts i.e. Jelly Bean, Ice Cream Sandwich and KitKat.
In November 2007, Google launched the Linux-based software system; Android OS.
The first smartphone running Android was released in 2008, the HTC Dream or T-Mobile G1 depending on your country, it had a sliding keyboard.
Android has over a billion activations on devices including tablets and of course smartphones.
Android releases are alphabetical; Astro, Bender, Cupcake, Donut, Eclair, Froyo, Gingerbread, Honeycomb, Ice Cream Sandwich, Jelly Bean, KitKat, Lollypop and Marshmallow.
Android is actually open-source which means that individuals have the option to modify source code of the OS and manufacturers can add features.
The word ‘Android’ means a human with a male robot appearance.
In 2010 Sony Ericsson’s LiveView watch was released, the device linked to Android phones to show and control things like the Twitter feeds, texts and media player.
Phandroid is a website dedicated to anything Android including news, reviews and forums. They were the first dedicated Android website and their first post came the same day as Google officially announced Android in 2007.
In California in 2003, Andy Rubin, Nick Sears and Chris White founded Android Inc.
Andy Rubin, Android’s Co-creator, was responsible for the name choice. Whilst at Apple, Andy was given the name for his love of robots.
NASA even uses Android. They sent 2 Nexus S handsets running Android Gingerbread into space to test their sensors in orbit aboard the International Space Station.
Android is available in around 46 languages, this also means apps can be produced in different languages to cover a wider audience.
Android’s app store “Google Play” has over 48 billion app installs.
Android has branched out to other devices like Google Glass and Watches.
At CES 2011 Android 3.0 Honeycomb was debuted on the Motorola XOOM. It was completely redesigned for tablets and never ran on smartphones. Honeycomb was a huge failure.
Android’s significance in the mobile market was perfectly realized in 2009 when Eric Schmidt, Google CEO, was forced to resign from Apple’s board of directors due to a conflict of interest and his inability to be involved in Apple’s developments and future plans.
Irina Blok designed the logo in 2007, the general idea came from the man on toilet doors.
In 2015, Android’s OS was on 81.61% of all Smartphones sold.
In 2015 there were around 98.5 million Android smartphone users in the US and in 2016 there are 107.7 million.
There is an average of 42.38 million unique users a month who use the Android Facebook app.
As all Android users know, most apps are usually free but the average price seems to be just $0.06.
Android’s logo isn’t actually called Android, Google unofficially call him Bugdroid.
The Android system really is such an impressive piece of technology.
From its open-source nature to the simplicity of use, it ticks all the boxes when it comes to a mobile OS.
With tens of millions of people using it, they can’t be doing too badly for themselves over at Google!
Of course if you are an Apple fan that is completely understandable, just look at their user base they must be doing something right as well!
But I’m sure these facts were just as interesting and fun for you too!
Источник
25 Amazing Facts About Android
Android’s logo isn’t actually called Android. Google unofficially calls him Bugdroid.
Ah the age old debate, Apple or Android. It does seem a little bit like David vs Goliath really doesn’t it?
The heavy-hitter and global superpower; Apple, versus the widely used, customizable and in some weird way lesser; Android.
Is this the case though?
It has to be that good if the big boys of the smartphone world are even using it, including Google, HTC, LG and Samsung to name a few.
Today we’re here to look at 25 amazing facts about this undeniably successful and impressive piece of software.
In 2004, the Android OS was developed with the backing of Google by Android Inc. In 2005, Google paid $50 million for the OS.
Originally the Android OS wasn’t designed for the smartphone market; it was actually developed as a digital camera platform.
All Android versions, with the exception of Android 1.0 & 1.1, are named after confectionary and desserts i.e. Jelly Bean, Ice Cream Sandwich and KitKat.
In November 2007, Google launched the Linux-based software system; Android OS.
The first smartphone running Android was released in 2008, the HTC Dream or T-Mobile G1 depending on your country, it had a sliding keyboard.
Android has over a billion activations on devices including tablets and of course smartphones.
Android releases are alphabetical; Astro, Bender, Cupcake, Donut, Eclair, Froyo, Gingerbread, Honeycomb, Ice Cream Sandwich, Jelly Bean, KitKat, Lollypop and Marshmallow.
Android is actually open-source which means that individuals have the option to modify source code of the OS and manufacturers can add features.
The word ‘Android’ means a human with a male robot appearance.
In 2010 Sony Ericsson’s LiveView watch was released, the device linked to Android phones to show and control things like the Twitter feeds, texts and media player.
Phandroid is a website dedicated to anything Android including news, reviews and forums. They were the first dedicated Android website and their first post came the same day as Google officially announced Android in 2007.
In California in 2003, Andy Rubin, Nick Sears and Chris White founded Android Inc.
Andy Rubin, Android’s Co-creator, was responsible for the name choice. Whilst at Apple, Andy was given the name for his love of robots.
NASA even uses Android. They sent 2 Nexus S handsets running Android Gingerbread into space to test their sensors in orbit aboard the International Space Station.
Android is available in around 46 languages, this also means apps can be produced in different languages to cover a wider audience.
Android’s app store “Google Play” has over 48 billion app installs.
Android has branched out to other devices like Google Glass and Watches.
At CES 2011 Android 3.0 Honeycomb was debuted on the Motorola XOOM. It was completely redesigned for tablets and never ran on smartphones. Honeycomb was a huge failure.
Android’s significance in the mobile market was perfectly realized in 2009 when Eric Schmidt, Google CEO, was forced to resign from Apple’s board of directors due to a conflict of interest and his inability to be involved in Apple’s developments and future plans.
Irina Blok designed the logo in 2007, the general idea came from the man on toilet doors.
In 2015, Android’s OS was on 81.61% of all Smartphones sold.
In 2015 there were around 98.5 million Android smartphone users in the US and in 2016 there are 107.7 million.
There is an average of 42.38 million unique users a month who use the Android Facebook app.
As all Android users know, most apps are usually free but the average price seems to be just $0.06.
Android’s logo isn’t actually called Android, Google unofficially call him Bugdroid.
The Android system really is such an impressive piece of technology.
From its open-source nature to the simplicity of use, it ticks all the boxes when it comes to a mobile OS.
With tens of millions of people using it, they can’t be doing too badly for themselves over at Google!
Of course if you are an Apple fan that is completely understandable, just look at their user base they must be doing something right as well!
But I’m sure these facts were just as interesting and fun for you too!
Источник
Now in Android #26
Target API requirements, AndroidX, Unit 2 of Android Basics course, Play Store+Billing articles, texture mapping for game developers, RecyclerView, performance, and authentication
Welcome to Now in Android, your ongoing guide to what’s new and notable in the world of Android development.
NiA26 in Video and Podcast Form
This Now in Android is also offered in video and podcast form. It’s the same content, but with less reading required. The article version (keep reading!) is still the place to come for links to all of the content that’s covered.
Video
Podcast
Click on the link below, or just subscribe to the podcast in your favorite client app.
Target API 29+ Required for App Updates
By November 2, all app updates will need to target API level 29 or above. Most app updates are there already, but if yours is one of those that isn’t, now is the perfect time to do this. Because November 3 is too late.
AndroidX Releases
AndroidX had the usual updates to various intermediate versions of Alpha, Beta, and RC versions, but there were also a couple of libraries worth noting that released stable versions:
- Media 1.2.0: This release improves AudioAttributesCompat support, support for volume control when using Mediarouter, and fixes for interop with Media2.
- Exif 1.3.0: This version has some important bugfixes (such as one causing Out of Memory situations) as well as the ability to write EXIF metadata for WebP files.
Course: Android Basics in Kotlin
Unit 2 of the Android Basics in Kotlin course is now available. This course allows people with no development experience to learn software development, Android, and Kotlin, all in the same course.
Unit 1: Kotlin basics for Android covers fundamentals like classes, objects, and conditionals, along with how to use images and text in an Android app.
Unit 2: Layouts introduces UI concepts including XML layouts, Material Design, getting user input, and using RecyclerView. Students will build two different apps with these capabilities and more.
Oh, I shouldn’t forget to mention the cost: FREE! Free is my favorite price!
Play Time
There were some recent articles on Google Play that developers might want to check out.
Play Store and Play Billing
Sameer Samat published an article which clarifies some requirements and policies for apps that use the Play Store. For example, it talks about being hosted on Play Store… as well as other app stores, and about requirements around the use of Play Billing for in-app purchases of digital goods.
Listening to Developer Feedback to Improve Google Play
Developers are our partners and by pairing their creativity and innovation with our platforms and tools, together we…
To help understand some of the details in the previous article, Mrinalini Loew also published an FAQ with questions (and answers!) around these and other Play Store policies.
Answering your FAQs about Google Play billing
We are committed to providing powerful tools and services to help developers build and grow their businesses while…
Also, if you want to know more about how to use Play Billing, check out Caren Chang’s series:
Working with Google Play Billing — Part 1
For many Android apps, the main source of revenue comes from selling digital content through the app. This can be in…
Working with Google Play Billing — Part 2
This is the second post in a series focused on integrating Google Play’s billing system into your Android app. If you…
Play Console
If you use the Play Console, hopefully you’ve had a chance to check out the new version of the console, which has been in Beta since June. As usually happens with Beta products (at least in the ideal case), Play Console will be coming out of Beta and launching the stable version a month from now, on November 2. The old Play Console will go away and everyone will use the new version.
This new version offers various features, including a vastly improved UI and experience (it was a complete redesign effort).
If you want to check out the new one before it launches, go to play.google.com/console. Or just wait in aching suspense and start using it when the new console becomes the only console on November 2.
All developers will get the new Google Play Console on November 2, 2020
We hope you’re enjoying the new Google Play Console. With over 350,000 people now using it as their default experience…
Hey, Game Developers!
We posted content recently that’s specifically for developers writing games for Android:
Texture Compression Format Targeting
Texture compression is a useful technology for games; by using a different formats, developers can achieve smaller download and runtime footprint as well as better runtime performance. But not all devices support all possible texture formats. So what’s a developer to do?
Play Asset Delivery now allows you to use multiple different texture formats in your App Bundle, and it will download the appropriate version based on the user device’s capabilities. For a quick overview of texture compression, as well as details on how to take advantage of this new game distribution feature, Check out this article from Daniel Galpin.
Improve Your Game with Texture Compression Format Targeting
Google Play Asset Delivery allows you to publish an Android App Bundle to Google Play containing all the resources your…
Or if you prefer your content in video form, here’s the same information, from Daniel’s Game Dev Show:
Texture Counters in the GPU Inspector
Speaking of textures and game development, Francesco Carucci posted a video to the Game Dev Show that shows how to use one of the features in the new Android GPU Inspector tool to track down performance problems related to the use of textures.
Textures are at the heart of the graphics that are rendered by games, and can therefore be at the heart of performance problems. The video provides a nice example of using the GPU Inspector, while talking about some of the problems around bandwidth, cache, and filtering, and how these issues are surfaced in the tool.
Other Articles & Videos
RecyclerView: The Basics
Meghan Mehta has posted the first in a hopefully ongoing series on RecyclerView.
There are plenty of resources on RecyclerView already, including a RecyclerView guide, samples in both Kotlin and Java, and of course the reference documentation itself. But if you just want to create a basic RecyclerView to display, say, some text items, or if you want a simple overview, then this article might be just for you, and if you want the sample code underlying it, you can also check out the GitHub project for it.
Источник