Re: [android-developers] java.lang.ClassNotFoundException: android.support.v4.os.ParcelableCompatCreatorHoneycombMR2 in test project

2012-08-27 Thread nikhilesh singh Tak
Hi Mark,

Don that as well.. but same issue..

I am getting log as below

08-27 21:05:42.321: W/dalvikvm(28310): Link of class
'Landroid/support/v4/os/ParcelableCompatCreatorHoneycombMR2;' failed
08-27 21:05:42.331: W/ClassPathPackageInfoSource(28310): Cannot load class.
Make sure it is in your apk. Class name:
'android.support.v4.os.ParcelableCompatCreatorHoneycombMR2'. Message:
android.support.v4.os.ParcelableCompatCreatorHoneycombMR2
08-27 21:05:42.331: W/ClassPathPackageInfoSource(28310):
java.lang.ClassNotFoundException:
android.support.v4.os.ParcelableCompatCreatorHoneycombMR2


On Mon, Aug 27, 2012 at 8:49 PM, Mark Murphy wrote:

> On Mon, Aug 27, 2012 at 11:06 AM, nikhilesh singh Tak
>  wrote:
> > Yes I have checked that.
> >
> > In my main app project "android-support-v4.jar" is present in the libs
> > folder. Also in build path I have marked  the library as checked in
> "Order
> > and Export" section.
>
> You should not need to do that. *All* you need to do, on a modern
> edition of the tools, is to have the library in libs/. Doing anything
> else might mess matters up.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in NYC: http://marakana.com/training/android/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Nikhilesh Singh Tak

+91-9754070871
+91-9929098279

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] java.lang.ClassNotFoundException: android.support.v4.os.ParcelableCompatCreatorHoneycombMR2 in test project

2012-08-27 Thread nikhilesh singh Tak
Hi Mark,

Thanks for the reply.

Yes I have checked that.

In my main app project "android-support-v4.jar" is present in the libs
folder. Also in build path I have marked  the library as checked in "Order
and Export" section.

Even I tried it by adding the v4 jar in test project but that too didn't
worked...


On Sun, Aug 26, 2012 at 11:57 PM, Mark Murphy wrote:

> Make sure that you properly have the Android Support package attached
> to your project (e.g., android-support-v4.jar in your libs/
> directory).
>
> On Sun, Aug 26, 2012 at 2:06 PM, nikhilesh 
> wrote:
> > Hi Group,
> >
> > I created a project using the "support.v4" library. Now I am creating a
> test
> > project for my main app. But when I try to run it gives me the exception
> > "W/ClassPathPackageInfoSource(551): Caused by:
> > java.lang.ClassNotFoundException:
> > android.support.v4.os.ParcelableCompatCreatorHoneycombMR2 in loader
> > dalvik.system.PathClassLoader".
> >
> > I searched a lot but not able to find anything on it.
> >
> > Please help.
> >
> > Thanks
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in NYC: http://marakana.com/training/android/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] java.lang.ClassNotFoundException: android.support.v4.os.ParcelableCompatCreatorHoneycombMR2 in test project

2012-08-27 Thread nikhilesh singh Tak
Hi Mark,

Thanks for the reply.

Yes I have checked that.

In my main app project "android-support-v4.jar" is present in the libs
folder. Also in build path I have marked  the library as checked in "Order
and Export" section.

Even I tried it by adding the v4 jar in test project but that too didn't
worked...


On Sun, Aug 26, 2012 at 11:57 PM, Mark Murphy wrote:

> Make sure that you properly have the Android Support package attached
> to your project (e.g., android-support-v4.jar in your libs/
> directory).
>
> On Sun, Aug 26, 2012 at 2:06 PM, nikhilesh 
> wrote:
> > Hi Group,
> >
> > I created a project using the "support.v4" library. Now I am creating a
> test
> > project for my main app. But when I try to run it gives me the exception
> > "W/ClassPathPackageInfoSource(551): Caused by:
> > java.lang.ClassNotFoundException:
> > android.support.v4.os.ParcelableCompatCreatorHoneycombMR2 in loader
> > dalvik.system.PathClassLoader".
> >
> > I searched a lot but not able to find anything on it.
> >
> > Please help.
> >
> > Thanks
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in NYC: http://marakana.com/training/android/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Nikhilesh Singh Tak

+91-9754070871
+91-9929098279

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Duplicate contacts are read.

2012-01-04 Thread nikhilesh singh tak
Hi,

Any comment on this. I am still facing this issue. On debugging I found
that the duplication is becuse of the linked contacts. My contact book is
linked with multiple accounts(gmail, facebook etc). When I read the contact
I get multiple contacts with same display name but different _id.

Please suggest.

Thanks

On Thu, Dec 29, 2011 at 1:06 PM, Mukesh Srivastav wrote:

> you need to find with the cursor and get the id and then use the delete
> operation. this is what i did.
>
> some thing like cursor.delete.
>
>
> Warm Regards,
> *Mukesh Kumar*,
> Android Consultant/Freelancer,
> India,Hyderabad.
>
> On Thu, Dec 29, 2011 at 12:58 PM, nikhilesh singh tak <
> nikhileshsingh...@gmail.com> wrote:
>
>> @ mukesh thanks for the replay...
>>
>> But what will be the criteria to remove the duplicate entires from the
>> cursor.
>>
>>
>> On Thu, Dec 29, 2011 at 10:42 AM, Mukesh Srivastav 
>> wrote:
>>
>>> Dear Nikilesh,
>>>
>>> let the cursor retursn the duplicate value. you need to sort out to
>>> remove the duplicate.
>>>
>>>
>>> Warm Regards,
>>> *Mukesh Kumar*,
>>> Android Consultant/Freelancer,
>>> India,Hyderabad.
>>>
>>> On Thu, Dec 29, 2011 at 12:38 AM, nikki wrote:
>>>
>>>> Hi Group,
>>>>
>>>> Please help me, I am trying to read the native phonebook. I have used
>>>> " Cursor cursor = cr.query(ContactsContract.Contacts.CONTENT_URI,null,
>>>> null, null, ContactsContract.Contacts.DISPLAY_NAME + " COLLATE
>>>> LOCALIZED ASC");" to get all the contact ID.
>>>>
>>>> Based on the ID I am fetching other details like phone number, email
>>>> photo etc.
>>>>
>>>> The issue is on the devices whose phone books are synced with other
>>>> accounts as well( like gmail) I am getting duplicate entry for the
>>>> same contact in my application. The same contact name is repeated 4 5
>>>> times.
>>>>
>>>> I have searched a lot but not able to find anything on it.
>>>>
>>>>
>>>> Thanks In Advance.
>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Android Developers" group.
>>>> To post to this group, send email to
>>>> android-developers@googlegroups.com
>>>> To unsubscribe from this group, send email to
>>>> android-developers+unsubscr...@googlegroups.com
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/android-developers?hl=en
>>>
>>>
>>>
>>>
>>> --
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>
>>
>> --
>> Nikhilesh Singh Tak
>>
>> +91-9754070871
>> +91-9929098279
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Nikhilesh Singh Tak

+91-9754070871
+91-9929098279

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Duplicate contacts are read.

2011-12-28 Thread nikhilesh singh tak
@ mukesh thanks for the replay...

But what will be the criteria to remove the duplicate entires from the
cursor.

On Thu, Dec 29, 2011 at 10:42 AM, Mukesh Srivastav wrote:

> Dear Nikilesh,
>
> let the cursor retursn the duplicate value. you need to sort out to remove
> the duplicate.
>
>
> Warm Regards,
> *Mukesh Kumar*,
> Android Consultant/Freelancer,
> India,Hyderabad.
>
> On Thu, Dec 29, 2011 at 12:38 AM, nikki wrote:
>
>> Hi Group,
>>
>> Please help me, I am trying to read the native phonebook. I have used
>> " Cursor cursor = cr.query(ContactsContract.Contacts.CONTENT_URI,null,
>> null, null, ContactsContract.Contacts.DISPLAY_NAME + " COLLATE
>> LOCALIZED ASC");" to get all the contact ID.
>>
>> Based on the ID I am fetching other details like phone number, email
>> photo etc.
>>
>> The issue is on the devices whose phone books are synced with other
>> accounts as well( like gmail) I am getting duplicate entry for the
>> same contact in my application. The same contact name is repeated 4 5
>> times.
>>
>> I have searched a lot but not able to find anything on it.
>>
>>
>> Thanks In Advance.
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Nikhilesh Singh Tak

+91-9754070871
+91-9929098279

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] ant build file for android

2010-09-11 Thread nikhilesh singh tak
hey Leigh thanks for the help.

I found a very good reference document for the same at

http://www.androidengineer.com/2010/06/using-ant-to-automate-building-android.html


On Fri, Sep 10, 2010 at 12:49 AM, Leigh McRae
 wrote:
>  Look under other IDEs in the tools docs.  You can have android generate a
> build.xml and then you can override whatever you need.
>
>
> On 9/8/2010 4:04 AM, nikki wrote:
>>
>> hi group
>>
>> I need to write ant build file for my project.
>>
>> Do anyone have an idea about how to write ant build file for android.
>>
>>
>> regards
>>
>
> --
> Leigh McRae
> www.lonedwarfgames.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Nikhilesh

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Significance of "..." in doInBackground(Params...) of AsyncTask

2010-08-29 Thread nikhilesh singh tak
Hey Romain Guy thanks a lot for quick response and help. :)


Regards
Nikhilesh Singh Tak

On Mon, Aug 30, 2010 at 11:44 AM, Romain Guy  wrote:
> It's a notation called "varargs". See explanations here:
> http://download-llnw.oracle.com/javase/1.5.0/docs/guide/language/varargs.html
>
> On Sun, Aug 29, 2010 at 11:12 PM, nikki  wrote:
>> Hi Group,
>>
>> I was just going through the document over AsyncTask and came across
>> the notation "..." in the methods of Asynctask (For eg.
>> doInBackground(Params...)).
>>
>> I was a bit excited to know whats the significance of "..." in this
>> notation.
>>
>> Please help
>>
>> Regards
>> Nihkilesh
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Nikhilesh Singh Tak

+91-9630934374
+91-9929098279

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Toast message not displayed

2010-08-05 Thread nikhilesh singh tak
hi Flying Coder

Thanks for the suggestion.
In my case i don't want to make change to actual Service class because
in normal application run the Toast message is being displayed
properly.

But when i start the service from my test class, it give me such problem.

On Fri, Aug 6, 2010 at 5:37 AM, Flying Coder  wrote:
> Hi Nikki,
>    Toast's need to happen on the main UI thread.  Slightly different
> situation, but you may find this thread useful:
>
> http://groups.google.com/group/android-developers/browse_thread/thread/8fe7d6a776f5f2fb/a9ecf18a32891cab#a9ecf18a32891cab
>
> Cheers,
> Steve
>
>
> On Aug 5, 8:48 am, nikki  wrote:
>> hi group
>>
>> i have a service class written which gives notification(Toast dialog)
>> on every life cycle method call back. when i run my application all
>> works well.
>>
>> but when run this service class from my test project the toast message
>> are not displayed.
>>
>> it give the following log for the toast message
>>
>> 08-05 18:05:42.097: INFO/TestRunner(1763): started:
>> testService(com.android.example.testing.dummyapp.test.ServiceTest)
>> 08-05 18:05:42.317: INFO/NotificationService(581): enqueueToast
>> pkg=com.android.example.testing.dummyapp
>> callback=android.app.itransientnotification$stub$pr...@43703378
>> duration=0
>> 08-05 18:05:47.366: INFO/NotificationService(581): enqueueToast
>> pkg=com.android.example.testing.dummyapp
>> callback=android.app.itransientnotification$stub$pr...@436faa18
>> duration=1
>> 08-05 18:05:52.407: INFO/NotificationService(581): enqueueToast
>> pkg=com.android.example.testing.dummyapp
>> callback=android.app.itransientnotification$stub$pr...@43720e40
>> duration=1
>> 08-05 18:05:57.443: INFO/TestRunner(1763): finished:
>> testService(com.android.example.testing.dummyapp.test.ServiceTest)
>> 08-05 18:05:57.447: INFO/TestRunner(1763): passed:
>> testService(com.android.example.testing.dummyapp.test.ServiceTest)
>>
>> i want that the toast message should also be displayed on subsequent
>> calls to life cycle methods
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Toast message not displayed

2010-08-05 Thread nikhilesh singh tak
hi Flying Coder

Thanks for the suggestion.
In my case i don't want to make change to actual Service class because
in normal application run the Toast message is being displayed
properly.

But when i start the service from my test class, it give me such problem.

On Fri, Aug 6, 2010 at 5:37 AM, Flying Coder  wrote:
> Hi Nikki,
>    Toast's need to happen on the main UI thread.  Slightly different
> situation, but you may find this thread useful:
>
> http://groups.google.com/group/android-developers/browse_thread/thread/8fe7d6a776f5f2fb/a9ecf18a32891cab#a9ecf18a32891cab
>
> Cheers,
> Steve
>
>
> On Aug 5, 8:48 am, nikki  wrote:
>> hi group
>>
>> i have a service class written which gives notification(Toast dialog)
>> on every life cycle method call back. when i run my application all
>> works well.
>>
>> but when run this service class from my test project the toast message
>> are not displayed.
>>
>> it give the following log for the toast message
>>
>> 08-05 18:05:42.097: INFO/TestRunner(1763): started:
>> testService(com.android.example.testing.dummyapp.test.ServiceTest)
>> 08-05 18:05:42.317: INFO/NotificationService(581): enqueueToast
>> pkg=com.android.example.testing.dummyapp
>> callback=android.app.itransientnotification$stub$pr...@43703378
>> duration=0
>> 08-05 18:05:47.366: INFO/NotificationService(581): enqueueToast
>> pkg=com.android.example.testing.dummyapp
>> callback=android.app.itransientnotification$stub$pr...@436faa18
>> duration=1
>> 08-05 18:05:52.407: INFO/NotificationService(581): enqueueToast
>> pkg=com.android.example.testing.dummyapp
>> callback=android.app.itransientnotification$stub$pr...@43720e40
>> duration=1
>> 08-05 18:05:57.443: INFO/TestRunner(1763): finished:
>> testService(com.android.example.testing.dummyapp.test.ServiceTest)
>> 08-05 18:05:57.447: INFO/TestRunner(1763): passed:
>> testService(com.android.example.testing.dummyapp.test.ServiceTest)
>>
>> i want that the toast message should also be displayed on subsequent
>> calls to life cycle methods
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Nikhilesh Singh Tak

+91-9630934374
+91-9929098279

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Testing a service

2010-08-05 Thread nikhilesh singh tak
yes like that only... but i want to start the service from my test application.



On Thu, Aug 5, 2010 at 2:44 PM, Jeroen Kransen  wrote:
> Something like this from an Activity:
>
> startService(new Intent(this, RemoteSynchronizer.class));
>
> Jeroen
>
> On 5 aug, 11:08, nikki  wrote:
>> hi Elk
>>
>> thanks for the reply.
>>
>> I am able to start the service when i specify an implicit intent to
>> start the service but i am not getting any clue on how to start the
>> service with the explicit intent i.e. actually specifying the service
>> class.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Nikhilesh Singh Tak

+91-9630934374
+91-9929098279

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en