google-chrome-arc

Android app on Chromebook to access USB devices?

一笑奈何 提交于 2019-12-24 15:11:14
问题 I am taking an Android app and making it run on Chrome using the ARC Welder. For best results we're only targeting the Chromebook / Chrome OS, not Windows or OSX. The app is running with some minor glitches, but I need to enumerate photos on an inserted SD card. The problem is that the /mnt folder accessible within Android Runtime only contains the virual sdcard folder, and does not reflect the real SD Card or USB Flash Drives attached to the Chromebook. How can these photos be automatically

local file access on Google-Chrome-ARC?

こ雲淡風輕ζ 提交于 2019-12-22 00:16:33
问题 Is there any way to implement local file access on ARC? As i understand Chrome is sandboxed, so access would be hard, but it seems that the defined android data directory could have a specific folder used for file access? 回答1: Yes, application on ARC is sandboxed and unable to access to local file system. However, you can access to the file on your local file system by starting Activity with specific Intent: ACTION_GET_CONTENT for reading file and ACTION_SEND for saving file. e.g. If you

chrome ARC-Welder javascript console plugin not defined

浪子不回头ぞ 提交于 2019-12-21 11:08:10
问题 I installed ARC_Welder to test run my android apps. App runs , but I was trying to get logs. I read this article : https://developer.chrome.com/apps/getstarted_arc . Tried running -- plugin.shell('adbd') in JavaScript console (chrome://inspect/#apps) . But i'm getting this error : Uncaught ReferenceError: plugin is not defined Same thing happened when tried running : plugin.shell('logcat'); I'm not a chrome javascript developer. please help me understand where i am wrong.. 回答1: I just had the

What are available “Additional Metadata” keys in ARC welder

时光总嘲笑我的痴心妄想 提交于 2019-12-21 05:00:23
问题 I'm looking for the reference documentation for the "Additional Metadata" field in ARC Welder. Here and there (also on SO) I can see answers mentioning specific keys (such as resize , formFactor , enableExternalDirectory , usePlayServices ) but no reference to documentation. Is there any? 回答1: Looking through arc source code best I could find: https://chromium.googlesource.com/arc/arc/+/master/src/build/metadata/definitions.json which lists all the keys with some basic one-line help. I think

ARC with USB access?

亡梦爱人 提交于 2019-12-20 04:16:19
问题 I've got an Android application which can be remote controlled by USB midi devices. The app itself is running fine with google ARC but the USB module doesn't detect any USB device. I already found that it is possible for Chrome apps to use usb but only when declaring each specific device in the manifest (https://developer.chrome.com/apps/app_usb). Does Google ARC support USB access? Will it be possible to get a list with all USB devices without declaring them first in the manifest? 回答1: Sorry

Can't find usb devices using Android app

会有一股神秘感。 提交于 2019-12-12 05:57:15
问题 I'm going to run Android app on Chromebook directly to access connected usb devices, not from ARC Welder. I want to use ES File Explorer to access my usb devices. Plugin a USB OTG wire and run ES File Explorer on normal Android devices, it can detect connected USB devices as expected. However, if I run the same ES File Explorer Android app on Chromebook, it can not detect connected USB devices. Looks in this case, Chromebook intercepts USB low level data packages. Because I can use Chromebook

How to identify product model in Android app on ARC (Build.model is n/a)?

纵饮孤独 提交于 2019-12-12 04:56:33
问题 Android apps can get product information by reading BUILD.MANUFACTURER and BUILD.MODEL, but when running on ARC (chrome) these are always "chromium" and "App Runtime for Chrome". Motivation: It is useful for apps which a person uses across multiple devices to be able to identify the model of device the person is using, so you can eg. tell them that some data or action came from their "Nexus 7", or their "Acer Chromebook C910". It is also useful when trying to resolve an obscure issue, to know

How can my Android App see the mounted directory when running on Chromebook with ARC { “enableExternalDirectory”: true }

青春壹個敷衍的年華 提交于 2019-12-12 03:11:29
问题 This emerged out of an earlier question Android app on Chromebook to access USB devices? It seems that ARC does not yet provide any way to access external storage except using { "enableExternalDirectory": true } . This has some significant limitations for my use case. The intent is that a user can insert a USB Flash Drive into the device, and for my app to read and write files on it. Unfortunately, with the enableExternalDirectory option enabled, the user is forced to select a directory, even

SSL Connection not working

萝らか妹 提交于 2019-12-11 10:36:24
问题 When I connect to a server with an official SSL certificate, i get a javax.net.ssl.SSLHandshakeException java.security.cert.CertPathValidatorException: Trust Anchor for certification path not found. But when I run this app on an Android-phone, it works. Any solutions? Best regards! 回答1: I found it out myself. Avast puts it own SSL certificate and Android does not trust this. 来源: https://stackoverflow.com/questions/29557101/ssl-connection-not-working

Is it possible to monetize Google Chrome ARC apps?

给你一囗甜甜゛ 提交于 2019-12-11 04:57:36
问题 Google released an App Runtime for Chrome (Beta), called ARC, that lets you run your favorite Android apps on Chrome OS. Is it possible to monetize Google Chrome ARC apps through Google Play or Chrome Web Store? (I would like to add an "unlock all features" in-app purchase option to my app) 回答1: You can create in-app products in Chrome Dev Dashboard with same IDs as in Google Play Dev Console. Users will be be directed to Chrome Web Store payment, no changes in code required. Unfortunately,