Bill Mote

Ranch Hand
+ Follow
since Feb 04, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Bill Mote

Tom Mordon wrote:It doesn't like line 3 in the main.xml file: xmlns:map="http://schemas.android.com/apk/res-auto";



I have a working example of maps v2 and I do not have that line in my layout XML.
7 years ago
Welcome Carlos!

You're book, "50 Android Hacks" sounds fantastic. Love that people like you are taking the time to elevate the level of the code being written. Have you seen StackOverflow lately? The questions are 1/2 baked or straight up horrible. The answers being accepted often fix the immediate problem but without any consideration given to resource utilization, battery consumption, network consumption or simple lifecycle.

In your opinion (and besides the obvious contributions to SO), how do we get involved and help raise the bar?

Regards,

Bill
7 years ago
First, Welcome!

What do you think about frameworks like the Google Web Toolkit? Last year they demonstrated it's use at developing games, to include Angry Birds, for web browsers. Can support for HTML5 in GWT and it's use for game programming be far behind?

Regards,

Bill Mote

This is particularly welcome, because when I interviewed Ian for the Web Standards Project two years ago, I asked him what his favourite feature that will get bumped from HTML5 to HTMLnext, and he replied

In-window modal dialogs or dialog box—the kind of prompt you get when the computer asks you a question and won’t let you do anything else until you answer the question. For instance, the window that comes up when you say "Save As…" is usually a modal dialog.

Right now people fake it with divs and complicated styles and script. It would be neat to just be able to say "make this section a modal dialog". Like showModalDialog(), but within the page instead of opening a new window with a new page.

I’d add it to HTML 5, but there are so many new features already that we need to wait for the browsers to catch up.



Source: http://www.brucelawson.co.uk/2011/modal-dialogues-in-html5/
Any idea how this escaped the initial HTML5 release and when these kinds of elements might be added?

Bill Mote
My "experience" was a trial by fire aka Force Close issue. One of the recommended solutions was to add the Build Target tag. I set that equal to my minSDKVersion of 3, but that threw a syntactical error for my manifest. That's when I found that I needed to set the Build Target to 4 (v1.6) but I was still compiling to 3 (v1.5). Ahhh, the joys of software development.

Bill Mote
9 years ago
http://stirtrek.com/

Was a good conference. Full day of sessions, breakfast, box lunch + a private screening of Thor for $35.

Bill Mote
9 years ago
I'm sorry, but I cannot provide you any specific code. It is not mine to share. I can tell you that I instantiate the class as a singleton from within my application. Here's at least a hint ...



I hope that's helpful.

Bill Mote
9 years ago
I went to Stir Trek in Columbus, Ohio a couple of weeks ago. There was some talk of Titanium. Mostly good. They also pointed out a few of the gotchas to be careful of; for instance, iOS has an event that is fired when you reach the end of a scrollable list view, but Android does not. All-in-all nothing that can't be worked around. Again, mostly good comments, just warnings that you should expect it to be the end-all-be-all for cross platform development.

Bill Mote
9 years ago
Johan,

I had to implement the "android:targetSdkVersion" in my application to get rid of a force close issue during the creation of a AsyncTask(). No idea why, but simply adding that statement to the manifest with a value of "4" fixed my issue. Here's the great part; it really should be "3" as that's also my minSdkVersion, but the syntax for targetSdkVersion wasn't introduced until 1.6.

When you add the targetSdkVersion it means your application will use, in my case, the 1.6 libraries to compile, again in my case, code that is compatible with 1.5. Sounds scary? Is. For me at least. I went through extensive testing after making the change.

Bill Mote
9 years ago
Don't take comments to personally ;) You'd be amazed ... your group texting app doesn't make my screen resolution any higher. 1-star. App sucks. That's the kind of feedback that can be found pretty easily. Oh, and that's all the same comment. Not verbatim, but you'll get dinged for things your app doesn't do nor does it claim to do.

Bill Mote
9 years ago
I would be interested in an answer to this as well. You can use a view flipper to move between different activities in a similar way.

Bill Mote
9 years ago

Dave MacLean wrote:The advice from the Android team is to not extend the Application class, although it is doable. Their advice, and I agree with it, is to define a singleton class when needed.



Would you mind sighting that reference? I would love to read more about that.

Bill Mote
9 years ago
Yes. It can be done. I instantiate a helper class that catches all unhandled exceptions, dumps the data to a file and on the next run prompts the user to e-mail the crash data to me.

Bill Mote
9 years ago