[android-beginners] Re: How to export data to excel?

2009-09-02 Thread Chi Kit Leung
CSV is the simplest way!

On Wed, Sep 2, 2009 at 10:45 AM, Litho23 lith...@gmail.com wrote:


 I agree CSV would be the way to go.

 On Sep 1, 2:13 am, JUN youk...@gmail.com wrote:
  Hello all,
 
I want to export sqlite data to excel format in android? how to do
  it? thanks.
 



-- 
Regards,
Michael Leung
http://www.itblogs.info
http://www.michaelleung.info

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Re: force orientation change?

2009-09-02 Thread MMC2
Hi Jeffrey,

Try   android:screenOrientation=portrait  in the manifest.  
Is your groovy logo a three dimension barcode?

Mike


  - Original Message - 
  From: Jeffrey Blattman 
  To: android-beginners@googlegroups.com 
  Sent: Wednesday, September 02, 2009 2:30 PM
  Subject: [android-beginners] force orientation change?


  wondering if there is a way to force the screen orientation one way or the 
other ... regardless of the phone's actual orientation.

  thanks.


  -- 

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---

inline: qr-gmail.png

[android-beginners] Re: voice call recording

2009-09-02 Thread Natalya Dobry
Can you gave me the link on that topic ?

On Wed, Sep 2, 2009 at 8:09 AM, kapil.k kapnk...@gmail.com wrote:


 I know allready there are some post on this topic.Thats why i am
 shocked couse  telephony class is protected.n we cant do call
 recording.playing audio files on call n lot many stuffs,this is a
 really important class.is there any way to access it of this is added
 in new version cup cake?

 is there any hopes in feature that is going to happen.Come on android
 team your image is developer friendly platform.please do something 
 reply.
 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Re: startActivity() crash...

2009-09-02 Thread Tikoze

Roman,

Ok, so I did a little more tinkering around with this and found the
following:

I can use PackageManager.getLaunchIntentForPackage(packageName) and I
get a valid Intent to launch the activity.  However, no matter what
flags I set (I have tried with both setFlags and addFlags methods)
this causes a another instance of the application to be created when I
call startActivity(intent).

If I use the baseIntent as described in an earlier post for a
workaround everything works fine and I do not have this problem.

Is there a way, using the intent instance returned from
PackageManager.getLaunchIntentForPackage(packageName) that I can just
bring the current activity to the foreground?  I have tried adding and
setting the FLAG_ACTIVITY_REORDER_TO_FRONT flag without luck...

Thanks,
Justin

On Sep 1, 3:35 pm, Justin Anderson janderson@gmail.com wrote:
 Roman,

 Thank you very much for the feedback.  I will look a little more into the
 PackageManager and PackageInfo classes and see what I can come up with.  I
 think I saw some method in there that would return a launchable intent...

 Thanks,
 Justin
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --

 On Tue, Sep 1, 2009 at 3:19 PM, Roman ( T-Mobile USA) 

 roman.baumgaert...@t-mobile.com wrote:

  Justin,

  In case of the calendar application the activities

         activity android:name=MonthActivity android:label=@string/
  month_view
             android:theme=@style/CalendarTheme /
         activity android:name=WeekActivity android:label=@string/
  week_view
             android:theme=@style/CalendarTheme /
         activity android:name=DayActivity android:label=@string/
  day_view
             android:theme=@style/CalendarTheme /
         activity android:name=AgendaActivity android:label=@string/
  agenda_view
             android:theme=@android:style/Theme.Light
             android:exported=true /

  have no action assigned. When you try to start this activities from
  SDK level you get the permission error because you don't have the
  correct permissions.

  When you start the calendar application with

  calendarIntent.setClassName
  (com.android.calendar,com.android.calendar.LaunchActivity);

  the calendar app is brought to the foreground at the last activity it
  was. If you left the calendar app in the MonthActivty, it will be in
  the monthActivity after executing the command above.

  I assumed that you can use the PackageManager to find out about
  activities but

       PackageInfo packageInfo = pm.getPackageInfo
  (taskInfo.topActivity.getPackageName(), GET_ACTIVITIES);

  in case of the calendar application returns NULL.

  I noticed that the approach you took works fine for 3rd party apps and
  some of the system apps but not all system apps ...

  --
  Roman Baumgaertner
  Sr. SW Engineer-OSDC
  ·T· · ·Mobile· stick together
  The views, opinions and statements in this email are those of the
  author solely in their individual capacity, and do not necessarily
  represent those of T-Mobile USA, Inc.

  On Aug 30, 11:45 pm, Tikoze janderson@gmail.com wrote:
   Roman,

   I very well may be missing something here, but using
   taskInfo.topActivity still does not work (even if a taskInfo
   instance)... The problem, at least for the Calendar, is that
   taskInfo.topActivity.getClassName() does not return
   com.android.calendar.LaunchActivity It returns
   com.android.calendar.MonthActivity or com.android.calendar.DayActivity
   or com.android.calendar.WeekActivity and all of those cause my app to
   crash.

   Actually, if you look at the very first post I made about this, I am
   using the topActivity object to modify the newly created intent...

   Am I not supposed to use taskInfo.topActivity.getClassName()?  That is
   what I assume you mean when you mention activity name because I
   cannot find anything in the topActivity object that references an
   activity name.

   I have a workaround for the problem, as mentioned in an earlier post,
   but I am still interested in figuring out the cause of this problem to
   help me better understand the Android operating system.

   Thanks,
   Justin
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Re: A Racing Car App in Android

