Code Monkey home page Code Monkey logo

archillect's Introduction

Archillect

This is a simple app to turn an Android tablet into a picture frame that displays content from Archillect. Archillect is an AI that finds interesting images and redistributes them. It's really cool and you should totally check it out.

Since I like the idea of a picture frame with interesting images which I do not have to update myself (because I won't after the second or third time) I decided to use Archillect's feed. The most accessible way seemed to be to use its twitter feed.

So I created a new project, dropped Twitter4J into it along with Picasso to download and display the images and both Bolts Tasks and Spork to add a little streamlining and there it was (well, almost). Thank you for making my life easier!

Getting it up and running

I didn't want to bother with creating a nice Twitter login et cetera so you'll just have to create your own Twitter application and create a personal access token (read only is enough) if you want to join in on the fun. In /app/src/main/resources you'll find twitter4j.properties.sample. Rename that to twitter4j.properties and fill in the tokens you got from Twitter. Hit run and you're set.

The app registers as a Launcher, so when your device next boots you get to choose if you want to start this app or any other launchers you might have installed. It's by far the easiest way to get an app to start on boot and since I made this for a tablet which I am going to be using solely for this purpose (for now, anyway), it suits my needs just fine. YMMV.

When the app's open, you can tap the screen to show a settings button which will open your device settings. This might come in handy, since you're now using this app as launcher. If you're using a device with an API level below 19 (4.4), you'll have to tap twice because that's how Android does things.

Todo

  • Add readme
  • A swanky icon
  • Start up the app on boot
  • Crossfade images
  • Add auto-on/off settings maybe

Don't be mad if I don't do my todo's. You're not my mum. Unless it is you in which case hi mum! You're the best <3.

Sorry

Sorry that all the code is in the MainActivity. I don't think it's worth the bother to abstract those 100 lines away and end up with triple that amount of code. It does however irk me the tiniest of bits, so there you are. If you want to though, have at it. The fork button is up there somewhere.

License

MIT License

Copyright (c) 2016 Niels Keetlaer

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

archillect's People

Contributors

h-five-e avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

a65827657802605

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.