Android :: ClassCastException: Com.android.internal.telephony.PhoneProxy
Apr 8, 2010
I'm programing Instrumentation Tests for SIM ToolKit (STK)
I need to use CommandsInterface which is available only in PhoneBase Interface. Once I have a Phone i'd like to use the following line:
CODE:.......
It compiled successfully, however gives uncaught exception (group=0x4001b188)
View 2 Replies
Oct 16, 2009
Is it possible to use com.android.internal.telephony.* API in application? I would really need to use some classes from there, since there is no other way I can make my app answer incoming call, send dtmf and etc.
View 2 Replies
View Related
Feb 4, 2010
I need to use com.android.internal.telephony package for my development. but i am in a doubt whether i would use android.internal.telephony package or how?
View 3 Replies
View Related
Aug 30, 2010
I try to establisch a HttpsURLConnection with:
CODE:.................
But I get an Exception:
CODE:......................
But I can't find out, why. The same example is everywhere across the web.
View 2 Replies
View Related
May 27, 2010
I'm suffering from this for a week, i was trying to use the famous SeekBarPreference in a dialog - http://android.hlidskialf.com/blog/code/android-seekbar-preference
I copied the class from above link into my project. Then created the xml as brightness.xml:
CODE:............
Finally I try to integrate it as custom dialog:
CODE:...................
But always getting error: "Error inflating class java.lang.reflect.Constructor" at this line "<com.yoomap.anymode.SeekBarPreference" in the xml
Root cause: ClassCastException on SeekBarPreference.
View 3 Replies
View Related
May 2, 2010
I defined a local Service:
CODE:.....
The corresponding interface:
CODE:...
Then i try to bind the service in another activity in another application, where the same interface is available:
CODE:........
And
CODE:.........
But the line
CODE:......
Always throws a
CODE:...........
I can't explain why, I followed the app sample on http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/LocalServiceBinding.html.
View 1 Replies
View Related
Mar 16, 2010
I'm sure there's a simple answer to this, but...Why can't I nest another view type within a View element? In my layout file I try:
CODE:...
And this gives me a ClassCastException. Why?
View 11 Replies
View Related
Jan 16, 2010
I am new to java, eclipse, and android development, so I may be missing something simple although I have checked basic stuff like spelling several times.
Because there is no number picker control (such as that used in the date picker) in the public Android SDK, the conventional wisdom is to "clone and own" the control that exists in the Android source.
In an attempt to do that, I have copied the code for NumberPicker into my project and its dependency, NumberPickerButton. I have also copied the supporting resources.
The problem I am having is that when I try to include the NumberPicker in a layout, the rendered version of the layout within Eclipse does not work.
CODE:...............
Adding that tag causes the Layout view of the XML file to only show the following error.
ClassCastException: com.spencerandbrown.PatientTracker1.NumberPickerButton cannot be cast to com.spencerandbrown.PatientTracker1.NumberPickerButton
I have tried both the fully qualified name and the unqualified name and it makes no difference.
The strange thing is that the control works at run time, it just will not render in Eclipse.
Is there a solution for this issue? Am I just doing something wrong?
If necessary, I can include more code from my project to clarify.
If I reference the internal Android widget, it works fine in the Eclipse layout view, but it is clumsy to interact with that way and it might break in the future.
CODE:............
Here is the stack trace from Eclipse.
CODE:........................
View 2 Replies
View Related
Aug 8, 2010
This is probably related to this question. I want to know if anyone else gets the same error as me and if there is a way to get around this. I did the following: Followed the instructions from this page. From the top, go to File -> Create a new project -> Android Project -> Create project from existing sample. Checked Android 2.2. From the drop-down menu picked SkeletonApp. Clicked finish. From the package explorer, went to SkeletonActivity -> res -> layout -> skeleton_activity.xml. In the tabs at the bottom of the editor area (editor area is the center of the screen) clicked on Layout. Then I got the error "ClassCastException: android.widget.EditText cannot be cast to andoid.text.ViewGroup". The full text of the error message is given below.
java.lang.ClassCastException: android.widget.EditText cannot be cast to android.view.ViewGroup
at android.view.LayoutInflater.rInflate(LayoutInflater.java:619)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
at android.view.LayoutInflater.inflate(LayoutInflater.java:296)
at com.android.layoutlib.bridge.Bridge.computeLayout(Bridge.java:397)......................
View 1 Replies
View Related
Jun 18, 2009
I've been trying to add a linear layout to a listview header. The listview appears fine and is working as expected, but when i try to add a linearlayout to the header i get a java.lang.ClassCastException: android.view.ViewGroup$LayoutParams occuring at the list.addHeaderView (ll); line. I thought it might be something in the complex layout i had so i switched it to just a linearlayout with a colored background and still got the same error. The end result i an trying to get is a list with a header that is all scrollable.
View 3 Replies
View Related
May 23, 2010
I've run into an early problem with developing for android. I've made my own custom View (which works well). In the beginning i just added it to the layout programmatically, but i figured i could try putting it into the XML layout instead (for consistency).
So what i got is this:
main.xml:
CODE:..........
(Theres obviously more, but you get the point)
Now, this is the stacktrace:
CODE:...........
Why cant i cast my custom view? I need it to be that type since it has a few extra methods in it that i want to access. Should i restructure it and have another class handle the logic, and then just having the view being a view? I'd really like this to work though.
View 2 Replies
View Related
Jul 3, 2009
Why do I get java.lang.ClassCastException when I tried to cast back an array of custom object that implements Parcelable?
Here is the custom class:
CODE:..........................
View 2 Replies
View Related
Nov 16, 2010
I have researched extensively and am pretty sure this is not possible. I want to make a call and then inject DTMF when the far end answers. So 2 questions Is it possible ?
If not, how do I work to get it on the list of upcoming features to be provided on Android. I can say that this is possible on BlackBerry and Symbian, so Android is falling behind in this regard.
View 2 Replies
View Related
Mar 11, 2010
I am writing a adapter for a specific app, the problem I met is:
I have only 1 listview in main.xml, and the row style is defined in file_row.xml. If I simply use list.setAdapter(new ArrayAdapter<String>(this, R.layout.file_row, R.id.file_name, items)); where items is a ArrayList<String>, everything works well.
But if I use my custom Adapter, say, list.setAdapter(new MyOwnListAdapter(this, filename)); and in the class of MyOwnListAdapter, the code has been simplified as
CODE:................
But I always met the problem which is:
CODE:.........
I thought the self-defined Adapter class actually has only one line of valid execution, which is super(context, R.layout.file_row, R.id.file_name, filename_list); It's essentially identical to direct calling of list.setAdapter(new ArrayAdapter<String>(this, R.layout.file_row, R.id.file_name, items)); Then why I always got this error if I call my own Adapter?
View 2 Replies
View Related
Feb 11, 2009
I am using the Telephony class to get messages ( Telephony.Sms.Intents.getMessageFromIntent(Intent intent)). But I can't find the class Telephony from its package(android.provider), there is an error named "The import android.provider.Telephony cannot be resolved" when import android.provider.Telephony.Sms.Intents, the sdk version I'm using is android-sdk-windows-1.0_r2, how can I use this with the new implementation of Telephony?
View 2 Replies
View Related
Jan 27, 2010
I am trying to get a phone object so that I can call and conference two numbers from within my application.
I have tried using the static PhoneFactory.makeDefaultPhones((Context)this) but have not had any luck.
CODE:.......
Error - Caused by java.lang.RuntimeException: PhoneFactory.getDefaultPhone must be called from Looper thread
View 3 Replies
View Related
May 29, 2009
I have low expectations that this message will get any response as it seems that Google developers do not like to address issues too close to the Android core and to strategic mobility applications. However, as they say, hope is the last to die.
I am really puzzled by the lack of response to queries about issues with some TelephonyManager functions.
Specifically, there have been a number of requests in the past, including mine, about
getNeighboringCellInfo()
As per the link below, getNeighboringCellInfo() is a documented TelephonyManager function available to application developers.
http://developer.android.com/reference/android/telephony/TelephonyMan...()
Yet, getNeighboringCellInfo() does not work. Any attempt to call it in an application results in application failure.
What is the problem here? If Google does not want application developers to use this function (I cannot fathom why that would be the case), then please remove it from TelephonyManager, and save all of us time and frustration.
It's really puzzling that for such an open platform Android has so many secrets and rules.
View 8 Replies
View Related
Sep 7, 2010
I would like to know what are the main differences between TelephonyManager and PhoneStateListener, because you can do (more or less) the same things with both. For example, you could create an incoming calls register implementing a broadcastreceiver and using TelephonyManger API or extending PhoneStateListener class and registering this new listener throughTelephonyManager . Case 1 - BroadcastReceiver (TelephonyManager)
View 13 Replies
View Related
Nov 2, 2010
There are a number of network types defined in TelephonyManager:
NETWORK_TYPE_GPRS
NETWORK_TYPE_EDGE
NETWORK_TYPE_UMTS
NETWORK_TYPE_CDMA
NETWORK_TYPE_EVDO_0
NETWORK_TYPE_EVDO_A
NETWORK_TYPE_1xRTT
NETWORK_TYPE_HSDPA
NETWORK_TYPE_HSUPA
NETWORK_TYPE_HSPA
Is there any info out there that describes what range of speeds you can expect on each of these? If that isn't available, it would be nice to be able to order them based on speed.
View 1 Replies
View Related
Mar 29, 2010
I was wondering if there is a way to manipulate the emulator to simulate telephony signal strength changes.
I would like to test code that uses TelephonyManager.listen() with LISTEN_SIGNAL_STRENGTHS.
View 2 Replies
View Related
Sep 17, 2009
I am currently working on porting a application written in C in android platform. I need to know that can i invoke/call the getSystemService from the C application using invocation interface by JNI. Meaning using a .java file which will interact with the interace provided by the android.telephony.TelephonyManager.java for using getCallState() and other mehthods.
View 2 Replies
View Related
Apr 10, 2009
Is there a way to look up the user phone number other than TelephonyManager? In my G1, this returns null: // get your phone number TelephonyManager telephonyManager = (TelephonyManager) getSystem Service (Context. TELEPHONY_SERVICE); String tel = telephonyManager.getLine1Number(); Log.i("Telephone Number ==> ", tel+" <=="); Is there any other way of getting user's own phone number? take care, Muthu Ramadoss. http://linkedin.com /in/tellibitz http://androidrocks.googlecode.com - Android Consulting. Emo Philips <http://www.brainyquote.com /quotes/authors/e/emo_philips.html> - "A computer once beat me at chess, but it was no match for me at kick boxing."
View 7 Replies
View Related
Mar 8, 2010
TelephonyManager.getNetworkType() returns one of the constant values.It appears that the constant values have an integer order, by possible bearer link speed.I know using constant values used in the following manner is generally bad,however could one use this to determine a basic cutoff for application functionality and have it work between API levels? (in API-v1 there was nothing above 0x03)if( telephonyManager.getNetworkType() > TelephonyManager.NETWORK_TYPE_EDGE ) return "3G! party on!";else if( telephonyManager.getNetworkType() > TelephonyManager.NETWORK_TYPE_UNKNOWN )}
View 1 Replies
View Related
Nov 9, 2010
I am not getting call in number in off_hook state when it is only coming in dialing state. According to documentation it should provide call in number for off_hook state as well. Is it a bug?
View 2 Replies
View Related
Jun 23, 2010
The class which cause error is given below
CODE:....
xml file:
CODE:......................
View 1 Replies
View Related
Feb 3, 2010
This worked in 1.5 but throw an exception in apk 2.0.
CODE:...............
Any one else experience the same? What should I use to send a SMS to an email address?
View 4 Replies
View Related
Jan 5, 2014
I have a xperia u, which has not external SD card slot..
Data partition is MUCH bigger than what I need (I'm using 500mb of 2gb) and I want to move obb files to data partition to free some space in SD partition..
View 9 Replies
View Related
Sep 7, 2010
My phone has an IP. I would like to know how could I retrieve it? After searching in the web, I found that i can get only the current outside ip.(I want the local-perm ip of my phone)
View 3 Replies
View Related
Aug 17, 2009
I have read several posts about getting to internal.R but i want to make sure i got it. i understand that the SDK does not support it anymore (not even what is in public.xml?) and of course, that i shouldn't use reflection (i got that Dianne, how can i without taking all the relevant themes and putting them in my res folder get to this resource for example: com.android.internal.R.attr.keyboardViewStyle must i recreate the wheel?
View 2 Replies
View Related
Nov 6, 2010
I have an app that pulls album art from the media store. It works fine on my N1 and other devices with external SD cards. However, I need to get it working on devices with internal storage and I don't have such a device to test on. How can I set up the emulator to reproduce such a device? I did a search on the forums and found info on increasing the size of the internal storage but I'm not sure how the file system should be set up. Is this even possible?
View 4 Replies
View Related