GithubHelp home page GithubHelp logo

adaptiveme / adaptive-arp-android Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 5.83 MB

AdaptiveMe Runtime Platform for Android

Home Page: http://adaptiveme.github.io/

License: Apache License 2.0

Java 99.93% HTML 0.07%

adaptive-arp-android's People

Contributors

carloslozano avatar ferranvila avatar frmi-gft avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

kechis panthro

adaptive-arp-android's Issues

Installed APK. Breaks on phone restart

If the apk is installed in a phone (OnePlusOne) when the phone is restarted and recovers the connectivity (this is an asumption) the application breaks with an information toast.

searchContacts term

Where should term search? Name? Mail? Phone? all? maybe should be removed?

Avoid static inner classes!

For example:

  • <repo>/adaptive-arp-rt/mobile/src/main/java/me/adaptive/arp/impl/NetworkStatusDelegate.java
  • This class defined NetworkStatusReceiver that is then referenced by AndroidManifest.xml:
<receiver android:name=".impl.NetworkStatusDelegate$NetworkStatusReceiver" android:enabled="true">
  <intent-filter>
    <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
  </intent-filter>
</receiver>
  • This forces private static List<INetworkStatusListener> listeners; to be static.

Create a separate class for the NetworkStatusReceiver (not inner class):

  • Make listeners non-static.
  • Give NetworkStatusDelegate a protected getter method for the listeners.
  • Use IAppRegistry to get NetworkStaticBridge and cast to (NetworkStatusDelegate) to access your protected getter method.

Move "videoplayer" module code to "mobile" module.

There's no need to have a separate video player module UNLESS this will be reused by TV and WEAR projects, therefore, it's better to keep the code self-contained to MOBILE project.

  • Refactor code and move videoplayer code to mobile module.
  • Delete videoplayer module.

Move "externalbrowser" module code to "mobile" module.

There's no need to have a separate externalbrowser module UNLESS this will be reused by TV and WEAR projects, therefore, it's better to keep the code self-contained to MOBILE project.

  • Refactor code and move externalbrowser code to mobile module.
  • Delete externalbrowser module.

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.