Friday, August 26, 2011

Android : Calling the other package activity from the current package Activity

Hi All,
After a long time one more android blog, or you can say a new problem which I encounter. In general cases we call activity using intent within the same package. but what if we want to call some other package activity. So here is the solution. Here I will be using the name convention as Calling Activity as First Activity and Called Activity as Final Activity.
Method 1 : Using setClass() method in Intent class.
It is the same thing which you do in normal scenario but with a little tweak in it. In FirstActivity where ever you want to call other activity from other package, put following code
Intent i = new Intent();
i.setClassName("com.android.finalactivity", "com.android.finalactivity.FinalActivity");
startActivity(i);
/* Here com.android.finalactivity is the package name and com.android.finalactivity.FinalActivity is full class name. */
Now go to the AndroidManifest.xml of the FirstActivity and Add following line
activity android:name=”com.samsung.finalactivity.FinalActivity” in application tag.
It will work fine.
Method 2. Using action name
For this first go to your Final Activity and Modify the Manifest file like this :
Instead of the action android :name =”android.intent.action.MAIN” Use
action android:name=”finalApplication.intent.LAUNCH”
Now go to your FirstActivity.java and write
Intent i = new Intent("finalApplication.intent.LAUNCH");
startActivity(i);
Here no need to change AndroidManifest file for FirstApplication.
Hope it helps.

Tuesday, August 16, 2011

Wayanad, Kerala

Hi guys,

Here I am with the new travel blog entry, Last weekend I visited the Wayanad, Kerala. As the Kerala tourism's punch line "God's own Country", I am completely agree with them. Kerala have so much greenery and natural views that you will completely enjoyed. So here are the details if you have any plan to visit this place in future.

How to Reach : If you are going from Bangalore, you can go by Bus. It is on NH 212 and around 270 KMs from Bangalore. As after Mysore, you have to cross the Forest. It is advisable that you plan your journey accordingly as Forest Department closes the door from both side (from mysore side and from sulthan bathery side) around 8 PM. Other way is you can come through Calicut which is around 65 KMs from Wayanad.

When to go : Although you can visit this place anytime in year, but I will suggest you should go in rainy season. As the color of nature will be at its maximum during that period.

What to visit: As I mentioned its the place of Nature View. There are many Water falls, Dam, Peaks, Temples etc. Here I will mention few of the major attractions.

Chembra Peak : This is the Highest point in Wayanad. you have to take the tickets from the Forest depatment, which will cost you 500 bucks(for group). When you start you will think that its no good because you will find a proper road. But after 1.5 Kms walking, you will reach the point from where you will find the main treking, Its very steap and slippery. So be sure you have proper shoes for it and try to take as less thing
as possible. Take water bottles with you, and if you are ok with drinking water falls, then no need to carry bottles. Main view point will be two lakes over there which I find worth going. One of those lakes is in
Heart Shape which have many small fishes in it, in shrt it is awesome thing to do.

Kuruwa Dweep : This is also major attraction. I am not able to write about it as due to rains it was closed or drowned in the water. But if you are lucky you can go there too. Its around 35 Kms from Kalpetta.

Edakkal Caves : This is 27kms from kalpetta which opens 9 AM to 4:30 PM. This place have lots of caves, so you are interested in it, Here is the mystery is waiting for you.

Soochipara Waterfalls : This is 25 Kms from Kalpetta. Nice place to go, you have to trek a little bit to reach the place. But the water flow and the view is good from there.

Banasura Sagar Dam : Distance from Kalpetta 21 Kms. This place is also good. This is Asia's 2nd Largest Natural Dam. Awesome place, View is great from there, you will get some nice snaps from there. Also Speed boat is also available there.

Pookot Lake : This place I didn't like much. As a very small lake is there, in which they have pedal boats and a small Aquarium. The problem with this place is, it is not well maintained at all.

Apart from these places there are few others waterfalls and 2-3 Sanctuary. In this Sanctuary you can find deers, elephants, and lucky then tigers too.

Food : If you are vegeterian, than you can face some problem. As there are only few restaurants. So better you go with some packed stuff with you, so that you wont run out of food. Although you can find Kerala paratha, Dosa with little bit of effort.

Hotels : Guys, book your hotels atleast 1 week before. As we faced a lot of problem to find good hotels as we went in the peak season.

I think this place is worth going once. So go and visit the God's own Country.