Android: Switching screens in an Activity with animations (using ViewFlipper)

Posted May 26th @ 11:48 pm by Boyan Tsolov

In this post I’ll show you how to add animations when trying to switch between screens. Usually when you switch between screens it’s a direct “poof” and the new screen appears in a very un-graceful way. The SDK offers a bunch of easy-to-use animations, and I’ll show you how to use them here.

I tried doing animations on the opening and closing of activities, but I haven’t figured that out yet fully. So instead, I will show you how to use animations when switching on objects/layers inside the same activity. It will still look like you are switching screens, but all the layout data will be in one single XML. If we were to switch between activities, each activity would have had (usually) its own layout XML.

And in the post coming after this one, I’ll show you how to start this animation and switch the screen while dragging your fingers on the touch screen. Let me be a little more precise: while dragging one finger on the touch screen. I’m not sure if the OS handles multi-touch right now – or if that’s something the device has to enable – or both.

Back to the topic: how to switch between layers using animations to make it look like you are changing screens… we will be using a ViewFlipper widget in the layout XML.

1. Create a new Android project, unless you already have one

01 new project

2. Create a new Activity class that extends android.app.Activity.

02 new class

Read the rest of this entry »


Advertisement


Android: Reading Logs and Exceptions

Posted May 24th @ 11:21 pm by Boyan Tsolov

While developing my Android apps I routinely, regularly, almost every time, without a miss, get some kind of exception. And the error you see on screen is not developer friendly, though it is very end-user friendly:

01 error

WTF? Why? What did I do wrong this time, again?

Read the rest of this entry »


Android: How to switch between Activities

Posted May 24th @ 10:38 pm by Boyan Tsolov

In my great expectations of Google Android coming to Canada on June 2nd, I’ve started experimenting with developing some apps for the Android platform. My first app is called “The Taxman” and will calculate the amount of tax you owe per year in your province/state – well only Canada for now.

I had trouble adjusting to what an “Activity” was and how to handle it. Here is a quick and dirty way to create an Activity, and to switch to another Activity (think of it as another screen) on the click of a button.

1. Create a new Android project – or you might already have one created.

01 new project

2. Add a new Class that extends android.app.Activity. You need a total of two classes that extend Activity. You will switch from one Activity to another.

02 new class

03 new class 2

Read the rest of this entry »


Developer’s Perspective on Android: Getting Started

Posted May 24th @ 9:49 pm by Boyan Tsolov

Google Android

I’ve been a fan of Google’s mobile operating system Android for quite a while – technically since I heard about it 2 years ago. I’ve been unfortunate to live in Canada, because none of the telco companies here have carried any phones with Android (only HTC phones for now, but Samsung seems to be coming out with something soon).

But, on June 2nd 2009 Rogers is coming out with the HTC Dream and the HTC Magic and Google Android will be here! And on June 3rd Google Android will be in my hands. [I’m not going to be a geek and get it on the very first day it comes out, come on!]

So, in expectation of this date, I started playing around with Android and developing my own applications. To start off, it’s been absolutely easy, pleasant, and a breeze to setup. It was like stealing candy from a kid. I followed the instructions from the Android – Developers website and using Eclipse as my environment I was creating mobile applications in less than 30 mins.

To get the SDK follow this link: http://developer.android.com/sdk/1.5_r2/index.html
To read the installation instructions follow this link: http://developer.android.com/sdk/1.5_r2/installing.html
And I recommend using Eclipse if you do want to get the “30 mins effect”.

I wanted to test out the different functions/features that Android offers out of the box, so I thought of a simple app which would allow me to have a goal and thus opportunities to experiment. I am going to write a “tax” application. Unfortunately, this tax application will not fill out your taxes. It will calculate how much the government has to take from you each year. You will enter your country (Canada only for now), you will enter your income, and the result will be a summary of your take-home pay and taxes due, by province (or states for the US – eventually). I’m going to call it “The Taxman”.

I’ve just started this mini app, and as I go along I will post snippets of code that I found difficult to come up with – to help out anyone that is looking for the exact same solution. Also, I have a full-time job, so it will take me a month to complete this silly app :), so my posts might be infrequent.

This weekend I had a chance to start it off and I had trouble with a couple of things. I will write a separate post on each one over the next couple of weeks. Here’s three of those things:

1. How to switch from one screen to another (also called Activities)

2. How to switch screens with an animation effect

3. How to switch screens using a dragging motion with your finger – you know, iPhone stylez.