2009-09-02 Thread Marc Lester Tan
try this http://nehe.gamedev.net/ and someone already ported the tutorials
to android here http://insanitydesign.com/wp/projects/nehe-android-ports/

-Marc

On Wed, Sep 2, 2009 at 1:48 AM, Maxood maqs...@salsoft.net wrote:


 I want to develop an application that involves a racing car. The car
 obviously moves forward, backward, left and right in a 3D environment.
 I like to make such an app using OpenGL ES. Can someone refer me a
 tutorial.

 Thank you,
 Maxood
 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Re: voice call recording

2009-09-02 Thread kapnkore
http://forum.xda-developers.com/showthread.php?t=488475
http://groups.google.com/group/android-platform/browse_thread/thread/ed00ef4a87a899e3
http://groups.google.com/group/android-developers/browse_thread/thread/355254941f17aa17



On Wed, Sep 2, 2009 at 12:27 PM, Natalya Dobry natalyado...@gmail.comwrote:

 Can you gave me the link on that topic ?


 On Wed, Sep 2, 2009 at 8:09 AM, kapil.k kapnk...@gmail.com wrote:


 I know allready there are some post on this topic.Thats why i am
 shocked couse  telephony class is protected.n we cant do call
 recording.playing audio files on call n lot many stuffs,this is a
 really important class.is there any way to access it of this is added
 in new version cup cake?

 is there any hopes in feature that is going to happen.Come on android
 team your image is developer friendly platform.please do something 
 reply.



 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Re: A Racing Car App in Android

2009-09-02 Thread Maxood

These links would be quite informative and helpful in understanding
OpenGL on android.It seems like that lesson no. 10 caters to my
requirement.
Am i right?

Waiting for your reply,
Maxood

On Sep 2, 1:58 pm, Marc Lester Tan mail...@gmail.com wrote:
 try thishttp://nehe.gamedev.net/and someone already ported the tutorials
 to android herehttp://insanitydesign.com/wp/projects/nehe-android-ports/

 -Marc



 On Wed, Sep 2, 2009 at 1:48 AM, Maxood maqs...@salsoft.net wrote:

  I want to develop an application that involves a racing car. The car
  obviously moves forward, backward, left and right in a 3D environment.
  I like to make such an app using OpenGL ES. Can someone refer me a
  tutorial.

  Thank you,
  Maxood
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Re: A Racing Car App in Android

2009-09-02 Thread Maxood

There are errors in the Run.java file of Lesson 10. Also the
AndroidManifest.xml file contains error as well . Please look into
them.

Maxood

On Sep 2, 1:58 pm, Marc Lester Tan mail...@gmail.com wrote:
 try thishttp://nehe.gamedev.net/and someone already ported the tutorials
 to android herehttp://insanitydesign.com/wp/projects/nehe-android-ports/

 -Marc



 On Wed, Sep 2, 2009 at 1:48 AM, Maxood maqs...@salsoft.net wrote:

  I want to develop an application that involves a racing car. The car
  obviously moves forward, backward, left and right in a 3D environment.
  I like to make such an app using OpenGL ES. Can someone refer me a
  tutorial.

  Thank you,
  Maxood
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Re: Want to graduate from android-beginners to android-developers

2009-09-02 Thread cellurl

Thanks Yusuf,

It uses your-network to PUSH lat,lon,speed to show up here:
http://www.wikispeedia.org/l/maps.html

If it seems to be a network/programming issue, perhaps its ok to
continue discussion here a little? BTW, it does yell at you if you
drive 10 over the limit

