All Projects → mobicarton → Carton Android

mobicarton / Carton Android

Carton SDK and main sample

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Carton Android

CircuitMess-Ringo
CircuitMess Ringo is an educational DIY mobile phone designed to bring electronics and programming to the crowd in a fun and interesting way.
Stars: ✭ 62 (+785.71%)
Mutual labels:  phone, diy
Deej
Set app volumes with real sliders! deej is an Arduino & Go project to let you build your own hardware mixer for Windows and Linux
Stars: ✭ 730 (+10328.57%)
Mutual labels:  diy
Linphone Iphone
Linphone is a free VoIP and video softphone based on the SIP protocol. Mirror of linphone-iphone (git://git.linphone.org/linphone-iphone.git)
Stars: ✭ 462 (+6500%)
Mutual labels:  phone
Relativty
An open source VR headset with SteamVR supports for $200
Stars: ✭ 5,544 (+79100%)
Mutual labels:  diy
Red Moon
Android screen filter app for night time phone use.
Stars: ✭ 476 (+6700%)
Mutual labels:  phone
Telegram Sms
An SMS-forwarding Robot Running on Your Android Device.
Stars: ✭ 641 (+9057.14%)
Mutual labels:  phone
Vue Tel Input
International Telephone Input with Vue https://educationlink.github.io/vue-tel-input/
Stars: ✭ 443 (+6228.57%)
Mutual labels:  phone
Open Home Automation
Open Home Automation with Home Assistant, ESP8266/ESP32 and MQTT
Stars: ✭ 820 (+11614.29%)
Mutual labels:  diy
Calendar Phonegap Plugin
📅 Cordova plugin to Create, Change, Delete and Find Events in the native Calendar
Stars: ✭ 729 (+10314.29%)
Mutual labels:  phone
Tensorflowandroiddemo
TensorFlow android demo 车道线 车辆 人脸 动作 骨架 识别 检测 抽烟 打电话 闭眼 睁眼
Stars: ✭ 589 (+8314.29%)
Mutual labels:  phone
Twilio Csharp
Twilio C#/.NET Helper Library for .NET Framework 3.5+ and supported .NET Core versions
Stars: ✭ 541 (+7628.57%)
Mutual labels:  phone
Diy Macbook Stand
Stand for 12" MacBook, 13" MacBook Air and 13" MacBook Pro
Stars: ✭ 487 (+6857.14%)
Mutual labels:  diy
Splitflap
DIY split-flap display
Stars: ✭ 670 (+9471.43%)
Mutual labels:  diy
Opentoflidar
Open Source TOF Lidar
Stars: ✭ 463 (+6514.29%)
Mutual labels:  diy
Linphone Android
Linphone.org mirror for linphone-android (https://gitlab.linphone.org/BC/public/linphone-android)
Stars: ✭ 740 (+10471.43%)
Mutual labels:  phone
React Phone Input 2
📞 Highly customizable phone input component with auto formatting
Stars: ✭ 446 (+6271.43%)
Mutual labels:  phone
Phone
With a given country and phone number, validate and reformat the mobile phone number to the E.164 standard. The purpose of this is to allow us to send SMS to mobile phones only.
Stars: ✭ 531 (+7485.71%)
Mutual labels:  phone
Ispindel
electronic Hydrometer
Stars: ✭ 623 (+8800%)
Mutual labels:  diy
Prometheusalert
Prometheus Alert是开源的运维告警中心消息转发系统,支持主流的监控系统Prometheus,Zabbix,日志系统Graylog和数据可视化系统Grafana发出的预警消息,支持钉钉,微信,华为云短信,腾讯云短信,腾讯云电话,阿里云短信,阿里云电话等
Stars: ✭ 822 (+11642.86%)
Mutual labels:  phone
Crboxinputview
Verify code input view. Support security type for password.短信验证码输入框,支持密文模式
Stars: ✭ 749 (+10600%)
Mutual labels:  phone

Carton

v0.1.0 - turn the phone to glass of your smart device

Get more information about this project on the official website carton.mobi

Getting Started

Either you start a new app or you adapt an existing one, there are few easy steps to do in order to fully enjoy a CARTON Viewer.

1 - Add the library to your gradle app file

dependencies {
    ...

    compile 'mobi.carton:library:0.1.0'
}

2 - Update your manifest: set the orientation of your activity (all of them) to landscape, add a category to make your launcher (only) activity compatible, finally, add a simple description.

<application
    ...
    android:description="@string/app_description">

    <activity
        ...
        android:screenOrientation="landscape">
        <intent-filter>
            <action android:name="android.intent.action.MAIN"/>
            <category android:name="android.intent.category.LAUNCHER"/>
            ...
            <category android:name="mobi.carton.intent.category.COMPATIBLE"/>
        </intent-filter>
    </activity>
</application>

3 - Extend your activity with CartonActivity

public class MyActivity extends CartonActivity {
    ...

Features

Auto adaptive screens

In order to fully use the Carton viewer, everything on the screen needs to be horizontally reversed, the brightness set the maximum, and the size and margin has to be set to respectively 60x35mm and 10x10mm (from top left). Carton SDK make it easy by extending CartonActivity class instead of Activity.

public class MainActivity extends CartonActivity {

    ...

Default Launcher Activity

The default launcher provide help to the user to place the mobile phone into the Carton viewer.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    startDefaultLauncher();

    ...
}

Alt text

Head Gesture Recognition

This library is here to help head gesture recognition when using Carton. Three kinds of gestures are available : tilting, nodding, and shaking.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    ...

    HeadRecognition headRecognition = new HeadRecognition(this);
    headRecognition.setOnHeadGestureListener(new HeadRecognition.OnHeadGestureListener() {
        @Override
        public void onTilt(int direction) {
            switch (direction) {
                case HeadRecognition.TILT_RIGHT:
                    // do whatever
                break;
                case HeadRecognition.TILT_LEFT:
                    // do whatever
                break;
            }
        }

        @Override
        public void onNod(int direction) {
            switch (direction) {
                case HeadRecognition.NOD_DOWN:
                    // do whatever
                break;
                case HeadRecognition._NOD_UP:
                    // do whatever
                break;
            }
        }

        @Override
        public void onShake() {
            // ... do whatever
        }
    });
}

// ...

@Override
protected void onResume() {
    super.onResume();
    mHeadRecognition.start();
}

@Override
protected void onPause() {
    super.onPause();
    mHeadRecognition.stop();
}

Download

Gradle

compile 'mobi.carton:library:0.1.0'

Contributing

If you would like to contribute code, you can do so through GitHub by forking the repository and sending a pull request. When submitting code, please make every effort to follow existing conventions and style in order to keep the code as readable as possible.

License

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Authors

It is an open-source and open-design project, everyone is welcome or encouraged to contribute. Besides, this project is funded and supported by Natural Sciences and Engineering Research Council of Canada and 44 screens.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].