Skip to content

Instantly share code, notes, and snippets.

[
{
"id": 1,
"type": "car",
"brand": "Bugatti Veyron",
"colors": [
"red",
"black"
],
"img": "https://upload.wikimedia.org/wikipedia/commons/thumb/c/c9/Bugatti_Veyron_16.4_%E2%80%93_Frontansicht_%281%29%2C_5._April_2012%2C_D%C3%BCsseldorf.jpg/520px-Bugatti_Veyron_16.4_%E2%80%93_Frontansicht_%281%29%2C_5._April_2012%2C_D%C3%BCsseldorf.jpg"
[
{
"id": 201,
"brand": "Aiways",
"model": "U5",
"version": "63 kWh",
"category": "CAR",
"connectorType": "CCS",
"recommendedCharger": "150+",
"chargeSpeedInKw": 100,
@sabrimev
sabrimev / PhonecallReceiver.java
Created September 29, 2019 18:39 — forked from ftvs/PhonecallReceiver.java
Detecting an incoming call coming to an Android device. Remember to set the appropriate permissions in AndroidManifest.xml as suggested in the Stackoverflow link. Usage example in comments. Source: http://stackoverflow.com/a/15564021/264619 Explanation: http://gabesechansoftware.com/is-the-phone-ringing/#more-8
package com.gabesechan.android.reusable.receivers;
import java.util.Date;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.telephony.TelephonyManager;
public abstract class PhonecallReceiver extends BroadcastReceiver {
@sabrimev
sabrimev / MainActivity.java
Created September 25, 2019 18:15 — forked from simlegate/MainActivity.java
something should android do when screen on and screen off .
package com.simlegate.saveresource;
import android.app.Activity;
import android.os.Bundle;
public class MainActivity extends Activity {
public void onCreate(Bundle savedInstanceState) {