hi........shilipi.... i m also in new in android.... and i have some pdf file which is very useful for starting...so u send ur mail address then sent those pdf book...
On Fri, Dec 12, 2008 at 5:23 AM, Mark Murphy <mmur...@commonsware.com>wrote: > > shilpi jhilmil wrote: > > caN U HELP ME PLZ. > > I M THE beginer of android. > > i am facing a problem. > > i want to make call from my application..for that i am using Intent... > > > > My Code is... > > package android.phonedialer; > > > > import android.app.Activity; > > import android.content.Intent; > > import android.os.Bundle; > > import android.net.Uri; > > > > public class AndroidPhoneDialer extends Activity { > > /** Called when the Activity is first created. */ > > @Override > > public void onCreate(Bundle icicle) { > > super.onCreate(icicle); > > setContentView(R.layout.main); > > /** Create our Intent to call the Dialer */ > > /** Pass the Dialer the number 5551212 */ > > Intent DialIntent = new > > Intent(Intent.DIAL_ACTION,Uri.parse("tel:9999052325")); > > /** Use NEW_TASK_LAUNCH to launch the Dialer Activity */ > > DialIntent.setLaunchFlags(Intent.NEW_TASK_LAUNCH ); > > /** Finally start the Activity */ > > startActivity(DialIntent); > > } > > } > > > > I am getting error in "Intent.DIAL_ACTION" and Intent.NEW_TASK_LAUNCH > > Its saying that these cannot be resolved.. > > Please anyone help me.. > > If you look in the documentation for Intent: > > http://code.google.com/android/reference/android/content/Intent.html > > you will see that DIAL_ACTION is now ACTION_DIAL. I think > setLaunchFlags(Intent.NEW_TASK_LAUNCH) is now > setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), though I am not completely > certain. > > The example you are working from is probably for the older M5 SDK, so > you may have other changes you need to make to have it work on the > current SDK. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com > _The Busy Coder's Guide to Android Development_ Version 1.9 Published! > > > > -- Thanks & Regards, Sandeep Kukreti Software Engineer Noida --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---