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 8391235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:12:24+00:00 2026-06-09T19:12:24+00:00

I have an app that uses a a paint flag to set strike-through on

  • 0

I have an app that uses a a paint flag to set strike-through on a TextView. This application works fine on the emulator until I enable GPU Rendering on the Android 4.03 AVD.

http://developer.android.com/tools/devices/emulator.html#acceleration

Once this is enabled, the entire emulator locks up and no longer responds the moment I set the paint flag.

TextView message = (TextView)v.findViewById(R.id.message);
message.setPaintFlags(day.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);

This is inside of a ListView adapter and on load, it calls the getView(…) method and hits the setPaintFlags(…) method 6 times and crashes after the 6th time.

If I comment out the setPaintFlags(…) line, it doesn’t crash. If I install this on the phone, the app crashes once I trigger the strike-through to occur.

I’ve set this on the manifest solves the issue on the emulator, but still crashes on the phone.

<application android:hardwareAccelerated="false">

Does anyone have experience with this crashing on the phone, but not the emulator (unless it’s hardware accelerated).

I’ve dug around and found other similar postings Android emulator crashes; "emulator-arm.exe stopped responding" but in my case, it crashes on the phone too.

Solution Turned out to be a coincidence and was unrelated to the acceleration. Null pointer found via LogCat.

  • 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-09T19:12:26+00:00Added an answer on June 9, 2026 at 7:12 pm

    As per comments above:

    Since the emulator is fine, and it’s the phone device crashing, use USB debugging to get the LogCat output. This will help to narrow down the cause of the crash/error.

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

Sidebar

Related Questions

I have a app that uses Prawn to do some PDF generating, it works
I have a little web app that uses the Facebook like widget. This page
I have an application that uses MKMapView and at some point in the app
I have this App that uses the Webbrowser control to do automated browsing. I
I have a Phonegap application that uses ChildBrowser to Authorize my app to connect
I have an app that uses the ActionBar with tabs in combination with Fragments.
I have an app that uses webView. In the home screen of a website
I have an app that uses a transition file to flip from page to
I have an app that uses the built-in flip animation to switch between the
I have an app that uses EF. To test my stuff I generally wrap

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.