I only ever ran it on on eclipse,  I will try to look in the logs to
find you...

Q: Perhaps there are some gotcha's in going to a real device?

-jp


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Map object recycling in MapView

2009-09-02 Thread Matija

How to disable map object recycling in MapView ?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Re: How to send uppercase letter using InstrumentationTestCase.sendKeys() ?

2009-09-02 Thread Balwinder Kaur (T-Mobile USA)

Did you try KEYCODE_SHIFT_LEFT or KEYCODE_SHIFT_RIGHT ?

Balwinder Kaur
Open Source Development Center
·T· · ·Mobile· stick together

The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


On Sep 1, 7:57 pm, Yasser yassersiddi...@gmail.com wrote:
 Hi,

 Using the sendKeys() function I am able to send small letters like
 sendKeys(A B C).
 How to send capital letters? I didn't find any key event for them in
 KeyEvent class.

 Is there any separate event that I have to send prior to sending a
 letter, in order to make it uppercase?

 Thanks
 Yasser
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Re: Cannot see my HTC Magic via DDMS to take screenshot

2009-09-02 Thread julz

I have the same problem on linux. I have connected my device and
turned on the USB debugging, but still it doesnt show up...

Thanks a lot,
J

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] About Android Maps API

2009-09-02 Thread n.hashimoto

It is a question concerning Android Maps API.
Isn't there problem if participating in AndroidMarket even if a pay
application using Android Maps API is made?

Moreover, does a special use limitation exist when Android Maps API is
used?

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] doubt in installing eclipse

2009-09-02 Thread chubby

 I added site https://dl-ssl.google.com/android/eclipse/ by refering
to the steps mentioned.after that i should install android editors and
android development tools under developer tools .. I am getting
android ddms and android development tools.android editor is replaced
by android ddms. please help me regarding this

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] ADC2 [tools] Mezzofanti - Augmented reality through text recognition

2009-09-02 Thread ITWizard

Hi all,

we are happy to share with you the release of Mezzofanti, an
application that allows reality augmentation (as seen in camera mode)
with information about any text in view. The augmentation is done
through an internal text-recognition engine.

The application at a glance:
1. Select a text of interest (ex: menu at a restaurant, tourist
information sign, etc), and take a photo. The internal-OCR engine will
start text-recognition.
2. Use Mezzofanti to translate the text (or parts of it) to any one of
over forty languages, or to google it on the web, find more
information in the dictionary or on Wikipedia.

Technologies:
- the internal-OCR engine is a modified version of Tesseract 2.03,
currently developed by Google under Apache License v2.0. - The engine
is particularly optimized for 5 languages (English, German, Spanish,
Italian, and French), but it works fairly well with any other language
that uses the Latin alphabet.
- the interface between the OCR engine (C++) and Java is done in JNI
- the main core is programmed in Java
- the translation engine is based on Google-translate

License information:
- all Mezzofanti code is available for free under the Apache License
v2.0 and it is posted at google code.

On our website http://www.itwizard.ro you can also find:
- a tutorial about Mezzofanti's features and internal architecture
- all the Mezzofanti code, and a tutorial on how to install  run it
from your own SDK
- how to interface the Tesseract OCR with your own code, JNI/NDK how-
to
- many other tutorials and examples for Android

We encourage dialog, so please leave us some feedback. We're
particularly interested in collaboration opportunities on new and
exciting projects for mobile platforms.

Looking forward for your thoughts! ;)

Best regards
IT Wizard

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Default keyboard pop up

2009-09-02 Thread salman

Hi ,
   i made a calculator appliation on the android but whenever i
click on edit text the default keyboard pop up .I want to disable it
by  implementing  something in code because if i want default keyboard
in some other application it should work.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Re: How to send uppercase letter using InstrumentationTestCase.sendKeys() ?

2009-09-02 Thread Yasser

Thanks Balwinder. Passing the character after SHIFT_LEFT or
SHIFT_RIGHT did the job.

Isn't there any single method which can be used to send any character
type including special? something like sendKeys(@Abc)

On Sep 2, 8:23 am, Balwinder Kaur (T-Mobile USA) balwinder.k...@t-
mobile.com wrote:
 Did you try KEYCODE_SHIFT_LEFT or KEYCODE_SHIFT_RIGHT ?

 Balwinder Kaur
 Open Source Development Center
 ·T· · ·Mobile· stick together

 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Sep 1, 7:57 pm, Yasser yassersiddi...@gmail.com wrote:



  Hi,

  Using the sendKeys() function I am able to send small letters like
  sendKeys(A B C).
  How to send capital letters? I didn't find any key event for them in
  KeyEvent class.

  Is there any separate event that I have to send prior to sending a
  letter, in order to make it uppercase?

  Thanks
  Yasser- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Android apps on Symbian phones

