Follow Slashdot blog updates by subscribing to our blog RSS feed


Forgot your password?
User Journal

Journal Journal: Rant: Android namespaces and ids 3

I hate Java, i hate Android development, but i repeat myself. And that's exactly what i hate about them.

In Android, objects have their own namespaces, under R. There's R.class, R.mipmap, R.layout, R.color, R.integer, and many more. So, the namespace of the layout (where you usually add objects) is under R.layout, the image on a button can be under R.mipmap. Nice.

User Journal

Journal Journal: Stupid Code: Using if() to set a value 4

Here's the latest example of something i have seen way too often:

if(getListView().getCount()==checkedItemCount) chk.setChecked(true); else chk.setChecked(false);

What's the point of obfuscating your code with an if()? This isn't conditional. You want to set it to the same boolean value as the evaluated expression. Obviously, the clearest way to write this (without changing names) is:

User Journal

Journal Journal: Verbiage: Seeing more often a weird sentence formulation

I seem to be seeing more often a weird sentence formulation. A book talks of passing to a function a variable, an article mentions "signed into law a bill," and plenty lately of others. While normal to be found this formulation in other languages, it sounds in English rather awkward.

Comment Re:google play (Score 1) 3

You can do a search to setup play. There's an article on XDA about it. I took the longer method, because i don't feel right getting rid of the ads. I saved $15 by "saying" i would view them.

I have not used it extensively. The OS is made to use and sell Amazon services, and has a somewhat different feel than regular Android.

User Journal

Journal Journal: Chronicle: Bluetooth, Kindle Fire, updates, and more. 3

Continuing from the last exciting edition of what is Chacham buying today, I decided to try out the Plantronics Explorer 50 for $23.19 on ebay. Weird that it's cheaper from the UK. Anyway, i was thinking of purchasing the 3 for the 10% discount, but that's too big a gamble for a product i have not tried. If i like it, i may buy another 1 or 2. Or, purchase 3 and see if i can sell one on Amaz

User Journal

Journal Journal: Chronicle: Need replacement bluetooth, Kindle Fire for mom? 6

I tried a few Bluetooth earpieces. Just a few. My brother gave me an old Motorola one (H something?) which i used until it broke, and when i finally accepted that it was actually broken to the point that it would not magically start working again, i searched Amazon and bought a Plantronics M50. (And after some time, i finally threw out the Motorola one.)

User Journal

Journal Journal: Verbiage: Good books for Android Studio

So, i've been looking for a good book on Android. It's hard as almost all are out of date shortly after publication, and most of them say "do this now do that" and expect you to learn from doing. Some explain, but the explanations are more of the approach and what will be done, rather than why each thing is being done and alternative approaches (for better or worse.)

Slashdot Top Deals

In any formula, constants (especially those obtained from handbooks) are to be treated as variables.