This is the official Google+ community for developers working with Google's IoT platform, including Android Things and Weave
ציבורית
1,697 חברים
הצג הכל
חברים (1,697)
תמונת הפרופיל של Wayne Piekarski
תמונת הפרופיל של Renato Mangini
תמונת הפרופיל של Google Developers
תמונת הפרופיל של Akhil Raja
תמונת הפרופיל של Talha Afzal
תמונת הפרופיל של José López
תמונת הפרופיל של Keaton Walker
תמונת הפרופיל של Alvin Ho
תמונת הפרופיל של Danery EryDany
תמונת הפרופיל של Paulus Schoutsen
תמונת הפרופיל של Toru UENO
תמונת הפרופיל של Jeff Reiner
תמונת הפרופיל של eVk Sys
תמונת הפרופיל של suzy shop
תמונת הפרופיל של Adam Stroud (adstro)
תמונת הפרופיל של praveen pankaj
תמונת הפרופיל של Carlos Digibits
תמונת הפרופיל של Bhaskar Borthakur
תמונת הפרופיל של David Vukovic
תמונת הפרופיל של Mark Gillespie
תמונת הפרופיל של Maria Vera
תמונת הפרופיל של Iurii Tachynskyi
תמונת הפרופיל של Suelen Aparecida da Silva
תמונת הפרופיל של Morrison Chang

Stream

הצטרף לקהילה הזו כדי לכתוב פוסט או תגובה.

Pason Zhang

Discussion  - 
 
I am paying attention to android things. What could I do for this community?

I have been developing system software of mobile phone for more than 10 years . I am free now and really want to do something interesting.

several months ago , I was studying ostro, a IoT platform from Intel. I have one edison board. But I think IoT is a very large system, software is most important and need to integrate with a lot of 3rd part component such a AI,cloud service and even eco system. So that need a leading company to do that. I would like to follow google.

 ·  תרגם
1
הוסף תגובה...

Vishal Dubey

Discussion  - 
 
https://github.com/vishal-android-freak/ADXL362-Interfacing-Library

ADXL362 3-Axis accelerometer interfacing with Raspberry Pi.

1.) Contains pure Java library for using it with Raspbian or any OS supporting Oracle JDK, on RPi.
2.) Android things library to work on the developer preview of android things.

Enjoy :)
 ·  תרגם
2
הוסף תגובה...

Vishal Dubey

Discussion  - 
 
https://github.com/vishal-android-freak/ADXL362-Interfacing-Library

ADXL362 Accelerometer interfacing library with Raspberry Pi. It's written in pure java and might work on different platforms where Oracle JDK support exists. Android things support on it's way
Enjoy! ;)
 ·  תרגם
1
הוסף תגובה...
 
ADXL345 3-axis accelerometer AndroidThings device driver #AndroidThings #RaspberryPi3 +Android Developers +Raspberry Pi +Android
 ·  תרגם
AndroidThings-ADXL345 - ADXL345 3-axis accelerometer AndroidThings device driver
3
הוסף תגובה...
 
Can anybody please confirm that Android Things doesn't work with Raspberry Pi Foundation's official 7" Touchscreen please?

I just got one, but I can't see anything when plugged in and on. I don't have a way to flash Raspbian until late tonight, but I just want to see if anybody else is having issues with this.
 ·  תרגם
2
תמונת הפרופיל של Colton Donnellyתמונת הפרופיל של Ben De La Haye
3 תגובות
 
Works like a charm for me, turns out you don't even need the I2C connectors on the Pi, just the ribbon cable, power and ground.
 ·  תרגם
הוסף תגובה...
 
After 4 nights of working with these during my free time, now is the time of making it responsive. And also, the start of cleaning my dirty coding (inline css for fast testing results only).
 ·  תרגם
2
הוסף תגובה...
 
The second part of the Character LCD write up is available. Now I'm off to find something else to do with Android Things...