2009-09-02 Thread d...@rk.lord

If android apps have compatibility issue running on a Symbian
mobile,is there no api that ports it?

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Ant build for android-1.5/samples

2009-09-02 Thread jotobjects

What is the cookbook way to build the sample apps in the android-1.5/
samples SDK directory.  There are not any ant build.xml scripts.  I
tried  android create project using the samples directory but that
gave me an error saying the directory already existed and then
proceeded to overwrite things strings.xml.  So that was clearly NOT
the right thing to do.

I thought it would be nice to build the samples and play with them.
How do I do that?  I'm looking for the non-Eclipse way using ant - but
I don't see how to do it with Eclipse either.

Thanks - Paul Copeland

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] rssi of multiple wifi networks

2009-09-02 Thread eska

Hi,

It is posible to get rssi of all avilable network connections?

The only think I managed to do is to read the rssi value of network
I'm conected to:

wifiService=(WifiManager) getSystemService(Context.WIFI_SERVICE);
wifiService.getConnectionInfo().getRssi();

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Re: A Racing Car App in Android

2009-09-02 Thread ishiiml
yう
BlackBerry from DOCOMO

-Original Message-
From: Maxood maqs...@salsoft.net

Date: Wed, 2 Sep 2009 03:39:31 
To: Android Beginnersandroid-beginners@googlegroups.com
Subject: [android-beginners] Re: A Racing Car App in Android



These links would be quite informative and helpful in understanding
OpenGL on android.It seems like that lesson no. 10 caters to my
requirement.
Am i right?

Waiting for your reply,
Maxood

On Sep 2, 1:58 pm, Marc Lester Tan mail...@gmail.com wrote:
 try thishttp://nehe.gamedev.net/and someone already ported the tutorials
 to android herehttp://insanitydesign.com/wp/projects/nehe-android-ports/

 -Marc



 On Wed, Sep 2, 2009 at 1:48 AM, Maxood maqs...@salsoft.net wrote:

  I want to develop an application that involves a racing car. The car
  obviously moves forward, backward, left and right in a 3D environment.
  I like to make such an app using OpenGL ES. Can someone refer me a
  tutorial.

  Thank you,
  Maxood



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] ExpandableList Items click after scroll

2009-09-02 Thread Steve Hall

Hi,
I am working on an ExpandableListView.  It all works fine until I
scroll the current set of views off the screen where upon I cannot
select either Groups or Children. After trying to select a group when
I roll the ball the group I tried to select becomes sellected and all
views within the created view set become selectable.

Any ideas??
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Re: Making separate service app and separate activity app

2009-09-02 Thread swapnil kamble
On Wed, Sep 2, 2009 at 11:06 AM, swapnil kamble swap.kam...@gmail.comwrote:

 Hi All,
  I am new to android. I want to create a service, which will
 installed independently. And there will be multiple activity apps
 communicating with it, justlike doing IPC. I saw the DualSeviceClient sample
 which itself writes a service and communicates with it. But I want to run
 service only app separately and activity app separately.

 I also tried a separate service wiht my own. I installed it also. Now to
 start or stop from activity app I need to call startService (Intent) or
 StopService (Intent).

 And my problem is how do I know class name package name reqd for intent
 before starting or stopping in following code,

 Intent i = new Intent();

 *i.setClassName( com.DualServiceOnly,
 com.DualServiceOnly.DualServiceOnly );* // How to
 associate service here

Now I am using this code to call service as

Intent i = new Intent(ICounterService.class.getName());
ComponentName cn = startService( i );

but I am getting cn as null, ie, service not available.


How do I get list of running services ?

I have installed service with android.



 startService( i );

 Is there any sample available for this ?

 Thanks in advance.



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Re: force orientation change?

2009-09-02 Thread ahmed mohamad
i like how u got ur mail on upcode geeky

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Making separate service app and separate activity app

2009-09-02 Thread swapnil kamble
Hi All,
 I am new to android. I want to create a service, which will
installed independently. And there will be multiple activity apps
communicating with it, justlike doing IPC. I saw the DualSeviceClient sample
which itself writes a service and communicates with it. But I want to run
service only app separately and activity app separately.

I also tried a separate service wiht my own. I installed it also. Now to
start or stop from activity app I need to call startService (Intent) or
StopService (Intent).

