New Developments - Google Play for Chrome OS / Chromebooks

Google Play has recently sent out an email to developers with the subject “Google Play is launching on Chromebooks”

Three months ago, they talked about running Google Play apps on Chromebooks at I/O - https://www.youtube.com/watch?v=ZLYzX0G0YKQ

Has there been any news or feedback from Corona on this that I may have missed? Would love to take advantage of the opportunity to release some of our Corona-written apps onto supported Chromebooks. Please share any news available about this possibility! Thank you!

Other notes/links in the email from Google:

* Android Developers Help Center article to learn how to optimize your Android apps for Chromebooks - https://developer.android.com/topic/arc/index.html

* Update the AndroidManifest.xml and set touchscreen as not required if you want to reach customers on non-touchscreen Chromebooks

* Chrome OS device support for apps - https://developer.android.com/topic/arc/device-support.html

1 Like

This is should be supported ,you probably need to add this to you build.settings like so

android = { { -- Permission to retrieve current location from the GPS "android.permission.ACCESS\_FINE\_LOCATION", -- Permission to retrieve current location from WiFi or cellular service "android.permission.ACCESS\_COARSE\_LOCATION", {name ="android.permission.INTERNET", required = true}, {name = "android.hardware.camera", required = true}, {name = "android.hardware.touchscreen", required = false}, -- this is important {name = "android.permission.WRITE\_EXTERNAL\_STORAGE", required = true} }, },

Other then that you should be good to go.

I am pretty sure this is a good way to tell if you have a touch screen

local num = system.activate( “multitouch” )

print( num )

if num then

print(“this has a good touch screen”)

end

Again I don’t have a chromebook to test every thing on but this info should work

Today we receive an email from google. With information to make our app compatible to chromebook.

Is it possible to have an update of the build setting in documentation?

What information are you looking at having added?

Android apps function the same on Chromebook( if you have a model that will allow you to do this). You only have to add that one permission. Other than that on small detail every thing is the same. A mouse works like a finger. Like it should if you have plugined a mouse to an android phone.

We have only to add this permision? 

{name = "android.hardware.touchscreen", required = false},

I am working to let the player play with the keyboard. There is someting I find any where is how to know if the key is still down. If we press a key during 10sec the listener detect only one press of the key.

Generally speaking you should get a single “down” or “up” event for a key press. This tutorial is relevant:

https://coronalabs.com/blog/2014/02/04/tutorial-continuous-actions-in-corona/

However, some keyboard drivers include the ability to generate multiple key events while the key is being held down (typeamatic?). You will a series of down keys and an up when it’s released.

You can use the same principle. You have a flag that you set that the key is down and if you get more downs before you get an up, you can ignore them.

Rob

Thank you Rob!

This is should be supported ,you probably need to add this to you build.settings like so

android = { { -- Permission to retrieve current location from the GPS "android.permission.ACCESS\_FINE\_LOCATION", -- Permission to retrieve current location from WiFi or cellular service "android.permission.ACCESS\_COARSE\_LOCATION", {name ="android.permission.INTERNET", required = true}, {name = "android.hardware.camera", required = true}, {name = "android.hardware.touchscreen", required = false}, -- this is important {name = "android.permission.WRITE\_EXTERNAL\_STORAGE", required = true} }, },

Other then that you should be good to go.

I am pretty sure this is a good way to tell if you have a touch screen

local num = system.activate( “multitouch” )

print( num )

if num then

print(“this has a good touch screen”)

end

Again I don’t have a chromebook to test every thing on but this info should work

Today we receive an email from google. With information to make our app compatible to chromebook.

Is it possible to have an update of the build setting in documentation?

What information are you looking at having added?

Android apps function the same on Chromebook( if you have a model that will allow you to do this). You only have to add that one permission. Other than that on small detail every thing is the same. A mouse works like a finger. Like it should if you have plugined a mouse to an android phone.

We have only to add this permision? 

{name = "android.hardware.touchscreen", required = false},

I am working to let the player play with the keyboard. There is someting I find any where is how to know if the key is still down. If we press a key during 10sec the listener detect only one press of the key.

Generally speaking you should get a single “down” or “up” event for a key press. This tutorial is relevant:

https://coronalabs.com/blog/2014/02/04/tutorial-continuous-actions-in-corona/

However, some keyboard drivers include the ability to generate multiple key events while the key is being held down (typeamatic?). You will a series of down keys and an up when it’s released.

You can use the same principle. You have a flag that you set that the key is down and if you get more downs before you get an up, you can ignore them.

Rob

Thank you Rob!