That’s it for now… those 3 posts will be coming out very, very soon!


Checking up on the On-Demand Index

Posted January 31st @ 10:41 pm by Boyan Tsolov

I decided to get off my lazy butt, after 3 months of non-posts, and check up on something. Some time ago I wrote a post about an “On-Demand Index”. This was a portfolio of On-Demand/SaaS stocks picked by Rick Sherman on SeekingAlpha.com. I created some AJAX scripts that took data from Google Finance for that portfolio and made it into a page on this blog. I thought, this way you can always go to that page and see overall how the SaaS stocks are doing in real-time.

Well, here I am, half a year later, trying to find out what happened to those stocks.

This is the original chart from June 29th 2008 that got me started:
On-Demand index June 29th

This is the chart on January 1st 2009, from the On-Demand Index page:

Company Symbol Return since Jan Return last 1 year Latest Price 52 High 52 Low EPS P/E Market Cap
athenahealth, Inc. ATHN 1.32% 8.54% 36.08 39.29 19.19 0.30 118.56 1.20B
Blackboard, Inc. BBBB -5.15% -27.17% 25.41 45.00 19.36 0.13 199.39 796.66M
Concur Technologies, Inc. CNQR -26.03% -32.19% 24.69 50.00 19.52 0.35 69.91 1.21B
salesforce.com, Inc. CRM -21.78% -48.55% 26.61 75.21 20.82 0.30 89.61 3.25B
Constant Contact, Inc. CTCT 10.01% -26.02% 15.27 21.84 0.01 -0.06 - 429.46M
DemandTec, Inc. DMAN -22.27% -44.67% 6.70 13.10 5.77 -0.17 - 186.47M
Kenexa Corporation KNXA -10.78% -62.05% 6.79 24.01 4.68 0.94 7.24 153.18M
LoopNet, Inc. LOOP -6.07% -56.35% 6.50 15.48 4.75 0.52 12.56 222.78M
Netsuite Inc N -16.67% -74.22% 7.00 28.84 5.43 -0.40 - 425.85M
Omniture, Inc. OMTR -17.51% -66.58% 9.09 28.00 7.15 -0.55 - 662.94M
RightNow Technologies RNOW -30.48% -50.47% 5.84 17.39 5.02 -0.34 - 195.66M
SuccessFactors, Inc. SFSF 16.64% -26.04% 6.73 15.00 4.61 -1.64 - 377.61M
Salary.com, Inc. SLRY -32.95% -81.37% 1.77 11.00 1.40 -1.32 - 29.09M
Taleo Corporation TLEO 5.24% -61.7% 8.43 26.16 5.37 -0.08 - 258.04M
DealerTrack Holdings, Inc. TRAK -7.7% -59.75% 11.39 28.75 8.84 0.16 72.46 453.67M
The Ultimate Software Group ULTI -14.15% -52.7% 13.77 41.68 10.70 0.72 19.16 336.52M
Vocus, Inc. VOCS -19% -48.86% 15.26 41.50 12.90 0.31 48.50 290.29M
TOTAL   -11.61% -47.66%            

Yikes! The return over the last year is -47%! The return since Jan 1 is -11%!

There is only ONE company on that list that has posted an increase in the past half year,
athenahealth (ATHN)
June 2008: 30.2
January 2009: 36.08
%: 19.47%

All the others are in the red, with an honourable mention going to
Salesforce.com (CRM)
June 2008: 68.6
January 2009: 26.61
%: -61.2%

Here’s a complete listing of the changes since June 2008:

Company Symbol Jun-08 Jan-09 %
athenahealth, Inc. ATHN 30.2  36.08  19.47
Blackboard, Inc. BBBB 39.4  25.41  -35.51
Concur Technologies, Inc. CNQR 34.3  24.69  -28.02
salesforce.com, Inc. CRM 68.6  26.61  -62.21
Constant Contact, Inc. CTCT 19  15.27  -19.63
DemandTec, Inc. DMAN 7.93  6.7  -15.51
Kenexa Corporation KNXA 19.7  6.79  -65.53
LoopNet, Inc. LOOP 11.1  6.5  -41.44
Netsuite Inc N 20.3  7  -65.52
Omniture, Inc. OMTR 19.9  9.09  -54.32
RightNow Technologies RNOW 13.7  5.84  -57.37
SuccessFactors, Inc. SFSF  11  6.73  -38.82
Salary.com, Inc. SLRY  4  1.77  -55.75
Taleo Corporation TLEO  19.6  8.43  -56.99
DealerTrack Holdings, Inc. TRAK  15.5  11.39  -26.52
The Ultimate Software Group ULTI  36.7  13.77  -62.48
Vocus, Inc. VOCS  32.4  15.26  -52.90
TOTAL        -42.44

