Straight to the Source
http://mathpirate.net/svn/Android/AndroidExperiment/
And here’s the project in SVN. I think. Enjoy.
December 12, 2010 No Comments
Binary.
I don’t actually know how any of this works, but here you go, if this is what I’m supposed to give you: http://www.mathpirate.net/log/UploadedFiles/AndroidExperiment/AndroidExperiment.apk
It hasn’t really been tested, it might not be up to date, and I don’t even know if just giving you that file will work. Enjoy!
Now I have to figure out how to get all of this stuff checked into SVN, because Eclipse seems to be openly hostile regarding the concept of putting things in a source repository. 1
- Although that could just be because I don’t understand Eclipse workspaces yet… [↩]
December 12, 2010 No Comments
I Think It’s Going To Kill Us All…
I think I’d better fix that bug.
…
Then add a feature to support this mode because it’s so awesome like this…
December 12, 2010 No Comments
I Don’t Think That Worked…
December 12, 2010 No Comments
Let’s Start a Dialog
.Net:
Android:
dialogBuilder.setTitle("Save File");
dialogBuilder.setMessage("Are you sure?");
dialogBuilder.setPositiveButton("Yes",
new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int which)
{
doWork();
}
});
dialogBuilder.setNegativeButton("No",
new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int which)
{
dontDoWork();
}
});
dialogBuilder.setCancelable(true);
dialogBuilder.setOnCancelListener(
new DialogInterface.OnCancelListener() {
public void onCancel(DialogInterface dialog)
{
dontDoWorkHereEither();
}
});
dialogBuilder.show();
OMG. WTF. SERIOUSLY?
Why write just one line of code when TWENTY-NINE will do the same thing just as well?
December 12, 2010 No Comments
I’m Sorry, Java…
I’m sorry, Java. I forgot to IMPORT EVERY SINGLE CLASS IN THE ENTIRE UNIVERSE.
I’m sorry, Java. I forgot to DECLARE THAT I THROW EVERY SINGLE EXCEPTION CLASS IN THE ENTIRE UNIVERSE.
December 12, 2010 No Comments
Android Launch
December 12, 2010 No Comments
Ew…. I feel dirty now.
I just realized what this reminds me of. Some of this Android stuff feels like MFC. That’s why it’s tripping my icky sensors. I have to register event messages in one file, then I have to make a big and ugly switch statement in another file that dispatches my actions using magic constants.
December 11, 2010 No Comments
Summarizing Android
So far, my experience with Android has been brief moments of totally awesome brilliance, separated by vast swaths of WTF.
For example, why is it easier to get a speech synthesizer integrated into my application than it is to get a context menu set up? Why is the debugger so introverted that it refuses to tell me what’s wrong? W…h…y… …i…s… …i…t… …s…o… …s…l…o…w… …t…o… …t…y…p…e… …a…n…y…t…h…i…n…g… …i…n… …t…h…e… …e…m…u…l…a…t…o…r…?…
I understand that writing a single application meant to run on multiple different highly contstrained environments is complicated. I understand that defining a View in XML and interacting with compiled code classes is complicated.
But Microsoft’s done it and has done it for years. I set some things in a XAML file and it’s just there in the class. I don’t have to use a TextBox Resource ID to look up an element I need to work with. And I doubt they’re the first or the only that can do it. Why can’t the flagship open source IDE figure that out?
I’m hoping that I’m just missing something.
Whatever. At least it’s still not Objective C.
December 11, 2010 No Comments
Well, that’s helpful.
December 11, 2010 No Comments