This is the Android source code:
/ ** * Provides access to information about telephony services on * Device. Applications can use this class of methods to * identify telephony services and status, as well as access some * types of subscriber information. Applications can also register * with a listener to receive notifications of changes in telephony status. *
* You do not instantiate this class directly; instead, you get a * reference to the instance via * {@link android.content.Context # getSystemService * Context.getSystemService (Context.TELEPHONY_SERVICE)}. *
* Please note that access to some telephony information * is secure. An application cannot access protected * if it does not have the appropriate permissions declared in * its manifest file. In cases where permissions are applied, they are marked in * methods by which you gain access to protected information. * /
public class TelephonyManager { private static final String TAG = "TelephonyManager"; private static Context sContext; private static ITelephonyRegistry sRegistry; 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()); } }
TelephonyManager seems to put a "Hidden constructor called more than once per process"! in the log when your application calls the constructor more than once, as the message indicates. The constructor is called using getSystemService in accordance with the comments on the constructor.
You have several instances:
telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
or something like that in your code? This may result in an error.
EDIT: If this is not your code causing the message, then I think the program works with PID 5382.
Peanut
source share