Ok, ok, you can blame the economy.  But maybe the market still hasn’t warmed up to the idea of SaaS as much as this blog has. Or, just as the original article claims, these are companies just like any other and they are suffering the same ups and downs as all other companies - the industry they are in is just a small portion of the overall formula.

For example, salesforce was hugely overvalued at $60 (personal opinion), while athenahealth keeps signing more contracts [1] [2].

I really want to say: look, all companies but one have posted decreases, this means SaaS is still new and not being adopted. However, I know in my heart that so many companies in the red must have some kind of influence from the sagging economy. It would be quite the coincidence if they are all red because of their industry.

That’s all for now. I will check back on these stocks soon. Maybe when the economoy is stabalized in 2 years, looking at these figures will make more sense.


Multitenancy has nothing to do with SaaS

Posted January 14th @ 4:04 am by Darren

I came across this article today on Forbes. Dan Woods tries to dig a little deeper into what has made Salesforce.com so successful. In the end, Dan boils it down to the fact that Salesforce.com is not successfully solely because they were the first to provide multitenant software at a large scale. It was the fact that solved a critical problem most people overlooked. They made highly configurable enterprise software; one that could be configured intuitively without a computer science degree. By making multitenancy a constraint, it probably forced their engineers to build very malleable software that solves many of their customer’s problems right out of the box. It could also be the fact that they chose CRM software which requirements don’t vary drastically from company to company.

Either way, if a company made single tenant software that had superb usability and configure-ability; would it still garner the same success? I’ve said it before; software as a service is just that, a service. It doesn’t matter what architecture. As long as your customers don’t own and maintain the software or the hardware then that’s “service”. It doesn’t matter what flavor it comes in. This is one of those terms that the marketing department keeps hyping up to prove that there really is some innovation in their software. Because in this world, big words sell software. Don’t let a Suit with a degree in International Relations fool you next time. They’re wasting blog paper!


Microsoft’s New Years Resolution: Innovate

Posted January 13th @ 4:14 am by Darren


Let’s be honest, not many people would say Microsoft are the most innovate. They’re almost never the first to market but you have to give them credit; over time they dominate any market they enter. Or as Steve Ballmer puts it, they just keep “Coming and Coming and Coming” ;-) There are lots of examples, just look at: Internet Explorer, Office, Exchange, SQL Server and XBox.

Just a few days ago, Microsoft’s Live Mesh was awarded Best Technology Innovation / Achievement at the Crunchies awards. Sure this is no Garnter. But it’s one of the only times that a bunch of Google-horny journalist admit that Microsoft has made a great product. Not surprisingly, Live Mesh is a product that I extremely love. I’ve been harping about it to all my friends.

To put simply, Live Mesh’s strategy is to enhance the Windows platform. To webify it if you will. You install Mesh on all your devices and it will keep your files and folder in sync all the time. You’re probably thinking “OK, so what”. Built into Mesh is the Live Desktop so you no longer need to be at your computer to access your files. All you need is a computer with Internet access. In fact, the Live Desktop is so slick that it feels like you’re using Remote Desktop through the browser. The more I use Mesh, the more I find ways to make my life easier. This is what I can do with Mesh:

  • Work on a file on my desktop, close it, go home and continue working on it from my laptop. No uploading required
  • Keep my IE bookmarks in sync on all my computers
  • Have the code I’m working on available anywhere without checking it in
  • My music is available on all my devices
  • Install Mesh on my phone, take a picture and it’s on my desktop. Goodbye USB cable
  • Share files with my friends by dragging it into a folder
  • My data is always backed up on another machine or in the cloud

Mesh is one of the components of Microsoft’s Azure strategy. The other half is focused on providing managed hosting for applications and services. Although Mesh is a little further developed than the other components of Azure, I’m really looking forward to what Microsoft releases in the coming year. And for all those “2009” predictions … really?

Feel free to try Live Mesh today!



Advertisement

Options:

Colors

  • bea test
  • vince young uncle rico
  • chicago bears 96
  • tea party hobbits
  • tea party agenda
  • checkers
  • bengals youth jerseys
  • hijack
  • contactor
  • zara phillips wedding date
  • connecticut renaissance faire
  • bengals usa
  • search engines for jobs
  • search engines zuula
  • chicago bears garter
  • la ink season 6
  • zara phillips facebookzara phillips gossip
  • zara phillips guest list
  • damon
  • dist 95
  • bea 4603
  • connecticut 100 club
  • compared
  • dreamweaver
  • new england patriots underwear
  • c span kozol
  • la ink yahoo answers
  • search in vi
  • msnbc
  • tea party nj
  • chad ochocinco height and weight
  • dues
  • vince young endorsementsvince young foundation
  • mcmillan
  • bengals tryouts
  • battleship aurora
  • trademark
  • search 3 bodybuilding other index
  • chad ochocinco quits football
  • search engines visibility
  • di's hallmark
  • 1904
  • formal
  • regions
  • carrollton
  • mtv oddities
  • vince young injury
  • bengals cheerleaders tryouts 2011
  • freida pinto chanel
  • zara phillips and the queen
  • zara phillips shoes royal wedding
  • barns
  • vince young rumors
  • chad ochocinco wedding date
  • freida pinto dev
  • vince young jay cutler
  • sqlserver
  • 4pm cspancspan area 51cspan 90.1
  • connecticut state parks
  • bengals hard knocks episode 1
  • chad ochocinco to patriots
  • search engines images
  • connecticut sun
  • chad ochocinco age
  • la ink tattoos
  • achievements
  • battleship history
  • chad ochocinco bears
  • chad ochocinco yesterday
  • goto
  • search 5500
  • hp support englandhp support forum
  • battleship galactica
  • connecticut 5 star resorts
  • bengals 08 schedule
  • vince young 2008
  • randy moss university
  • bengals images
  • bengals cats for sale
  • la ink 105
  • benelli
  • search engines rankings 2011
  • chicago bears tattoos
  • connecticut post
  • chad ochocinco free agent
  • giro
  • la ink map
  • chad ochocinco yesterday
  • search engines internet
  • chicago bears 17 lisa lampanelli
  • recommended
  • hp support error 1005
  • hp support number united states
  • la ink youtube pixie
  • chicago bears 08 record
  • thinking
  • greg olsen puzzles
  • fireworks
  • c span video contest
  • hp support helpline
  • safeway
  • chicago bears 08 record
  • mortage
  • fight
  • workout
  • 1983
  • hp support center
  • connecticut natural gas
  • search cfisd.net
  • greg olsen vikingsgreg olsen wife
  • c span yesterdayc span zelaya
  • barn
  • bengals games
  • new england patriots 50
  • bea fox
  • mtv music awards
  • mtv website
  • dohc
  • c span 4 to 5
  • greyhound
  • projections
  • rico
  • bengals job fair
  • search engines 9
  • zara phillips wedding plans
  • cuties
  • vince young 99 yard video
  • courts
  • battleship bismarck wreck
  • dis windsor wi
  • tea party chicago
  • bea oracle
  • paco
  • dis quand reviendras-tu
  • mtv 90s music videos
  • search and seizure
  • randy moss 98 vikings
  • freida pinto miral
  • mtv 5 cover
  • mtv 2 schedule
  • search 2.0
  • bea karp
  • anemometer
  • chad ochocinco vs skip bayless
  • hp support contact us
  • vince young released
  • mtv true life
  • new england patriots jake locker
  • bea goldfishberg
  • battleship 3d game
  • la ink games online
  • bea luna
  • chicago bears tickets
  • freida pinto zac posen
  • battleship yamato 2010
  • chicago bears zip hoodie
  • tea party obama
  • greg olsen vancouver
  • new england patriots espn blog
  • search engines usage statistics 2010
  • bea 71 16
  • chicago bears football club
  • la ink 03x05
  • zara phillips baby
  • quartz
  • bea nipa
  • bea 71 series staples
  • randy moss jail
  • hp support venezuela
  • dis x
  • freida pinto boyfriend
  • copa
  • bea spells a lot
  • blade
  • zara phillips school
  • booster
  • wrist
  • greg olsen combine
  • vince young uncle rico gif
  • zara phillips royal wedding picture
  • zara phillips engagement ring
  • hp support repair
  • mtv overdrive
  • vince young yahoo stats
  • new england patriots 98.5
  • hp support 6500a plus
  • new england patriots store
  • search protocol host
  • greg olsen puzzles
  • dialup
  • mixed
  • greg olsen football