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

  • Home
  • SEARCH
  • 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 8085221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:02:49+00:00 2026-06-05T18:02:49+00:00

I have a problem. I have two refresh button in differents activities that It

  • 0

I have a problem. I have two refresh button in differents activities that It work but when I click the third time, I have a error. Is it necessary put a cursor for control it?

code for refresh:

refrescar.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View arg0)              {
Intent anterior = getIntent();
anterior.setFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
View vista = getLocalActivityManager().startActivity("registratsi", anterior).getDecorView();
setContentView(vista);
  }
});

06-13 07:22:59.904: E/src(315):

06-13 07:23:01.384: D/dalvikvm(315): GC_EXTERNAL_ALLOC freed 5105
objects / 356600 bytes in 60ms 06-13 07:23:02.315: E/Bitmap(315):
returned 06-13 07:23:02.334: E/src(315):

06-13 07:23:02.694: E/Bitmap(315): returned 06-13 07:23:02.704:
E/src(315):

06-13 07:23:03.084: E/Bitmap(315): returned 06-13 07:23:03.095:
E/src(315):

06-13 07:23:03.424: E/dalvikvm-heap(315): 531392-byte external
allocation too large for this process. 06-13 07:23:03.424:
E/GraphicsJNI(315): VM won’t let us allocate 531392 bytes 06-13
07:23:03.424: D/skia(315): — decoder->decode returned false 06-13
07:23:03.424: D/AndroidRuntime(315): Shutting down VM 06-13
07:23:03.424: W/dalvikvm(315): threadid=1: thread exiting with
uncaught exception (group=0x4001d800) 06-13 07:23:03.464:
E/AndroidRuntime(315): FATAL EXCEPTION: main 06-13 07:23:03.464:
E/AndroidRuntime(315): java.lang.OutOfMemoryError: bitmap size exceeds
VM budget 06-13 07:23:03.464: E/AndroidRuntime(315): at
android.graphics.BitmapFactory.nativeDecodeStream(Native Method) 06-13
07:23:03.464: E/AndroidRuntime(315): at
android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:459)
06-13 07:23:03.464: E/AndroidRuntime(315): at
android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:515)
06-13 07:23:03.464: E/AndroidRuntime(315): at
com.nimbosolutions.projecte1.Registrat.getBitmapFromURL(Registrat.java:227)
06-13 07:23:03.464: E/AndroidRuntime(315): at
com.nimbosolutions.projecte1.Registrat.onCreate(Registrat.java:96)
06-13 07:23:03.464: E/AndroidRuntime(315): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
06-13 07:23:03.464: E/AndroidRuntime(315): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
06-13 07:23:03.464: E/AndroidRuntime(315): at
android.app.ActivityThread.startActivityNow(ActivityThread.java:2503)
06-13 07:23:03.464: E/AndroidRuntime(315): at
android.app.LocalActivityManager.moveToState(LocalActivityManager.java:127)
06-13 07:23:03.464: E/AndroidRuntime(315): at
android.app.LocalActivityManager.startActivity(LocalActivityManager.java:339)
06-13 07:23:03.464: E/AndroidRuntime(315): at
com.nimbosolutions.projecte1.Registrat$2.onClick(Registrat.java:166)
06-13 07:23:03.464: E/AndroidRuntime(315): at
android.view.View.performClick(View.java:2408) 06-13 07:23:03.464:
E/AndroidRuntime(315): at
android.view.View$PerformClick.run(View.java:8816) 06-13 07:23:03.464:
E/AndroidRuntime(315): at
android.os.Handler.handleCallback(Handler.java:587) 06-13
07:23:03.464: E/AndroidRuntime(315): at
android.os.Handler.dispatchMessage(Handler.java:92) 06-13
07:23:03.464: E/AndroidRuntime(315): at
android.os.Looper.loop(Looper.java:123) 06-13 07:23:03.464:
E/AndroidRuntime(315): at
android.app.ActivityThread.main(ActivityThread.java:4627) 06-13
07:23:03.464: E/AndroidRuntime(315): at
java.lang.reflect.Method.invokeNative(Native Method) 06-13
07:23:03.464: E/AndroidRuntime(315): at
java.lang.reflect.Method.invoke(Method.java:521) 06-13 07:23:03.464:
E/AndroidRuntime(315): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
06-13 07:23:03.464: E/AndroidRuntime(315): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 06-13
07:23:03.464: E/AndroidRuntime(315): at
dalvik.system.NativeStart.main(Native Method)

