2

What are best practices for creating reusable code for both the mobile and wear modules (or glass/tv/auto modules) in android studio? My reasons are to keep my application very thin, and prevent reuse of some session classes.

I was thinking about creating going File -> New Module?

Seems like an easy question to answer, can someone chip in?

AndyRoid
  • 5,062
  • 8
  • 38
  • 73
  • Modules is the way to go. Take a look at http://stackoverflow.com/questions/24592027/whats-the-best-practice-for-sharing-classes-between-a-wear-and-android-app/ – matiash Dec 18 '14 at 14:24

1 Answers1

3

yes, you can create new Module and call it "Common" for example Check this project https://github.com/tajchert/SWear_Weather

Vika L.
  • 265
  • 1
  • 11