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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:52:45+00:00 2026-05-27T18:52:45+00:00

I have an application which is working properly in emulator with platform 1.6.But when

  • 0

I have an application which is working properly in emulator with platform 1.6.But when I run the same on another avd with platform 3.0. It is showing following exception.

12-19 10:24:26.372: E/AndroidRuntime(522): FATAL EXCEPTION: main
12-19 10:24:26.372: E/AndroidRuntime(522): java.lang.NullPointerException
12-19 10:24:26.372: E/AndroidRuntime(522):  at com.example.app.DirectionsRouteFinder.doProcess(DirectionsRouteFinder.java:189)
12-19 10:24:26.372: E/AndroidRuntime(522):  at com.example.util.UrlRun.onPostExecute(UrlRun.java:49)
12-19 10:24:26.372: E/AndroidRuntime(522):  at com.example.util.UrlRun.onPostExecute(UrlRun.java:1)
12-19 10:24:26.372: E/AndroidRuntime(522):  at android.os.AsyncTask.finish(AsyncTask.java:590)
12-19 10:24:26.372: E/AndroidRuntime(522):  at android.os.AsyncTask.access$600(AsyncTask.java:149)
12-19 10:24:26.372: E/AndroidRuntime(522):  at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:603)
12-19 10:24:26.372: E/AndroidRuntime(522):  at android.os.Handler.dispatchMessage(Handler.java:99)
12-19 10:24:26.372: E/AndroidRuntime(522):  at android.os.Looper.loop(Looper.java:126)
12-19 10:24:26.372: E/AndroidRuntime(522):  at android.app.ActivityThread.main(ActivityThread.java:3997)
12-19 10:24:26.372: E/AndroidRuntime(522):  at java.lang.reflect.Method.invokeNative(Native Method)
12-19 10:24:26.372: E/AndroidRuntime(522):  at java.lang.reflect.Method.invoke(Method.java:491)
12-19 10:24:26.372: E/AndroidRuntime(522):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
12-19 10:24:26.372: E/AndroidRuntime(522):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
12-19 10:24:26.372: E/AndroidRuntime(522):  at dalvik.system.NativeStart.main(Native Method)

This the line of code(Bold) that showing nullPointer Exception .I know that UI should not be changed in doInBackground process of AsyncTask.I am doing those changes in onPostExecute of AsyncTask.And my 3.0 Emulator is very slow.Is this can be a problem??

for (RouteVehicle item : Constants.getRouteFinder()) {


                    String alert=item.getAlert();
                    if(!alert.equals("null")){
                    if(alert.equals("max_speed")){
                        maxspeed++;
                        overspeedText.setTextColor(Color.RED);
                        overlayitem.setMarker(orange);
                            }
                    else if(alert.equals("stoppage")){
                        stopage++;
                        **stoppageText.setTextColor(Color.RED)**;
                        overlayitem.setMarker(red);
                    }
                    else if(alert.equals("geofence")){
                        geofence++;
                        geoText.setTextColor(Color.RED);
                             overlayitem.setMarker(red);
                    }
                    else if(alert.equals("tank_empty")){
                        tankEmpty++;
                        tankText.setTextColor(Color.RED);
                        overlayitem.setMarker(red);
                    }
                    else{
                        sos++;
                        sosText.setTextColor(Color.RED);
                        overlayitem.setMarker(red);
                    }}

                }

Please help me!!

  • 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-27T18:52:45+00:00Added an answer on May 27, 2026 at 6:52 pm

    check your layout files. you probably referenced an element (see tankText, overlayItem, etc.) that was not in your xhdpi layout.

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

Sidebar

Related Questions

I have a calculator application in java swing, which is working properly with mouse
I have used seekToTime in my application and its working properly. But I want
I have one web application which I have been working for some time.I am
I have Developed an Stand alone application (.jar) which is working on Linux environment,
I have developed a simple location aware iPhone application which is functionally working very
I have been working on a facebook application which will be using Graph API
I have been working on an application which allows the user to make a
I have been working with iPhone application in which i am using sqlite database.
I'm working on an application for iOS which will have the user fill out
I'm working on an application so i have write an dll which contain a

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.