androidthings / new-project-template Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Hi,
first of all, excuse me if this is not the proper via for this question but I didn't find another site. I am starting a project with intel edison and android things. I'm trying to get a scan result so I have to enable location permissions. In the project overview https://developer.android.com/things/sdk/index.html I can read "Requesting Permissions at Runtime is not supported because embedded devices aren't guaranteed to have a UI to accept the runtime dialog. Declare permissions that you need in your app's manifest file. All normal and dangerous permissions declared in your app's manifest are granted at install time." so I add this permision into the manifest but I don't get any result. When I check the permission in this way
if (checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
Log.d("MainActivity", "no ACCESS_FINE_LOCATION permision");
} else {
Log.d("MainActivity", "ACCESS_COARSE_LOCATION permision granted");
}
It seems to be disabled. How can I retrieve the scan results?
Thanks.
Installation failed with message INSTALL_FAILED_MISSING_SHARED_LIBRARY: Package couldn't be installed in /data/app/com.example.androidthings.myproject-1: Package com.example.androidthings.myproject requires unavailable shared library com.google.android.things; failing!.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
click ok and show messages:
$ adb shell pm uninstall com.example.androidthings.myproject
DELETE_FAILED_INTERNAL_ERROR
Error while Installing APK
Updating the Gradle plugin to 2.2.3 gives the error:
Could not resolve com.google.android.things:androidthings:0.1-devpreview
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.