Sunday, December 18, 2011

[android-developers] Re: problem parsing the package

Need help in MMS issue.
This is the flow.
I open my application and after i login i get a screen of writing
message.This message can be SMS/MMS but right now i am concerned about
MMS so i write some text and click on "Add Attachment" button.
Then it shows me another screen of adding image/video/audio.Whenever i
select a image/video/audio it must be displayed on 1st
screen where there is ImageView or whatever.
Here i am not able to see that selected thing.
I use XPERIA ARC n it works in your android way of showing me the
attachment.
But in my application complete flow is working correctly except last
part of showing attachment.
so i am not getting what i must do?can u just explain?
thanks.

On Dec 8, 3:03 pm, rachana govilkar <rachana.govil...@gmail.com>
wrote:
> hey thank you so much for help....
> actually i changed my code.....wrote a simple 1 n it is running.....
> but i have not solved video select error....
> just check this thread......i have mentioned it in previous posts.....
> could u help me??
> i wil put my code if you want.....
> but do help me as soon as possible....
> thanks in advance.......
>
> On Dec 5, 5:19 pm, Mukesh Srivastav <mukicha...@gmail.com> wrote:
>
>
>
>
>
>
>
> > 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 <rachana.govil...@gmail.com
>
> > > 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 <rachana.govil...@gmail.com>
> > > 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 <rachana.govil...@gmail.com>
> > > > wrote:
>
> > > > > hey now i hav aproblemworking 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 <rachana.govil...@gmail.com>
> > > > > 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 coming....u can guess how sick i
> > > > > > was feeling...
> > > > > > but no more sick now....
> > > > > > i just need to focus more on it....thnk u for help....
>
> > > > > > On Nov 29, 4:08 pm, rachana govilkar <rachana.govil...@gmail.com>
> > > > > > 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 <rachana.govil...@gmail.com>
> > > > > > > wrote:
>
> > > > > > > > hey this is my ImageCapture.java......hope u get idea.....
>
> > > > > > > >packagecom.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(shutter, raw,
> > > postview, jpeg);
> > > > > > > >                            camera.stopPreview();
> > > > > > > >                            camera.release();
> > > > > > > >                    }
> > > > > > > >                 };
>
> > > > > > > > }
>
> > > > > > > > On Nov 28, 6:23 pm, Mark Murphy <mmur...@commonsware.com> wrote:
>
> > > > > > > > > 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
>
> > > > > > > > > <raghavs...@androidactivist.org> wrote:
> > > > > > > > > > There is aproblemin 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...
>
> read more »

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment