Tomek Kondrat · May 30, 2014 at 12:00 pm

Learn About Java Listeners

The path to becoming a great Android developer is not straightforward. To make an application or modify an existing one, you need to know Java. To write a good application, you need to know all of the language’s nuances. Much of this information is available in resources found here on XDA. Applications written in Java use listeners, small functions that launch an activity when you press a certain part of the screen.

XDA Senior Member mohamedrashad wrote a useful guide to help new coders understand listeners better and learn how to use them. The guide explains how to define a button in Java, initialize it, and add a listener to launch the activity. You will also learn how to add Checkboxes and Radio buttons, and how to use them in groups. This is naturally just a small part of the Java language, but it can undoubtedly be useful for many—both newcomers just beginning their journey in Java an experienced coders looking for a refresher.

To learn more about depths of Java programming and how to use listeners in your app, head over to the guide thread.


_________
Want something on the XDA Portal? Send us a tip!
Jimmy McGee · Feb 27, 2015 at 06:00 am · no comments

MWC Announcements, FCC Rules on Net Neutrality – XDA TV

The FCC has ruled on Net Neutrality! That and much more news is covered by Jordan when he reviews all the important stories from this week. Included in this week's news is the announcement of the Pebble Time Kickstarter and be sure to stay tuned for even more mobile world congress announcements! That's not all that's covered in today's video! Jordan talks about the other videos released this week on XDA TV. XDA TV Producer TK released an Xposed Tuesday...

XDA NEWS
Emil Kako · Feb 26, 2015 at 12:30 pm · 1 comment

What Bugs You Most About Google’s Play Store?

Google announced today that it will be bringing ads to the Play Store, and while that will surely annoy the majority of us, it isn't the only thing that sucks about the Play Store. From the lack of clear communication with developers to ridiculous restrictions, there are a handful of very annoying things about Google's approach. Let us know what bugs you the most about the Play Store.

DISCUSS
Mario Tomás Serrafero · Feb 26, 2015 at 11:32 am · 1 comment

Watches: Luxurious Frivolity vs. Humble Practicality

Smartwatches still have a lot of growing up to do. Not too long ago the latest Canalys figures revealed a rather disappointing outcome for 2014, something we covered with the ultimate conclusion that, once again, smartwatches had no year. The direction of smartwatches is unclear to even the biggest OEMs, and with every new option there seems to be polarizing dissonances from what people and OEMs want and what they both think they want. We've documented many of the reasons as to...

XDA NEWS
Share This