Mike Szczys · Apr 25, 2013 at 06:30 pm

Building with Apache Ant

It’s pretty easy to build APKs using Eclipse, but The Apache Ant project brings a few things to the table which you might be interested in—especially if you’re creating closed source apps. The package is designed to handle Java application builds (although it can be used with other languages as well). One of its best traits is that it will help shrink the size of your code by parsing for unused variables, methods, and classes to then strip them out as cruft. But I did mention closed source, and that’s because Ant has the ability to help obfuscate your bytecode to help prevent reverse-engineering through the use of ProGuard.

One of the reasons more people don’t use it is that it can be a little daunting at first glance. But to help you get a foothold, check out this setup guide for Ant builds. It’s not exactly tailor made, but if you search additional resources like the Ant Project Page itself, you should be able to get things working. The final project will spit out two builds at the touch of a button. One will be a private build for your own use during debugging. This code hasn’t been obfuscated, unlike the other package, which is a public copy that can be sent off to the Play Store or any other distribution channel of your choosing.


_________
Want something on the XDA Portal? Send us a tip!
Emil Kako · Mar 2, 2015 at 01:03 pm · 1 comment

How Do You Usually Access the XDA Forums?

There are a number of different apps on the Play Store that make browsing the XDA portal and forums a fun experience on mobile, but we want to know: What's your favorite way to access the XDA forums? Do you prefer browsing on the desktop, mobile app, or mobile browser? If you use a mobile app, which one? Let us know how you connect with our community in the comment section below.

DISCUSS
Faiz Malkani · Mar 2, 2015 at 12:39 pm · no comments

Google Announces Plans for Projects Titan, Loon and Link

Once a year, top players in the mobile sphere gather for MWC, to show off what they've been working on and collectively set the standard for the year to come. Yesterday was a big day with the launch of HTC and Samsung's flagships, alongside numerous other announcements, and today it was Google's turn to take the stage. SVP Sundar Pichai took the stage in Barcelona to speak about Google's network initiatives, Project Link and Project Loon, as well as to...

XDA NEWS
Mario Tomás Serrafero · Mar 2, 2015 at 11:36 am · 1 comment

Intel at MWC 2015: New Chip Branding and Details

Intel showed its face at MWC 2015 to give the world a yearly update on their upcoming line of chipsets for mobile. While last year the company focused on gathering partnerships and strengthening up their services, architectures and production, now they are revamping their Atom line of SoCs for mobile with a new brand name and a distinctive category format much like that of their i3/i5/i7 line of personal computing processors. The new scheme will be naming the chips x3, x5...

XDA NEWS
Share This