RegisterActivity
DeviceInfoEndpoint.java
DeviceInfo.java
MessageEndpoint.java
RegisterActivity.java
DeviceInfoEndpoint
onCreate()
...import android.content.Intent;...@Override protected void onCreate(Bundle savedInstanceState) { ... Intent intent = new Intent(this, RegisterActivity.class); startActivity(intent); }
http://<project-id>.appspot.com/_ah/api/explorer
LOCAL_ANDROID_RUN
true
CloudEndpointUtils.java
http://<project-id>.appspot.com
DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
% git push appengine master
SELECT percentile_cont(0.5) OVER (PARTITION BY room ORDER BY data) AS median, roomFROM [io_sensor_data.moscone_io13]WHERE sensortype='temperature'
SELECT MAX(median) AS median, room FROM ( SELECT percentile_cont(0.5) OVER (PARTITION BY room ORDER BY data) AS median, room FROM [io_sensor_data.moscone_io13] WHERE sensortype='temperature')GROUP BY room
SELECT DENSE_RANK() OVER (ORDER BY median) rank, median, room FROM ( SELECT MAX(median) AS median, room FROM ( SELECT percentile_cont(0.5) OVER (PARTITION BY room ORDER BY data) AS median, room FROM [io_sensor_data.moscone_io13] WHERE sensortype='temperature' ) GROUP BY room)
curl --header "Authorization: Bearer youraccesstoken" \ --header "Content-Type: application/json" \ https://www.googleapis.com/sql/v1beta1/projects/yourprojectid/instances \ --data "{\"instance\" : \"instancename\", \"project\" : \"yourprojectid\", \"settings\" : {\"tier\" : \"D2\"}}" -X POST
Use promo code NEXT1720 to save $300 off general admission