Android :: How To Use Com.android.internal.telephony
Feb 4, 2010I 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 RepliesI 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 RepliesI'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)
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 RelatedI 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.
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 RelatedI 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
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.
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 RelatedThere 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.
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.
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 RelatedIs 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 RelatedTelephonyManager.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 RelatedI 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 RelatedThis 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?
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..
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 RelatedI 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 RelatedI 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 RelatedDoes anyone know how to set internal storage in the AVD to something other than the default 92M? I have tried setting hw.ramSize in the AVD's .config file, but no change and also tried setting it when creating a AVD with the "android create" command. Same net result. I'm on Windows XP.
View 3 Replies View RelatedWhy do I only Have about 25mb of storage I see others with much more on their Droid and they have 60mb or more. What can I do to add mb?
View 1 Replies View Related1) Our Android app will store data in a built-in SQLite DB. I see the DB can throw android.database.sqlite.SQLiteFullException, but there's no exact info in API what is the limit. Could anyone tell what are the size limits for a DB in order not to get into the SQLiteFullException? I assume DB will store data in device's internal storage (versus SDCard). Am I right? Given SQLite DB is just a file, probably the DB size is limited with free internal storage space. Again - Am I right? If yes, then what is the internal storage size on Android? How to detect it? Does it vary on a device model basis or OS version basis? 2) We'll also need to save app settings. I think SharedPreferences will fit nicely. However the question is - are SharedPreferences saved to the internal storage too? If yes, then is it the same storage where the DB stores its file?
View 3 Replies View RelatedHow can we find out when we click an internal link in WebvIew?
View 12 Replies View RelatedI am very much interested and also needed to use an internal class which is not shipped with android sdk.the class is com.android.internal.telephony.Phone. Please if u guys have any idea about how ti use internal class then please let me know.
View 3 Replies View RelatedIs there any way of accessing the internal SD card on Android devices that have internal flash, internal SD and external SD cards?
View 1 Replies View RelatedI run on a desire 2.2 froyo. I have enabled apps to sd, and moved all the apps that can be moved?(dunno if i can move all the apps?)well, the problem is, my internal memory gets filled up pretty fast. So my question is:"How to move all the "crap" over to the sd-card?"
View 38 Replies View RelatedI am trying to read a csv file from assets/file.csv, but the log keeps spitting out that it doesn't exist. Is my path correct for internal file storage? This is the class file:
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.StringTokenizer;
public class ReadList {
public String[][] mainMenuList() throws IOException {
String [][] arrayList = new String [24][24];
File file = new File("/data/data/com.xxx.view/file.csv");.....................
As the database in my app grows, it is going to require more and more of the internal phone space. There isn't any sensitive/private data in the DB, so I'm interested in moving it to the SD card.
I'm using SQLiteOpenHelper to assist with the database work. It's my understanding that you can't use this for DB-access on the SD card as you can't define the DB path. However, there are some (very poor) examples on the Internet that suggest you can override this limitation. However I've never gotten one of those code samples to compile.
Is it possible? And if so--HOW! Please note that Froyo's "apps on SD card" feature won't work as it doesn't move internal files.
However after getting a bunch of apps from the android market i am getting a warning saying my internal memory card is getting full.when I check under settings, i still have about 20mb left. At what size do i start getting this warning? Its it possible to save apps onto the sd card instead of the internal memory? Also is there a size limit for the number of text messages, i starting getting warning messages for those as well.
View 1 Replies View RelatedOn the first run of my app, I am downloading a pretty big file to /sdcard/
I already know this can fail if the internal SD card of the user's phone is full or not mounted (e.g. if the phone is connected to a PC as a mass storage device, or has not been properly disconnected from a PC).
But are there any android devices with NO INTERNAL SD CARD ? (on which my app would definitely be unusable)