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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:41:51+00:00 2026-06-05T00:41:51+00:00

I have developed phonegap android app.I have been running the app in background when

  • 0

I have developed phonegap android app.I have been running the app in background when the button is clicked using android service and show notification and alert.And also i will show the ads(inmobi) using javascript.Both background process and ads is working fine.But suddenly i got error(sometimes) in logcat and my app gets force closed.In the background process i am getting the values from the server using web service

Here is my Logcat error:

java.net.UnknownHostException: Host is unresolved:Mypath
at java.net.Socket.connect(Socket.java:1038)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.
<init>(HttpConnection.java:62)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnectionPool.
get(HttpConnectionPool.java:88)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.
getHTTPConnection(HttpURLConnectionImpl.java:927)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.
connect(HttpURLConnectionImpl.java:909)
at org.ksoap2.transport.ServiceConnectionSE.connect(ServiceConnectionSE.java:75)
at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:136)
at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:90)
at com.app.myactivity.MyService$1.handleMessage(MyService.java:123)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)
DEBUG/AndroidRuntime(2881): Shutting down VM
WARN/dalvikvm(2881): threadid=1: thread exiting with uncaught 
exception(group=0x4001d800)
ERROR/AndroidRuntime(2881): FATAL EXCEPTION: main
ERROR/AndroidRuntime(2881): java.lang.NullPointerException
at com.app.mobilyzer.newly.MyService$1.handleMessage(MyService.java:194)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)

Please Kindly Guide me.Please tell me where is the problem.Whether it is because of the ads or in the background process.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-05T00:41:52+00:00Added an answer on June 5, 2026 at 12:41 am

    I believe that the problem is that sometimes you get a null value on either your code, the webside, or maybe the ads side.

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

Sidebar

Related Questions

I developed an App for Android and iOS using Phonegap. Both Apps are already
I develop an app using PhoneGap. I got a service which is in background
I have a mobile app that I developed using PhoneGap (and html/css/javascript) and there
I have an application developed on iOS & Android using phonegap 1.6.0 & JQM
I am using phonegap and sqlite to develop cross-platform mobile app for android,ios,blackberry.For reference
I am using phonegap to develop my android application.I want to show google chart
I have a simple app developed with jQuery Mobile and implemented in PhoneGap. It
I've developed an android phonegap application. The app make use of native admob ad
I have developed some android application like Phonegap. I want to make a jar
I have developed one simple application in phone-gap-android using eclipse and android SDK. As

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.