other botton:

    btnReload.setOnClickListener(new OnClickListener()          {           @Override           public void onClick(View arg0)              { //                >Intent anterior = getIntent();
            Intent anterior = new Intent (webPushActivity.this, webPushActivity.class);
             View vista = getLocalActivityManager().startActivity("social",
                     anterior)
                        .getDecorView(); 
                   setContentView(vista);           }       });

other error :

06-13 09:50:13.493: E/AndroidRuntime(1274): FATAL EXCEPTION: main
06-13 09:50:13.493: E/AndroidRuntime(1274):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.nimbosolutions.projecte1/com.nimbosolutions.projecte1.webPushActivity}:
java.lang.NullPointerException 06-13 09:50:13.493:
E/AndroidRuntime(1274): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
06-13 09:50:13.493: E/AndroidRuntime(1274): at
android.app.ActivityThread.startActivityNow(ActivityThread.java:2503)
06-13 09:50:13.493: E/AndroidRuntime(1274): at
android.app.LocalActivityManager.moveToState(LocalActivityManager.java:127)
06-13 09:50:13.493: E/AndroidRuntime(1274): at
android.app.LocalActivityManager.startActivity(LocalActivityManager.java:339)
06-13 09:50:13.493: E/AndroidRuntime(1274): at
com.nimbosolutions.projecte1.webPushActivity$3.onClick(webPushActivity.java:177)
06-13 09:50:13.493: E/AndroidRuntime(1274): at
android.view.View.performClick(View.java:2408) 06-13 09:50:13.493:
E/AndroidRuntime(1274): at
android.view.View$PerformClick.run(View.java:8816) 06-13 09:50:13.493:
E/AndroidRuntime(1274): at
android.os.Handler.handleCallback(Handler.java:587) 06-13
09:50:13.493: E/AndroidRuntime(1274): at
android.os.Handler.dispatchMessage(Handler.java:92) 06-13
09:50:13.493: E/AndroidRuntime(1274): at
android.os.Looper.loop(Looper.java:123) 06-13 09:50:13.493:
E/AndroidRuntime(1274): at
android.app.ActivityThread.main(ActivityThread.java:4627) 06-13
09:50:13.493: E/AndroidRuntime(1274): at
java.lang.reflect.Method.invokeNative(Native Method) 06-13
09:50:13.493: E/AndroidRuntime(1274): at
java.lang.reflect.Method.invoke(Method.java:521) 06-13 09:50:13.493:
E/AndroidRuntime(1274): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
06-13 09:50:13.493: E/AndroidRuntime(1274): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 06-13
09:50:13.493: E/AndroidRuntime(1274): at
dalvik.system.NativeStart.main(Native Method) 06-13 09:50:13.493:
E/AndroidRuntime(1274): Caused by: java.lang.NullPointerException
06-13 09:50:13.493: E/AndroidRuntime(1274): at
com.nimbosolutions.projecte1.webPushActivity.onCreate(webPushActivity.java:71)
06-13 09:50:13.493: E/AndroidRuntime(1274): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
06-13 09:50:13.493: E/AndroidRuntime(1274): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
06-13 09:50:13.493: E/AndroidRuntime(1274): … 15 more

Thanks in advance!

  • 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-06-05T18:02:50+00:00Added an answer on June 5, 2026 at 6:02 pm

    You are creating a bitmap, and the following line says what’s wrong:

    java.lang.OutOfMemoryError: bitmap size exceeds VM budget 06-13 07:23:03.464: 
    

    Maybe you are creating too many bitmaps. Or your bitmaps are too large. In older versions of Android, there was a bug in the bitmapFactory throwing these memory errors even when you created the second bitmap, so you had to recycle all bitmaps. Newer versions of Android don’t seem to have that issues, or maybe that’s because there’s more memory now.

    Try creating only one bitmap, and recycle it after use. If you use more than one bitmap, make sure you downsize them to the size you need. That should do it.

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

Sidebar

Related Questions

I have a php file that almost work properly. But then it wouldn't refresh
I have one problem using ActivityGroup . I have two activities inside an ActivityGroup
I have a problem with two separate transactions that are flushed to the database
I Have two problem in this Case : I want to pass a JSON
I have a problem with two Textviews on the same height in a RelativeLayout
I have had this problem w/ two seperate WYSWYG editors in my rails application
I have an strange problem using two borders. I use them to display video
Hello I have problem to put together animations of two separate objects to second
I have a problem with IE causing two errors: 1. Object doesn't support this
I have a problem in association between two classes, so i have a class

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.