And my problem is how do I know class name package name reqd for intent
before starting or stopping in following code,

Intent i = new Intent();

*i.setClassName( com.DualServiceOnly,
com.DualServiceOnly.DualServiceOnly );* // How to
associate service here

startService( i );

Is there any sample available for this ?

Thanks in advance.

-- 
...Swapnil

|| Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
|| Hare RamaHare Rama   Rama   RamaHare Hare ||

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Re: I want to know to get browse history on android ?

2009-09-02 Thread Marc

Just press menuthen Favorites (or Bookmark) and you will find
the History tab

On 1 sep, 03:24, eaindra nilar eaindrani...@gmail.com wrote:
 How do I do to get browser history on android native API .Please help and
 explain me.
 Thanks

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Re: Ant build for android-1.5/samples

2009-09-02 Thread jotobjects

I figured this out on my own.  android update project does the right
thing if and only if AndroidManifest.xml exists in the target
directory (it does for the samples).

Example (first start emulator for install)

cd platfrom/android-1.5/ApiDemos
android update project -t 2 -p .
ant debug
adb install bin/ApiDemos-debug.apk

A readme file in the samples directory with the steps for building the
samples would be helpful for newbies.  It seems I encountered a bug in
android create project as it destructively over wrote files like
strings.xml in an existing project - maybe the tool should not allow
you to shoot yourself in the foot so easily :-).

On Sep 1, 12:46 pm, jotobjects jotobje...@gmail.com wrote:
 What is the cookbook way to build the sample apps in the android-1.5/
 samples SDK directory.  There are not any ant build.xml scripts.  I
 tried  android create project using the samples directory but that
 gave me an error saying the directory already existed and then
 proceeded to overwrite things strings.xml.  So that was clearly NOT
 the right thing to do.

 I thought it would be nice to build the samples and play with them.
 How do I do that?  I'm looking for the non-Eclipse way using ant - but
 I don't see how to do it with Eclipse either.

 Thanks - Paul Copeland
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] how to reuse preference in xml

2009-09-02 Thread az9702

Hi All,

I understand we can reuse layouts with the xml include tag.

Can we reuse a preference in the same way ? For example, I have a
custom
seekbar preference that needs to be instantiated in different
preference xmls with same parameters.

The layout include did not work with preference in my tests.

Are there any special tags for preference reuse ?

Thanks in advance.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] handling location error conditions

2009-09-02 Thread Jeffrey Blattman




i'm trying to write my app to be robust about error conditions that
might occur with regards to location. this i what i understand so far.
can someone verify?

1. if no location provider is found (LocationManager.getBestProvider()
returns null), i should ... ? not sure here. exit the app? ask them to
enable something and exit the app? would this ever occur?

2. if there's no last known location, i should pause the app, modally,
and wait for a location update to arrive?

? thanks.

-- 





[android-beginners] Re: rssi of multiple wifi networks

2009-09-02 Thread Roman ( T-Mobile USA)

I am only aware of getting the signal level after a successful scan
with class ScanResult. You could convert the signal level back to a
RSSI value.

Based on the documentation the class WifiInfo can be used for
connections which are already setup or in the progress of being setup.
You might be able to initiate a connection  and try to get the RSSI
with getRSSI also if you are not able to get connected. I did not try
this yet and for sure it would not be the fastest way.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Sep 2, 3:03 am, eska stan.kacpr...@gmail.com wrote:
 Hi,

 It is posible to get rssi of all avilable network connections?

 The only think I managed to do is to read the rssi value of network
 I'm conected to:

 wifiService=(WifiManager) getSystemService(Context.WIFI_SERVICE);
 wifiService.getConnectionInfo().getRssi();
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Re: Want to graduate from android-beginners to android-developers

2009-09-02 Thread Yusuf Saib (T-Mobile USA)

 Q: Perhaps there are some gotcha's in going to a real device?

Absofrickinlutely.



Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners]

2009-09-02 Thread saurabh sinha

hello I want to know what is compass application and accelorometer in android
plz guide me little bit

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners]

2009-09-02 Thread saurabh sinha

I am looking for webservice using ksoap2 can u tell me

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Efficiency of requestLocationUpdates() and how to save these gps data

2009-09-02 Thread Stefan

Hello,

i'm developing a small gps application. I want to track some gps
data. So I use the requestLocationUpdates - function.
Now a quote from the android development reference:

