Apple iPad
I think the hottest IT@topic today is Apple iPad. Last night, Steve Jobs announced the first Apple's tablet PC, iPad, in his keynote. The rumors were talking about that for long long time.
It doesn't bring a lot of surpises to myself. It looks like an over-sized iPhone. Moreover, it has another key feature, iBook. iPad sounds a good eBook reader. But I am more prefer an eInk screen. iPad is using LED-backlight screen. I can't stand for reading a textbook on this kind of screen for long time! But the price is very very attractice. For 16GB version, that is only USD$499!
Related link:
Apple iPad
Country Setting on Trending in Twitter
I found Twitter has an new option on Trending. You can change the Trending to an individual country. But currently, they only provide the trending on these countries,included:
* Brazil
* Canada
* Ireland
* Mexico
* United Kingdom
* United States
Not Australia yet, so that is not very useful for me.
Write a wav file player in C#
That is a bit hard to write a mp3 player in C#. I think you may need to find third party mp3 decoder dll. But if you only want to play to a wav file, that is very easy. .Net libraries already have a control class for you.
Code
System.Media.SoundPlayer |
All you need to put the file name into the constructor
Code
SoundPlayer player = new SoundPlayer(FileName); |
Then you can play and stop the file by these methods:
Code
player.Play(); | |
player.Stop(); |
This afternoon, I wrote an example project for this. Moreover, this project is implemented in WPF rather than normal Windows Forms, because I wish to practice my WPF skills.
Download the example project, please click here.
Create New Window in Android
You can jump to a new window by changing the content view.
Code
setContentView(R.layout.second); |
But the type of Activity between two views must be same. In my case, I need to switch to a List view(Activity) from a normal window. I can't do by switching content views. The only way to do that is start a sub-activity, just like the following:
Code
Intent intent = new Intent((Context)this, NewWindow.class); | |
startActivityForResult(intent, 0); |
Yes, then it will jump to a new window, after the action completes, my code will call "finish();" from the sub-activity. Then it will jump back to the main window.
Day time test of Panasonic HDC-SD20
I went to Lamington National Park. I took some video. That sounds my camorder works much better in day time. The image is very sharp!