android-contacts

Is it possible to read the call cost history from dialogue raised after ending the prepaid call?

柔情痞子 提交于 2019-12-20 09:37:29
问题 Is there a possibility of handling the data displayed on call cost dialogue received by prepaid user. I want to save all the balance reduction for along with call duration in my sqlite db. 回答1: As we learn from the already famous blog post As a start, look at the PhoneUtils class in the Android source code. [...] Specifically, looking at line 217, an intent with the name “com.android.ussd.IExtendedNetworkService” is being composed. So what you need to do is implement your own service that

How to Check if a contact on android phone book has whatsapp enabled?

守給你的承諾、 提交于 2019-12-20 08:45:40
问题 For a given number from my address book, I need to look-up if the number has whatsapp enabled. (The idea is to choose SMS/WhatsApp for initiating a text intent) Lets say, I have two numbers under a contact, And I need to know which one has whatsapp enabled. The "People" app on the Nexus 4 shows both contact numbers, And also a little below has a CONNECTIONS section, which shows only the WhatsApp possible contact. Is there a way to look up(like how People app does) ? 回答1: If you want to know

How to read dual sim device both sim contact in android

不羁的心 提交于 2019-12-20 06:25:03
问题 To read sim contact we use below URi Uri simUri = Uri.parse("content://icc/adn/"); ContentResolver mContentResolver = this.getContentResolver(); Cursor c = mContentResolver.query(simUri, null, null, null, null); By using this uri i only get my master sim contact not both sim contact, according to my requirement i have to read only sim contact. using above code i only read one sim contact. help me in find out solution that how can i read both sim contact. thanks in advance. 回答1: I also tried

Call in Android application shows add contact dialog

谁说胖子不能爱 提交于 2019-12-20 06:04:44
问题 I'm using this code for calling, in Android application: Intent callIntent = new Intent(Intent.ACTION_CALL); callIntent.setData(Uri.parse("tel:" + call.Number)); startActivity(callIntent); but I obtain a dialog like this: Why no call is make? P.s: I'm using a Tablet (Acer Iconia A501), not a smartphone. 回答1: Try this Make sure : call to : startActivity(new Intent(Intent.ACTION_DIAL, Uri.parse("tel:" +mEditText_number.getText()))); Add permission: <uses-permission android:name="android

how do i get startActivityForResult() to bring up just a list of telephone contacts (like when i click on the “People” icon) using the android sdk?

半世苍凉 提交于 2019-12-20 05:47:15
问题 excuse me if this question is obvious, but I am new to android sdk. What I am trying to do is get a list of contacts that have real telephone numbers to send an sms message. I am deploying directly to my phone and trying to use just the contacts listed on my phone, but I am getting too many weird contacts. I would expect that when I call the startActivityForResult() method it will give me a list of phone contacts. What it seems to do is give me a list of all potential contacts and that seems

How to get All Sim Contacts in Android programmatically?

允我心安 提交于 2019-12-20 02:31:25
问题 How to list sim contacts in Android programmatically? I got the code to get phone contacts here but I need sim contacts too with this. 回答1: Uri simUri = Uri.parse("content://icc/adn"); Cursor cursorSim = this.getContentResolver().query(simUri, null, null,null, null); while (cursorSim.moveToNext()) { listName.add(cursorSim.getString(cursorSim.getColumnIndex("name"))); listContactId.add(cursorSim.getString(cursorSim.getColumnIndex("_id"))); listMobileNo.add(cursorSim.getString(cursorSim

Retrieve System Default Android Contact Picture

有些话、适合烂在心里 提交于 2019-12-20 01:36:17
问题 I know this may sound strange, but I want to retrieve the system default contact picture. You know, that icon that's used when there is no picture for the contact. It differs between different versions of Android, but it's generally a blank face, or a grey android, or whatever. Can I get that image from the system and use it in my app? 回答1: You can find them in the drawable folder of the resources that come with the emulator. \android-sdk\platforms\android-v#\data\res\drawable\ 回答2: I dont

Add number to contact on Android 2.0

痞子三分冷 提交于 2019-12-20 00:44:52
问题 Im trying to add a phone number to an already existing contact on a Droid-phone. Doing it at the same time as I create a contact is trivial, as the backreference I supply simply is 0 when creating a ContentProviderOperation. But trying to find the backreference through querying for a display name like this does not work: Cursor rawContactsReferenceCursor = contentResolver.query(Data.CONTENT_URI, new String[]{Data.RAW_CONTACT_ID}, Data.DISPLAY_NAME+"=\""+displayName+"\"", null, null); While I

Why does my app say I am requesting permission for Contacts?

房东的猫 提交于 2019-12-19 20:36:12
问题 I have a watch face app that says I am requesting permissions for Contacts... but I'm not. I can't figure out why this is... I have in-app billing and I access Google fit data... as well as Google Analytics. Here is a list of the permissions in my manifest: <!-- Normal Permissions --> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"

Created contacts not showing up on HTC Evo

↘锁芯ラ 提交于 2019-12-19 10:48:27
问题 I'm writing a program that imports our contacts into the Contacts db on the phone so they show up in the Contacts app, are available for caller id to draw from, etc. I've got it working the way we want on the emulator and the Motorola Droid. When I go to Menu --> View, I can see our application with a check box next to it, and when it's checked, our contacts show up fine. However, when I try the same thing on the HTC Evo, the contacts don't show up in People, and I don't have our application