Sunday, February 20, 2011

Sms Reciever Code...

A small code snippet for all Code Junkies :)

/*
Copyright [2011] [Abhinava Srivastava]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

*/
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.telephony.SmsMessage;

public class SmsReciever extends BroadcastReceiver {

@Override
public void onReceive(Context context, Intent intent) {
Bundle bundle = intent.getExtras();

SmsMessage[] msgs = null;
if (bundle != null) {
Object[] pdus = (Object[]) bundle.get("pdus");
msgs = new SmsMessage[pdus.length];
if (msgs.length >= 0) {
msgs[0] = SmsMessage.createFromPdu((byte[]) pdus[0]);
String message = msgs[0].getMessageBody().toString();
Toast.makeText(context,message,Toast.LENGTH_LONG).show();
}
}
}
}

Wednesday, February 16, 2011

Android 2.4 ?



There have been much of talks regarding Android 2.4 OS,
Android 2.4 is not Ice cream sandwich its still Gingerbread...

Well it seems to be true... Android has planned to release 2.4 OS with the same name of Gingerbread, because it is Gingerbread.. the only difference between both is that it can run the applications of Dual Core devices... in order to support the application compatibility with Honneycomb.



Wednesday, February 2, 2011

New Android Marketplace and Google Music...


A really awesome development has been done on the android Market place and Google Music.....


New in Marketplace: Sick of boring web based marketplace for Android? Here you get a new Web Based Marketplace...

Recent updates include:

1. Users device history (Knows what all devices you have hence easy to find applications for all the devices )
2. Over the air installation on your phone (you can install an application on your Android device just by clicking on the link online on web based marketplace).
3. Search in Android Market.


What is Google Music: Google recently acquired a company called "Simplified Media" so now you can sync up all your media @ your home PC with the Android phone, thus no need to keep the songs everywhere you wanna listen .. all you need is INTERNET :D
You can browse up in your homes System songs library and play the song from the device itself.

For more detailed demo you can check out the Video... :)




Tuesday, February 1, 2011

Android Leads the Market Now.. :)

It's a great news for all the Android Lovers....



Android has come up as a NEW MARKET LEADER, with more than 20000 phones getting sold everyday.. android is now on the Top of Mobile Market Leader...

As per report in Examiner, Android has left his competitors far behind. Yet again, open source has proved itself to be the market leader.


With the launch of Honneycomb which is suppose to go officially started by 2nd Feb 2011,



Android is now ready to setup new landmarks over the time...

Lets hope for the best.... :)