2012
In my previous post, I had explained how to switch (call) to another activities and passing value to it. This time I will try to explain on how to return some value back to the calling activity.
In my previous post, I had explained how to switch (call) to another activities and passing value to it. This time I will try to explain on how to return some value back to the calling activity.
Almost every Andoid application has many activities, a screen that interact with user. On desktop based operating system, this screen is usually called by a "form". It is very common that it is required to switch between one activity onto another activity in user interaction. In this post I will try to explain how switching between activities and passing variable into it can be done.
Basically, a wireless router is an access point (AP) with router capability. Sometimes for some reasons you may not need another router to broadcast a network wirelessly. You need an AP and not a wireless router for broadcasting a local area network wirelessly.
Why?
A wireless router has different network ID between it's WAN and LAN connector. That's what routers are for, connecting (routing) two or more different network IDs (in this case: LAN network and WAN network).
There are many definitions out there which are explaining about captive portal like in TechTarget SearchMobileComputing, Answers.com, and Wikipedia. Still haven't got it? Well, have you found yourself connected in a public hotspot such as at the public venues, airport lounges, or hotel plaza? it's so common if we're going to browse to any pages using our favorite web browser we're forced to see a page to accept the Terms of Service (ToS) of the hotspot provider or submits username and password in order to be able to continue browse the web. Those kind of web pages are so called captive portal.
From my previous post about fetching Tweets from Twitter by using PHP we're able to search tweet posts with Twitter API help in RSS format (XML). The specification of RSS itself described here. In order to be able to get information needed from the feed, we need to parse it into other form of data which is easy to process with PHP. In this post I will explain how to parse every items on the feed into array.
If you have your own blog which is PHP powered, you can show your tweets on twitter by using PHP easily. According to GET Search Twitter API documentation and Using Search documentation, we can do any search for tweets related to any keyword provided. The resource URL for searching is:
http://search.twitter.com/search.format
where format is the format we would like to get. It could be rss, atom, or even json. The Twitter search API is very powerful, even you can get any tweets which is posted by someone near you.
C# has a DateTime structure to hold date and time value in a single variable. The following script will gives you first and last date of given months in two lines of C# code. Assuming that the first and last dates we're looking for is for current month (now), the code would be like this:
DateTime FirstDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);DateTime LastDate = FirstDate.AddMonths(1).AddDays(-1);
If you code an C# .NET application using axAcroPDFLib to generate a PDF document, shows it to the user, and found error message on your application at application closing like this (instruction and memory address may vary):
The instruction at "0x0700609c" referenced memory at "0x00000014". The memory could not be read
It was caused by Adobe Reader 9.x axAcroPDFLib bug. The axAcroPDF control doesn't disposed properly during form closing event.
1829 Hits