I don't like the asterisks either. It's also a pain when it's nowhere
near the same code that is being asked about. For instance, note the
do...while completely outside of a method :-). I can't really do much
to help out with that.

On Apr 5, 4:10 pm, logisic <[EMAIL PROTECTED]> wrote:
> i'm just saying it's a pain reading through the code with all those
> asterisks...
>
> On Apr 4, 3:46 am, "Analdin Judy" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> >    I want to make a call to a phone number.
> >    This is my code.What is the wrong in my code.I got errors(I marked the
> > lines,got error)
>
> >   Is anyother code for this function?
> > *
>
> > package* com.IW.Callapp;
>
> > *
>
> > import* java.util.ArrayList;
> > *
>
> > import* java.util.List;
>
> > *
>
> > import* android.app.Activity;
> > *
>
> > import* android.database.Cursor;
> > *
>
> > import* android.os.Bundle;
> > *
>
> > import* android.provider.Contacts.People;
> > *
>
> > import* android.util.Log;
> > *
>
> > import* android.view.Menu;
> > *
>
> > import* android.view.Menu.Item;
> > *
>
> > import* android.content.Intent;
> > *
>
> > public* *class* Callapp1 *extends* Activity {
>
> > Cursor c = getContentResolver().query(People.*CONTENT_URI*,*null*,*null*,*
> > null*,*null*);
>
> > *private* *int* contentViewId;
>
> > *public* *static* *final* *int* *MENU*=Menu.*SECONDARY*;
>
> >  *int* phoneIdx = c.getColumnIndex(People.Phones.*NUMBER*);
>
> > List listItems = *new* ArrayList();*//Errors in the semicolon*
>
> > //c.first();
>
> > *do* {
>
> > String phone = c.getString(phoneIdx);
>
> >   } *while*(c.next());
>
> > Intent i = *new* Intent();
>
> > i.setAction(DIAL_ACTION);
>
> > i.setData(*new* ContentURI(numbers.get(position)));
>
> > //startActivity(i);
>
> > /** Called when the activity is first created. */
>
> > @Override
>
> > *public* *void* onCreate(Bundle icicle) { //Errors in the braces
>
> > *super*.onCreate(icicle);
>
> > setContentView(R.layout.*main*);
>
> > }
> > }
>
> > Thanks
>
> > judy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to