http://android.geek.nz/?p=68

 ·  תרגם
9
1
הוסף תגובה...
 
With Christmas ahead I want to share yet another Android Things LED example.
This time using a RaspberryPi together with the Adafruit 16-Channel 12-bit PWM board (or a clone of it). The PWM board is attached to the I2C bus, so I included a user space driver for the embedded PCA9685 I²C LED driver chip.
The lights are controlled with a companion app using the Nearby Connections API.

https://github.com/holgi-s/ColorThings
 ·  תרגם
ColorThings - ColorConnection server for Android Things
13
הוסף תגובה...

Dave Smith

Discussion  - 
 
It's getting colder here in Colorado as we approach the holidays, so I built a candle to keep me warm! This is also a great example of mapping Android concepts to IoT in Android Things.

The code uses ObjectAnimator to vary the output of the PWM connected to a pair of LEDs, and BounceInterpolator to create a flickering effect as the animations run infinitely. No timers or complex logic!

Gist: https://gist.github.com/devunwired/8656c1902ec856e5f4b26f45cd21f2fd
 ·  תרגם
46
9
תמונת הפרופיל של Vishal Dubeyתמונת הפרופיל של Johannes Bolz
3 תגובות
 
Good use of ObjectAnimator! After all, it is an animated UI. :-)
 ·  תרגם
הוסף תגובה...

Adam Brown

Discussion  - 
 
PSA: If anyone is interested in using a Software Keyboard, note that after installing one via ADB you need to first fire the "Input Method Settings" Intent and enable the keyboard:

startActivityForResult( new Intent( android.provider.Settings.ACTION_INPUT_METHOD_SETTINGS), 0 );

This tripped me up for a bit.

However, does anyone know how to finish an activity like the system settings without a back button?
 ·  תרגם
2
תמונת הפרופיל של Jonathan Korenתמונת הפרופיל של Adam Brown
2 תגובות
 
Ah nice I was looking for singing look for something that, thanks
 ·  תרגם
הוסף תגובה...

נוצר על ידי

על הקהילה הזו

Learn more about working with Google's IoT platform, including Android Things and Weave. This community is monitored and supported by various teams at Google working on these platforms. Use this community to ask development questions, discuss tools and new techniques, share source code, and features and fixes you would like. We also maintain an tags on stackoverflow.com for specific coding questions, and look for bug reports with the samples on github.com. Please do not advertise your apps or services to this community unless you make the source code available under an open source license.
 
 
One of the pain points I've found with #AndroidThings so far is the need for an ethernet cable to connect over ADB. So wrote this snippet to connect to my local wifi network, just call it in your app's onCreate to be free of the ethernet cable!


public void connectToWifi(Context context, String ssid, String passphrase) {

// <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Intent intent = new Intent();
intent.setClassName("com.google.wifisetup", "com.google.wifisetup.WifiSetupService");
intent.setAction("WifiSetupService.Connect");
intent.putExtra("ssid", ssid);
intent.putExtra("passphrase", passphrase);
startService(intent);

// Starting the service is asynchronous, we'll wait 1 second to allow the connection to happen
new Handler(getMainLooper()).postDelayed(new Runnable() {
@Override
public void run() {

// <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE);
String ipAddress = Formatter.formatIpAddress(wifiManager.getConnectionInfo().getIpAddress());

if (wifiManager.getConnectionInfo().getSSID().contains(ssid)) {
Toast.makeText(context, "*** Internet is connected - IP:" + ipAddress + " ", Toast.LENGTH_LONG).show();
Log.i(this.getClass().getSimpleName(), "** Internet is connected - IP:" + ipAddress + " ");

} else {
Toast.makeText(context, "** Internet is NOT connected! ", Toast.LENGTH_SHORT).show();
Log.e(this.getClass().getSimpleName(), "** Internet is NOT connected! *");
}
}
}, 1000);
}
 ·  תרגם