The frequency of notification or new locations may be controlled
using the minTime and minDistance parameters. If minTime is greater
than 0, the LocationManager could potentially rest for minTime
milliseconds between location updates to conserve power. If
minDistance is greater than 0, a location will only be broadcast if
the device moves by minDistance meters. To obtain notifications as
frequently as possible, set both parameters to 0. 

My question is, how much battery power will be lost, if a user wants
to track for example 100 km and i set the parameters to 0?
My second question is, how I can save the gps data efficiently?? If
the user wants to track a 100km tour, I will have 100.000 gps data (if
the device broadcast a change of location every 1m).

So I think, I have to choose the parameter values of the
requestLocationUpdates - function greater than 0.
Has anyone experience and can give me a value which gives good results
(if I drive with a bike (10-15km/h) or if i walk (5km/h)? And how can
I save a specific point during the minTime and minDist (for example if
there is a landmark)?


Thanks,
Stefan
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Re: Default keyboard pop up

2009-09-02 Thread Beth

There are a few posts on this subject on the other Android group. I
looked into this over the weekend while trying to turn off the
onscreen keyboard for a timepicker widget.  Here is the answer for
Edit Text:

-- Forwarded message --
Date: Sun, Aug 30, 2009 at 2:29 PM
Subject: Re: Hide the virtual keyboard
To: Beth emez...@gmail.com


Hello,

I'm using this code to hide the keyboard on an EditText:

public void hideKeyBoard(EditText et) {

InputMethodManager imm = (InputMethodManager) getSystemService
(Activity.INPUT_METHOD_SERVICE);

imm.hideSoftInputFromWindow(et.getWindowToken(),
InputMethodManager.HIDE_NOT_ALWAYS);

}


NOTE - this does not work with the TimePicker.  I hope it helps.

On Sep 2, 1:50 am, salman salman.kha...@gmail.com wrote:
 Hi ,
        i made a calculator appliation on the android but whenever i
 click on edit text the default keyboard pop up .I want to disable it
 by  implementing  something in code because if i want default keyboard
 in some other application it should work.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] startActivity crash

2009-09-02 Thread tinyang
Hello.
 
I have an application in which I am trying to start an activity (geotest)
in, and the activity crashes upon start of the application.  Below is my
code and my logcat output.  I can't figure out the problem, because I have
several other activities I am able to start exactly the same way with no
problem.  When I compare the code, I can't see what I'm doing wrong with the
activity that crashes.  Am I missing permissions for something maybe?  Can
someone please help?  Thanks!

--
 
geotest.java:
 
package net.tinyang.geotest;

import android.app.Activity;

//import android.content.Intent;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;

import android.widget.Toast;

public class geotest extends Activity {

Button geotagbtn = null;

Button next2btn = null;

@Override

public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

geotagbtn = (Button) findViewById(R.id.geotagbtn);

geotagbtn.setOnClickListener(new View.OnClickListener() {

public void onClick(View v) {

//startActivity(new Intent(MainMenu.this, TakePic.class));

Toast.makeText(geotest.this, Geotag Picture coming soon, 5000).show();

}

});

next2btn = (Button) findViewById(R.id.next2btn);

next2btn.setOnClickListener(new View.OnClickListener() {

public void onClick(View v) {

//startActivity(new Intent(Geotest.this, FieldGuide.class));

Toast.makeText(geotest.this, Next coming soon, 5000).show();

}

});

}

}


--

geotag.xml:

?xml version=1.0 encoding=utf-8?

LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;

android:orientation=vertical

android:layout_width=fill_parent

android:layout_height=fill_parent 

TextView

android:id=@+id/pictitle

android:layout_width=fill_parent

android:layout_height=wrap_content

android:layout_marginTop=10dip

android:text=Geotag your Picture / 

ImageView android:id=@+id/camsurface

android:layout_width=wrap_content 

android:layout_height=wrap_content

/ImageView 

TableLayout

android:layout_width=fill_parent

android:layout_height=wrap_content  

TableRow 

Button android:id=@+id/geotagbtn

android:layout_width=wrap_content 

android:layout_height=wrap_content

android:layout_below=@id/camsurface

android:layout_centerHorizontal=true

android:text= Geotag  /

Button android:id=@+id/next2btn

android:layout_width=wrap_content 

android:layout_height=wrap_content

android:layout_centerHorizontal=true

android:text= Next  /

/TableRow

/TableLayout

/LinearLayout


-

manifest:

?xml version=1.0 encoding=utf-8?

manifest xmlns:android=http://schemas.android.com/apk/res/android;

package=net.tinyang.geotest

android:versionCode=1

android:versionName=1.0

uses-permission android:name=android.permission.INTERNET /

