Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This is from the Android source code:</p> <p>/** * Provides access to information about the telephony services on * the device. Applications can use the methods in this class to * determine telephony services and states, as well as to access some * types of subscriber information. Applications can also register * a listener to receive notification of telephony state changes. * <p> * You do not instantiate this class directly; instead, you retrieve * a reference to an instance through * {@link android.content.Context#getSystemService * Context.getSystemService(Context.TELEPHONY_SERVICE)}. * <p> * Note that access to some telephony information is * permission-protected. Your application cannot access the protected * information unless it has the appropriate permissions declared in * its manifest file. Where permissions apply, they are noted in the * the methods through which you access the protected information. */</p> <pre><code>public class TelephonyManager { private static final String TAG = "TelephonyManager"; private static Context sContext; private static ITelephonyRegistry sRegistry; /** @hide */ public TelephonyManager(Context context) { context = context.getApplicationContext(); if (sContext == null) { sContext = context; sRegistry = ITelephonyRegistry.Stub.asInterface(ServiceManager.getService( "telephony.registry")); } else if (sContext != context) { Log.e(TAG, "Hidden constructor called more than once per process!"); Log.e(TAG, "Original: " + sContext.getPackageName() + ", new: " + context.getPackageName()); } } </code></pre> <p>The TelephonyManager seems to put the "Hidden constructor called more than once per process!" into the Log when your application calls the constructor more than once, as the message suggests. The constructor is called using the getSystemService as per the comments on the constructor.</p> <p>Do you have more than one instance of: </p> <pre><code>telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); </code></pre> <p>or something similar in your code? This could possibly be causing the error.</p> <p>EDIT: If it's not your code causing the message then it's the program running with PID 5382 I think.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload