Re: [android-developers] Re: problem parsing the package

2011-12-26 Thread Jim Graham
On Mon, Dec 26, 2011 at 05:19:17AM -0800, rachana govilkar wrote:
> Hello,
> I am in a problem related with ListView.
> I attach my List of users to the ListView and i also have a button.
> On click of which i need to pass the whole user object of that user to
> next file.

First of all, what "package" are you having trouble with?  Your subject
doesn't seem to match your problem here.  Did you hijack someone else's
thread?  If so, don't do that...it's extremely rude, at the very least.

> userFriendInfoVO = mainFriendList.get(position);
> 
> see here i get whole object but no matter whichever object i click
> upon, i only get details of user having last position.
> can anyone help me into it??

If you post a bit more of the relevant code, probably...almost certainly,
in fact.  From what you describe, "position" is not getting set, or its
value is being overwritten before you read the results.  If you'd posted
the relevant code, I could tell you for sure.

And fill in the missing info on this package you're stuck onYou
completely left that questio out.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997  < Running FreeBSD 7.0 >
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

 No, I'm not going to explain it.  If you can't figure it
 out, you didn't want to know anyway...  --Larry Wall

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
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: problem parsing the package

2011-12-23 Thread Kumar Bibek
Post your manifest file. It's probably that causing the problem.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.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

Re: [android-developers] Re: problem parsing the package

2011-12-05 Thread Mukesh Srivastav
Rachna,

Please call the unlock method immediate after preview display,that helps.


-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.


On Mon, Dec 5, 2011 at 5:38 PM, rachana govilkar  wrote:

> hello...
> y anybody is not replying on this thread???
> anywys plz help this time.am just stuck up at audio recording
> i just wrote this program given in android guide..
> http://developer.android.com/guide/topics/media/audio-capture.html
> but getting error as prepare() is failed..
> this error is killing me. plzzz help.
>
> On Dec 1, 5:09 pm, rachana govilkar 
> wrote:
> > hey now am capturing video n getting same error..
> > Unable to instantiate activity ComponentInfo{com.privacygram.activity/
> > com.privacygram.activity.VideoCapture}:
> > java.lang.InstantiationException:
> > com.privacygram.activity.VideoCapture
> > plz help me...
> >
> > On Nov 30, 4:41 pm, rachana govilkar 
> > wrote:
> >
> >
> >
> >
> >
> >
> >
> > > hey now i hav a problem working on Create Contact.i usedhttp://
> developer.android.com/guide/topics/providers/content-providers...
> > > this link
> > > but as per given there i could create contact statically
> > > but i need to create dynamically as android built-in create contact
> > > functionality
> > > n also tell me when u save the contact u do save it in Database or
> > > smthing else??
> > > any help is appreciated.
> >
> > > On Nov 29, 5:10 pm, rachana govilkar 
> > > wrote:
> >
> > > > Hey Its Working...
> > > > yaaay!
> > > > i knw it must hv been very simple for u but for me its a start
> > > > 1st android program n exception was comingu can guess how sick i
> > > > was feeling...
> > > > but no more sick now
> > > > i just need to focus more on itthnk u for help
> >
> > > > On Nov 29, 4:08 pm, rachana govilkar 
> > > > wrote:
> >
> > > > > above described was 1 way i tried.
> > > > > it was to develop customized camera feature as given in Android
> guide/
> > > > > camera...
> > > > > i also tried another way of using existing camera feature but am
> > > > > getting NullPointerException
> > > > > can u tel where am going wrong??
> >
> > > > > On Nov 29, 10:13 am, rachana govilkar 
> > > > > wrote:
> >
> > > > > > hey this is my ImageCapture.java..hope u get idea.
> >
> > > > > > package com.privacygram.activity;
> >
> > > > > > import android.content.Context;
> > > > > > import android.graphics.PixelFormat;
> > > > > > import android.hardware.Camera;
> > > > > > import android.hardware.Camera.Parameters;
> > > > > > import android.hardware.Camera.PictureCallback;
> > > > > > import android.hardware.Camera.ShutterCallback;
> > > > > > import android.view.SurfaceHolder;
> > > > > > import android.view.SurfaceView;
> >
> > > > > > public class ImageCapture extends SurfaceView{
> >
> > > > > > SurfaceHolder previewHolder;
> > > > > > Camera camera;
> > > > > > protected PictureCallback raw;
> > > > > > protected ShutterCallback shutter;
> > > > > > protected PictureCallback postview;
> > > > > > protected PictureCallback jpeg;
> >
> > > > > > public ImageCapture(Context context) {
> > > > > > super(context);
> > > > > > // TODO Auto-generated constructor stub
> > > > > > previewHolder = this.getHolder();
> >
> > > > > >
> previewHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
> > > > > >
>  previewHolder.addCallback(surfaceHolderListener);
> > > > > > }
> >
> > > > > > SurfaceHolder.Callback surfaceHolderListener = new
> > > > > > SurfaceHolder.Callback()
> > > > > > {
> > > > > >public void surfaceCreated(SurfaceHolder
> holder)
> > > > > >{
> > > > > >camera=Camera.open();
> > > > > >try {
> > > > > >
>  camera.setPreviewDisplay(previewHolder);
>



> > > > > >}catch (Exception E ){ }
> > > > > >}
> > > > > >public void surfaceDestroyed(SurfaceHolder
> arg0)
> > > > > >{
> > > > > >camera.stopPreview();
> > > > > >camera.release();
> > > > > >}
> > > > > >public void surfaceChanged(SurfaceHolder
> holder, int
> > > > > > format,
> > > > > > int width, int height)
> > > > > >{
> > > > > >Parameters params =
> camera.getParameters();
> > > > > >params.setPreviewSize(width, height);
> > > > > >
>  params.setPictureFormat(PixelFormat.JPEG);
> > > > > >camera.setParameters(params);
> > > > > >camera.startPreview();
> >
> > > > > >camera.takePicture(shutt

Re: [android-developers] Re: problem parsing the package

2011-11-28 Thread Mark Murphy
InstantiationException can mean that the activity class is not public
or lacks a public constructor with the appropriate signature.

On Mon, Nov 28, 2011 at 8:07 AM, Raghav Sood
 wrote:
> There is a problem in your instantiating your ImageCapture class. Post the
> first 30 lines or so, and you may get some help.
> Thanks
>
> On Mon, Nov 28, 2011 at 6:13 PM, rachana govilkar
>  wrote:
>>
>> when i test on emulator it gives me error as Your application has
>> stopped unexpectedly.
>> n LogCat is:-
>>
>> 11-28 18:10:06.265: E/AndroidRuntime(313): FATAL EXCEPTION: main
>> 11-28 18:10:06.265: E/AndroidRuntime(313): java.lang.RuntimeException:
>> Unable to instantiate activity ComponentInfo{com.privacygram.activity/
>> com.privacygram.activity.ImageCapture}:
>> java.lang.InstantiationException:
>> com.privacygram.activity.ImageCapture
>> 11-28 18:10:06.265: E/AndroidRuntime(313):      at
>> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
>> 2585)
>> 11-28 18:10:06.265: E/AndroidRuntime(313):      at
>> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
>> 2679)
>> 11-28 18:10:06.265: E/AndroidRuntime(313):      at
>> android.app.ActivityThread.access$2300(ActivityThread.java:125)
>> 11-28 18:10:06.265: E/AndroidRuntime(313):      at
>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
>> 11-28 18:10:06.265: E/AndroidRuntime(313):      at
>> android.os.Handler.dispatchMessage(Handler.java:99)
>> 11-28 18:10:06.265: E/AndroidRuntime(313):      at
>> android.os.Looper.loop(Looper.java:123)
>> 11-28 18:10:06.265: E/AndroidRuntime(313):      at
>> android.app.ActivityThread.main(ActivityThread.java:4627)
>> 11-28 18:10:06.265: E/AndroidRuntime(313):      at
>> java.lang.reflect.Method.invokeNative(Native Method)
>> 11-28 18:10:06.265: E/AndroidRuntime(313):      at
>> java.lang.reflect.Method.invoke(Method.java:521)
>> 11-28 18:10:06.265: E/AndroidRuntime(313):      at
>> com.android.internal.os.ZygoteInit
>> $MethodAndArgsCaller.run(ZygoteInit.java:868)
>> 11-28 18:10:06.265: E/AndroidRuntime(313):      at
>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
>> 11-28 18:10:06.265: E/AndroidRuntime(313):      at
>> dalvik.system.NativeStart.main(Native Method)
>> 11-28 18:10:06.265: E/AndroidRuntime(313): Caused by:
>> java.lang.InstantiationException:
>> com.privacygram.activity.ImageCapture
>> 11-28 18:10:06.265: E/AndroidRuntime(313):      at
>> java.lang.Class.newInstanceImpl(Native Method)
>> 11-28 18:10:06.265: E/AndroidRuntime(313):      at
>> java.lang.Class.newInstance(Class.java:1429)
>> 11-28 18:10:06.265: E/AndroidRuntime(313):      at
>> android.app.Instrumentation.newActivity(Instrumentation.java:1021)
>> 11-28 18:10:06.265: E/AndroidRuntime(313):      at
>> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
>> 2577)
>> 11-28 18:10:06.265: E/AndroidRuntime(313):      ... 11 more
>>
>>
>> On Nov 28, 4:45 pm, Raghav Sood 
>> wrote:
>> > Try installing it via ADB and post the LogCat.
>> >
>> > Thanks
>> >
>> > On Mon, Nov 28, 2011 at 5:12 PM, rachana govilkar <
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > rachana.govil...@gmail.com> wrote:
>> > > helo
>> > > i developd a small application n started testing on LG 2.2 android
>> > > device.
>> > > but i am getting this error "there is problem parsing the package"
>> > > when installing .apk file.
>> > > i searched this group but i dint get any satisfactory answer.
>> >
>> > > 
>> > > i hope this is not causing erroras 2.2 device has same API
>> > > level...
>> > > please reply soon
>> > > thnk u 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
>> >
>> > --
>> > Raghav Soodhttp://www.androidactivist.org/-
>> > Authorhttp://www.appaholics.in/- Founder
>>
>> --
>> 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
>
>
> --
> Raghav Sood
> http://www.androidactivist.org/ - Author
> http://www.appaholics.in/ - Founder
>
> --
> 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 a

Re: [android-developers] Re: problem parsing the package

2011-11-28 Thread Raghav Sood
There is a problem in your instantiating your ImageCapture class. Post the
first 30 lines or so, and you may get some help.

Thanks

On Mon, Nov 28, 2011 at 6:13 PM, rachana govilkar <
rachana.govil...@gmail.com> wrote:

> when i test on emulator it gives me error as Your application has
> stopped unexpectedly.
> n LogCat is:-
>
> 11-28 18:10:06.265: E/AndroidRuntime(313): FATAL EXCEPTION: main
> 11-28 18:10:06.265: E/AndroidRuntime(313): java.lang.RuntimeException:
> Unable to instantiate activity ComponentInfo{com.privacygram.activity/
> com.privacygram.activity.ImageCapture}:
> java.lang.InstantiationException:
> com.privacygram.activity.ImageCapture
> 11-28 18:10:06.265: E/AndroidRuntime(313):  at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2585)
> 11-28 18:10:06.265: E/AndroidRuntime(313):  at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> 2679)
> 11-28 18:10:06.265: E/AndroidRuntime(313):  at
> android.app.ActivityThread.access$2300(ActivityThread.java:125)
> 11-28 18:10:06.265: E/AndroidRuntime(313):  at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
> 11-28 18:10:06.265: E/AndroidRuntime(313):  at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 11-28 18:10:06.265: E/AndroidRuntime(313):  at
> android.os.Looper.loop(Looper.java:123)
> 11-28 18:10:06.265: E/AndroidRuntime(313):  at
> android.app.ActivityThread.main(ActivityThread.java:4627)
> 11-28 18:10:06.265: E/AndroidRuntime(313):  at
> java.lang.reflect.Method.invokeNative(Native Method)
> 11-28 18:10:06.265: E/AndroidRuntime(313):  at
> java.lang.reflect.Method.invoke(Method.java:521)
> 11-28 18:10:06.265: E/AndroidRuntime(313):  at
> com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:868)
> 11-28 18:10:06.265: E/AndroidRuntime(313):  at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
> 11-28 18:10:06.265: E/AndroidRuntime(313):  at
> dalvik.system.NativeStart.main(Native Method)
> 11-28 18:10:06.265: E/AndroidRuntime(313): Caused by:
> java.lang.InstantiationException:
> com.privacygram.activity.ImageCapture
> 11-28 18:10:06.265: E/AndroidRuntime(313):  at
> java.lang.Class.newInstanceImpl(Native Method)
> 11-28 18:10:06.265: E/AndroidRuntime(313):  at
> java.lang.Class.newInstance(Class.java:1429)
> 11-28 18:10:06.265: E/AndroidRuntime(313):  at
> android.app.Instrumentation.newActivity(Instrumentation.java:1021)
> 11-28 18:10:06.265: E/AndroidRuntime(313):  at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2577)
> 11-28 18:10:06.265: E/AndroidRuntime(313):  ... 11 more
>
>
> On Nov 28, 4:45 pm, Raghav Sood 
> wrote:
> > Try installing it via ADB and post the LogCat.
> >
> > Thanks
> >
> > On Mon, Nov 28, 2011 at 5:12 PM, rachana govilkar <
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > rachana.govil...@gmail.com> wrote:
> > > helo
> > > i developd a small application n started testing on LG 2.2 android
> > > device.
> > > but i am getting this error "there is problem parsing the package"
> > > when installing .apk file.
> > > i searched this group but i dint get any satisfactory answer.
> >
> > > 
> > > i hope this is not causing erroras 2.2 device has same API
> > > level...
> > > please reply soon
> > > thnk u 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
> >
> > --
> > Raghav Soodhttp://www.androidactivist.org/- Authorhttp://
> www.appaholics.in/- Founder
>
> --
> 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
>



-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

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