uses-permission android:name=android.permission.CAMERA/

application android:icon=@drawable/icon android:label=@string/app_name

activity android:name=.geotest

android:label=@string/app_name

intent-filter

action android:name=android.intent.action.MAIN /

category android:name=android.intent.category.LAUNCHER /

/intent-filter

/activity

/application 

uses-sdk android:minSdkVersion=2 /

/manifest 


---

Logcat output:

 
09-02 23:14:42.623: ERROR/mountd(20): could not read initial mass storage
state
09-02 23:14:42.934: ERROR/flash_image(29): can't find recovery partition
09-02 23:14:50.694: ERROR/MemoryHeapBase(52): error opening /dev/pmem: No
such file or directory
09-02 23:14:50.694: ERROR/SurfaceFlinger(52): Couldn't open
/sys/android_power/wait_for_fb_sleep or /sys/android_power/wait_for_fb_wake
09-02 23:14:50.725: ERROR/GLLogger(52): couldn't load libhgl.so library
(Cannot find library)
09-02 23:14:50.805: ERROR/GLLogger(52): couldn't load libhgl.so library
(Cannot find library)
09-02 23:14:53.533: ERROR/BatteryService(52): Could not open
'/sys/class/power_supply/usb/online'
09-02 23:14:53.533: ERROR/BatteryService(52): Could not open
'/sys/class/power_supply/battery/batt_vol'
09-02 23:14:53.533: ERROR/BatteryService(52): Could not open
'/sys/class/power_supply/battery/batt_temp'
09-02 23:14:53.754: ERROR/EventHub(52): could not get driver version for
/dev/input/mouse0, Not a typewriter
09-02 23:14:53.754: ERROR/System(52): Failure starting core service
09-02 23:14:53.754: ERROR/System(52): java.lang.SecurityException
09-02 23:14:53.754: ERROR/System(52): at
android.os.BinderProxy.transact(Native Method)
09-02 23:14:53.754: ERROR/System(52): at

[android-beginners] Re: handling location error conditions

2009-09-02 Thread Stefan

Hi,

i have similar problems, so if hope that somebody can help us.

 2. if there's no last known location, i should pause the app, modally,
and wait for a location update to arrive?

What will be, if you have only the last location and you stop the app
and return to it later and than you want to start a tracking; the
error can be get great. Therefore, I have found a source code (not
tested yet, but it looks fine).

A new question is, what can I done, if I get periodic updates with the
requestLocationUpdates(.., minTime, minDist,...) and now the user want
to get the current location at a specific point unperiodic (minDist =
100m and the user wants to save the point only 50m away from the last
point for example)


Thanks,
Stefan

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Re: I want to know to get browse history on android ?

2009-09-02 Thread eaindra nilar
Thank
Sorry,
 I mean, I want to pull out web histroy from content provider  for my
application.



I have some coding. But I got exception .

So, how can I do ?please help me.
Here are my coding
package com.app.browser;


import android.app.ListActivity;
import android.database.Cursor;
import android.os.Bundle;
import android.widget.ListAdapter;
import android.widget.SimpleCursorAdapter;



public class BrowserApp extends ListActivity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.list_activity_view);
//Cursor
browserinfo=android.provider.Browser.getAllVisitedUrls(getContentResolver());

String []proj= new String
[]{android.provider.Browser.SearchColumns._ID,
android.provider.Browser.SearchColumns.DATE,
android.provider.Browser.SearchColumns.SEARCH};
Cursor results=

managedQuery(android.provider.Browser.SEARCHES_URI,proj,null,null,
android.provider.Browser.SearchColumns.URL+ ASC);
   /* if (results.moveToFirst())
{
do {
DisplayTitle(results);
} while (results.moveToNext());
}


}
public void DisplayTitle(Cursor c)
{

Toast.makeText(this,url:+c.getString(0)+\t+search:+c.getString(1)+\t+c.getString(2),Toast.LENGTH_LONG).show();

}*/

ListAdapter adapter = new SimpleCursorAdapter(
this, // Context.
android.R.layout.two_line_list_item,  // Specify the row
template to use (here, two columns bound to the two retrieved cursor rows).
results,// Pass in the
cursor to bind to.
proj, // Array of cursor columns to bind to.
new int[0]); // Parallel
array of which template objects to bind to those columns.

// Bind to our new adapter.
setListAdapter(adapter);

}
}

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Re: handling location error conditions

2009-09-02 Thread Stefan



 What will be, if you have only the last location and you stop the app
 and return to it later and than you want to start a tracking; the
 error can be get great. Therefore, I have found a source code (not
 tested yet, but it looks fine).

