Android Offline Build Process

55 views
Skip to first unread message

nickk...@gmail.com

unread,
Jun 3, 2014, 12:38:23 AM6/3/14
to codenameone...@googlegroups.com
Anyone have a guide to Android only offline builds?  I know I can include source and build that, but what I'm looking for is a simple process where I can 'run' my application from NetBeans and have it install and run automatically on my phone.

My two pain points at the moment with the CN1 build server is:

1.  While builds are nice and fast its clunky to scan a QR code and get the app on my phone.  Only a minor inconvenience I but can be much smoother if I can stay in my IDE with my phone on my desk.

2.  Breakpoints - I'm getting things that don't quite behave the same in the simulator and Android (native code, database etc.,) and being able to debug easily on the phone like you can with native would be great.

I've looked at a few solutions and they seem to add a lot of complexity due to managing iOS, and / or have a lot of manual steps which makes it less friendly than the build server.

I know iOS is going to be a pain and take longer to build, it always is and I'm not looking for a offline build solution entirely, just a way to do quicker iteration on a real device.

Any thoughts or suggestions?

Shai Almog

unread,
Jun 3, 2014, 12:45:32 PM6/3/14
to codenameone...@googlegroups.com, nickk...@gmail.com
We just send a build with include sources. Then create a local Android project (with NBAndroid) and copy all the source files from the include sources and all the source files from the original project, the manifest and the additional jar (with the exception of the user jar).
Works just fine for debugging on the device.

Yaakov Gesher

unread,
Jun 11, 2015, 7:17:58 PM6/11/15
to codenameone...@googlegroups.com, nickk...@gmail.com
I'm trying to debug my Android build and my breakpoints aren't being hit at all.  In your answer it wasn't clear which .jar file to import and which to leave out.  Could you please specify?  And is this causing the breakpoints to not be run through, or is that an unrelated issue?

Thanks a bunch
Yaakov

Shai Almog

unread,
Jun 12, 2015, 12:24:32 AM6/12/15
to codenameone...@googlegroups.com, orme...@gmail.com, nickk...@gmail.com
They should be hit even if the jar file contains the same binaries. The source should always take priority.
Reply all
Reply to author
Forward
0 new messages