The news is hot. According to Bloomberg Sony will announce an Android based television in May.
I assume that this action will open up another front for Android Application Development.
The Android platform looks pretty bright from development point of view. Within a short time the one phone (G1) OS has grown into a significant player in the operating system market.
Statistics clearly show that Android is heavily gaining market share in the smartphone market. That is already a stable trend beyond discussion.
We will use the the Paint type object this time. You can use it to draw lines, circles and text on your canvas. For example this two lines will draw a red circle for you.
If you want to use a custom layout with a canvas in your application, this tutorial may be useful to you. We will draw a kangoo at the end of this tutorial.
In this last part of the tutorial we will implement buttons to the appWidget, which will directly interact with the appWidget functionality.
We will have 2 buttons, a plus button to add one more day to the target date, and a minus button to decrease time left by one day.
First add the buttons to the countdownwidget.xml layout:
We have updated our Hello Baby widget, with a notification feature. So I'm using this opportunity, to show you how to use notifications with widgets.
Hello readers, my name is Tamas, and I'm the newest member of the HelloAndroid.com team :)
Today we decided to update our Hello Baby widget, with a notification feature. So I'm using this opportunity, to show you how to use notifications with widgets.
The plan was to alert the user with a status bar notification 1,2,3 and 7 days before the days-left counter reaches 0.
One week after releasing Hello Money on the Android Marketplace, we have decided to remove the price tag and let the App Be downloded for free. Enjoy using it.
This widget lets you track your earnings if your are working on hourly basis. Set up your wage, currency and starting money. You can stop and resume the revenue counter any time making this widget ideal for anyone earning their money on hourly basis. It is also possible to place multiple widgets on the home screen with different setup and start/stop each with the proper buttons on them.
As described in the previous part, we will use a Service to update the appWidget.
So we will have the Service below, which gets the command (right now we have only the update command), ant the appwidgetId, reads the date from sharedPreferences and updates the widget.
So here's how you can optimize, analyze your current application using TraceView.
Open your Project, and after onCreate(), or anywhere you want to start Log tracing, paste the following lines:
/* start tracing to "/sdcard/filename.trace" */
Debug.startMethodTracing("filename");
It is very important to stop tracing after you have done debugging. To do that, place these lines before onCreate().
publicvoid onDestroy(){
// stop tracing
Debug.stopMethodTracing();
}
Now run your Project, do anything you'd like to optimize, and quit. Open up DDMS File Explorer, and download /sdcard/filename.trace to your hard disk drive.
Go to your Android SDK folder, open Tools directory, and run ./traceview filename.trace