Sorry, i forgot the link:
http://paste.pocoo.org/show/b67L69qf5QDNtq1pTzZz/
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] apk install error

2009-09-02 Thread geeth ganesh
when i try to install the apk in emulator i'm getting this error... Y

./adb install /home/.../tools/mapdemo/bin/mapact-debug.apk
* daemon not running. starting it now *
* daemon started successfully *
56 KB/s (4703 bytes in 0.081s)
pkg: /data/local/tmp/mapact-debug.apk
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]


-- 
with regards
Geetha

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-beginners] Re: Why does using People._COUNT cause IllegalArgumentException to be thrown?

2009-09-02 Thread Andruid
Hi,

Thanks for your reply.

My code is working now, but I don't know why. I already had the
appropriate permissions as suggested by you. Your suggestion to add
more contacts can't help, since the Uri 'myperson' is not used later
in the code where the exception occurs. So, I'm clueless about why it
didn't work last week.

Thanks, anyway.

Pankaj.



On Aug 27, 1:46 pm, 장영환 cyberj...@gmail.com wrote:
 Hi.
 I tried with your code, it works.
 Kindly check two things.

 1. You should over 23 contacts, because you write Uri myPerson =
 ContentUris.withAppendedId( People.CONTENT_URI, 23 );

 2. You should write permission code in AndroidManifest.xml like below.

     uses-permission android:name=android.permission.READ_CONTACTS /
     application android:icon=@drawable/icon 
 android:label=@string/app_name
         activity android:name=.ContentProviderExamples
                   android:label=@string/app_name
             intent-filter

 Have a good day!!

 2009/8/26PankajGodbole panka...@gmail.com



  Hello,

  I am learning about Content Providers, and tried the example from the 
  official Android tutorial on the topic. Please see the code below:

   

  package com.example.devguide;

  import android.app.Activity;
  import android.content.ContentUris;
  import android.database.Cursor;
  import android.net.Uri;
  import android.os.Bundle;
  import android.provider.Contacts.People;
  import android.util.Log;

  public class ContentProviderExamples extends Activity {
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);

      /* Use the ContentUris method to produce the base URI
   * for the contact with _ID == 23. */
      Uri myPerson = ContentUris.withAppendedId( People.CONTENT_URI, 23 );

      /* Alternatively, use the Uri method to produce the base URI. */
      myPerson = Uri.withAppendedPath( People.CONTENT_URI, 23 );

      /* Query this particular record. */
      Cursor c = managedQuery( myPerson, null, null, null, null );

      /* Form an array specifying which columns to return. */
      String[] projection = new String[] { People._ID,
   //People._COUNT, //throws 
  IllegalArgumentException
   People.NAME,
   People.NUMBER };
      Log.i( CPE, projection[] =  + projection );

      /* Get the base URI for the People table in the Contacts content 
  provider. */
      Uri contacts = People.CONTENT_URI;

      /* Construct the query. */
      Cursor managedCursor = managedQuery( contacts,
   projection,
   null,
   null,
   People.NAME +  ASC );

      showColumnData( managedCursor );

      Log.i( CPE, End of current code );

      }

      private void showColumnData( Cursor c ) {
      if ( c.moveToFirst() ) {
      String name;
      String phoneNumber;
      String imagePath;
      int nameColumn = c.getColumnIndex( People.NAME );
      int phoneColumn = c.getColumnIndex( People.NUMBER );

      do {
      /* Obtain the field values. */
      name = c.getString( nameColumn );
      phoneNumber = c.getString( phoneColumn );
      Log.d( CPE, name =  + name + , phone =  + phoneNumber 
  );

      } while ( c.moveToNext() );
      }
      }
  }

  However, the example given did not work, because calling managedQuery with 
  the array projection as one of the arguments resulted in a 
  IllegalArgumentException (java.lang.IllegalArgumentException). Android says 
  that the column _count which is the value of the element People._COUNT in 
  array projection is invalid. Can anyone explain to me the reason for this 
  exception, even though the names of all the columns are as per the API 
  specification?

  Please see the output of LogCat below:

  08-26 12:06:20.330: ERROR/AndroidRuntime(1112): java.lang.RuntimeException: 
  Unable to start activity 
  ComponentInfo{com.example.devguide/com.example.devguide.ContentProviderExamples}:
   java.lang.IllegalArgumentException: Invalid column _count

  Thanks,
 PankajGodbole,
--~--~-~--~~~---~--~~
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