4
תמונת הפרופיל של Ben De La Hayeתמונת הפרופיל של Haris sulaiman
3 תגובות
 
+Ben De La Haye Thank you ! it has been one of the pain points of Android things on raspberry pi.
 ·  תרגם
הוסף תגובה...
 
Hey everybody,

I'm just implementing a communication layer for my AT project. Now that I'm trying to use WiFi direct, it gives me an error code 1 for each adding a local service, creating a discovery request and doing the service discovery. I'm more or less trying to use https://android.googlesource.com/platform/development/+/master/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery?autodive=0%2F

Is it just me, or might there be a problem with AT at the moment?

Thanks a lot and have some nice days!
 ·  תרגם
android / platform / development / master / . / samples / WiFiDirectServiceDiscovery / src / com / example / android / wifidirect / discovery. tree: 19ca8e68d1117c5eb57f4cb96f6d935bc7c1d864 [path history] [tgz]. ChatManager.java · ClientSocketHandler.java · GroupOwnerSocketHandler.java ...
1
הוסף תגובה...
 
HMC5883L 3-axis magnetometer AndroidThings device driver +Android Developers +Raspberry Pi +Android
 ·  תרגם
AndroidThings-HMC5883L - HMC5883L 3-axis magnetometer AndroidThings device driver
4
1
הוסף תגובה...

Matt Jones

Discussion  - 
 
Weave question -- doesn't seem like you can define your own Device Schema or traits. Is that right? Seems really limiting. Had a few ideals beyond turning on/off lights...
 ·  תרגם
2
תמונת הפרופיל של Allen “Prisoner” Firstenbergתמונת הפרופיל של Matt Jones
2 תגובות
 
that's good to hear, hope to see that soon. the documentation states that google will increase the number of schema quarterly but doesn't mention (unless i missed it) that users could create their own schema.
 ·  תרגם
הוסף תגובה...
 
A little Christmas morning hacking. Time to add some 'Internet' to IoT. Using Retrofit to ping Metlink for arrival times at a couple of local bus stops.

http://android.geek.nz/?p=98

 ·  תרגם
One of the joys of Android development is that; whatever your idea, there is likely to be a library available to help you out. Most new projects begin with the addition of a few favourites. If you are going to be consuming any web APIs then high on your list should be retrofit.
5
תמונת הפרופיל של Dave Smith
 
This is really cool David, thanks for sharing!
 ·  תרגם
הוסף תגובה...

王洪伟

Discussion  - 
 
Does Android IoT support other languages except for English? I have found messy code when displaying Chinese on the screen. 
 ·  תרגם
1
הוסף תגובה...
 
Simple servo hooked up to a skeleton that I've had on my porch since Halloween, step one to a project I'm aiming to build out. Have motion detector sensors on the way (should be here today), so Ill get those running next and have Things snap a picture to upload to Firebase on motion detection. Once that all works, just waiting on a way to output speech so I can use firebase to send messages from my phone to the RPI so the skeleton can communicate quick things for me while sitting on my porch :P
 ·  תרגם
3
הוסף תגובה...

Adam Brown

Discussion  - 
 
I might have a bug here, or I could be doing something stupid. But has anyone tried using the WiFi manager's scan function yet?

https://code.google.com/p/android/issues/detail?id=230869
 ·  תרגם
Android Open Source Project - Issue Tracker
1
הוסף תגובה...
 
If Android Things gets open source I would like to see support for RISC-V SoCs like https://www.sifive.com/products/hifive1/
 ·  תרגם
SiFive is the first fabless semiconductor company to build customized silicon based on the free and open RISC-V instruction set architecture.
1
הוסף תגובה...

Carl Whalley

Discussion  - 
 
On a Pi 3, how can you direct which screen to write to when both a touchscreen and a HDMI monitor is connected?
 ·  תרגם
1
הוסף תגובה...