Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4577346
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T20:20:00+00:00 2026-05-21T20:20:00+00:00

Hi I have created one gallery..I wish to create folder in my gallery. so,

  • 0

Hi I have created one gallery..I wish to create folder in my gallery. so, I am using file method but now application crash…my emulator display. The application gallery(process gallery.gallery)has stopped unexpectedly. please try again later..how to solve these error…
logcat error:

05-05 12:31:09.029: INFO/System.out(333): /mnt/sdcard/myImages
05-05 12:31:09.039: DEBUG/AndroidRuntime(333): Shutting down VM
05-05 12:31:09.039: WARN/dalvikvm(333): threadid=1: thread exiting with uncaught 
exception (group=0x4001d800)
05-05 12:31:09.079: ERROR/AndroidRuntime(333): FATAL EXCEPTION: main
05-05 12:31:09.079: ERROR/AndroidRuntime(333): java.lang.ClassCastException:   
android.widget.Gallery$LayoutParams
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
android.widget.GridView.onMeasure(GridView.java:934)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
android.view.View.measure(View.java:8171)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3132)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1012)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
android.widget.LinearLayout.measureVertical(LinearLayout.java:381)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
android.widget.LinearLayout.onMeasure(LinearLayout.java:304)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
android.view.View.measure(View.java:8171)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3132)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
android.view.View.measure(View.java:8171)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
android.widget.LinearLayout.measureVertical(LinearLayout.java:526)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
android.widget.LinearLayout.onMeasure(LinearLayout.java:304)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
android.view.View.measure(View.java:8171)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3132)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at   
android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at   
android.view.View.measure(View.java:8171)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at   
android.view.ViewRoot.performTraversals(ViewRoot.java:801)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
android.view.ViewRoot.handleMessage(ViewRoot.java:1727)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
android.os.Handler.dispatchMessage(Handler.java:99)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
android.os.Looper.loop(Looper.java:123)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
android.app.ActivityThread.main(ActivityThread.java:4627)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
java.lang.reflect.Method.invokeNative(Native Method)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
java.lang.reflect.Method.invoke(Method.java:521)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
05-05 12:31:09.079: ERROR/AndroidRuntime(333):     at 
dalvik.system.NativeStart.main(Native Method)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T20:20:01+00:00Added an answer on May 21, 2026 at 8:20 pm

    You are doing

    imageView.setLayoutParams(new Gallery.LayoutParams(85, 85));
    

    But the image view takes ViewGroup.LayoutParams as argument here. See the Javadoc for ImageView.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I have created one gallery project. but I wish to created folders view
I have created one table using the below command: create table Table1( Id int
I'm trying to create a simple, custom, gallery. I have two lists, one with
I have created one service in my grails application. in that service 25 methods
I have created one library project in iphone and my images folder is present
i have created one image but problem is that when i save image from
I have created one multiplication of complex function using prototype in java-script function ComplexNumber(real,imaginary)
I have created a wedsite using MVC 2 and C#. one of the pages
I have created a rather simple photo gallery that I wish to apply PayPal
I have created a custom post type with an image gallery upload. Now I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.