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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:05:55+00:00 2026-06-07T15:05:55+00:00

I am writing a very simple Android app constituted by an activity and a

  • 0

I am writing a very simple Android app constituted by an activity and a service. I load my service in the activity by doing

@Override
public void onResume()
{
    super.onResume();

    mServiceIntent = new Intent(this, RemoteIntegerService.class);
    ComponentName name = startService(mServiceIntent);
    TextView mainText = (TextView)findViewById(R.id.mainText);
    mainText.setText(name == null ? "(null)" : name.getClassName());
}

When I run the application on my Galaxy Tab or in a virtual device, everything looks fine, and the mainText reads the correct class name.

But when I start the app in Eclipse with adb’s “debug over usb feature”, I have an error in the Intent constructor (in the real device as well as in a virtual one). Here’s the stack trace :

RemoteInteger [Android Application] 
DalvikVM[localhost:8621]    
    Thread [<1> main] (Class load: RemoteIntegerService)    
        DexFile.defineClass(String, ClassLoader, int, ProtectionDomain) line: not available [native method] 
        DexFile.loadClassBinaryName(String, ClassLoader) line: 207  
        PathClassLoader.findClass(String) line: 211 
        PathClassLoader(ClassLoader).loadClass(String, boolean) line: 540   
        PathClassLoader(ClassLoader).loadClass(String) line: 500    
        RemoteIntegerActivity.onResume() line: 28   
        Instrumentation.callActivityOnResume(Activity) line: 1153   
        RemoteIntegerActivity(Activity).performResume() line: 4428  
        ActivityThread.performResumeActivity(IBinder, boolean) line: 2217   
        ActivityThread.handleResumeActivity(IBinder, boolean, boolean) line: 2255   
        ActivityThread.handleLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 1769 
        ActivityThread.access$1500(ActivityThread, ActivityThread$ActivityClientRecord, Intent) line: 122   
        ActivityThread$H.handleMessage(Message) line: 1002  
        ActivityThread$H(Handler).dispatchMessage(Message) line: 99 
        Looper.loop() line: 132 
        ActivityThread.main(String[]) line: 4025    
        Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]  
        Method.invoke(Object, Object...) line: 491  
        ZygoteInit$MethodAndArgsCaller.run() line: 841  
        ZygoteInit.main(String[]) line: 599 
        NativeStart.main(String[]) line: not available [native method]  
    Thread [<8> Binder Thread #2] (Running) 
    Thread [<7> Binder Thread #1] (Running) 

Edit

  • Copied the full stack trace

  • MyService -> RemoteIntegerService (real name, to be coherent with stack trace)

Edit 2 – Sub-question

I can’t find any information about the error. The program just stops, I see the stack trace, but nothing else. On Visual Studio I have a popup describing the Exception that occured. Is there anything like that in Eclipse ?

  • 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-07T15:05:57+00:00Added an answer on June 7, 2026 at 3:05 pm

    As Julien pointed out the debugger may stop with the message:

    defineClass(String, ClassLoader, int, ProtectionDomain) line: not available [native method]
    

    because a breakpoint has been set on a class. Removing the breakpoint solve this problem.

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

Sidebar

Related Questions

I'm writing a very simple web service, written in Python and run as CGI
Writing a test app to emulate PIO lines, I have a very simple Python/Tk
I have a very simple question about menu control in Android. I'm writing a
I'm writing a very simple CRUD app that takes user stories and stores them
I'm writing a very simple flash app (AS 2) to sign users up to
I was writing very simple application in Android with screen rotation. I woud like
I am writing a simple Android app and have a database that will send
I'm writing a very simple Android application that showing various shapes on the main
I'm writing very simple app. It works OK, but when I hit a back
I am writing a very simple HTML code which is listed below. Written in

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.