android-contentprovider

Custom ContactsDirectoryProvider is not called for some operations

无人久伴 提交于 2021-02-07 05:18:07
问题 I've implemented custom ContactsDirectoryProvider which works fine when Contacts or Dialer applications are searching for contacts using URIs of the form content://com.android.contacts/data/phones/filter However when InCallUI or CallLog are trying to retrieve contact info with URis content:/contacts/phone_lookup the query method of my provider is not called. Any advice please.... P.S. I did not implement separate sync provider maybe this is the problem? 回答1: A workaround that we are using is

Custom ContactsDirectoryProvider is not called for some operations

南楼画角 提交于 2021-02-07 05:11:40
问题 I've implemented custom ContactsDirectoryProvider which works fine when Contacts or Dialer applications are searching for contacts using URIs of the form content://com.android.contacts/data/phones/filter However when InCallUI or CallLog are trying to retrieve contact info with URis content:/contacts/phone_lookup the query method of my provider is not called. Any advice please.... P.S. I did not implement separate sync provider maybe this is the problem? 回答1: A workaround that we are using is

Custom ContactsDirectoryProvider is not called for some operations

风流意气都作罢 提交于 2021-02-07 05:11:19
问题 I've implemented custom ContactsDirectoryProvider which works fine when Contacts or Dialer applications are searching for contacts using URIs of the form content://com.android.contacts/data/phones/filter However when InCallUI or CallLog are trying to retrieve contact info with URis content:/contacts/phone_lookup the query method of my provider is not called. Any advice please.... P.S. I did not implement separate sync provider maybe this is the problem? 回答1: A workaround that we are using is

Edit/Delete Google Calendar Events and get event Id

↘锁芯ラ 提交于 2021-02-07 02:53:46
问题 I am trying to edit and delete events in Google calendar using Calendar Provider. I have already Created event using Calendar Provider . Here is my code to create an event : Calendar beginTime = Calendar.getInstance(); beginTime.set(2014, 5, 19, 7, 30); Calendar endTime = Calendar.getInstance(); endTime.set(2014, 5, 19, 8, 30); Intent intent = new Intent(Intent.ACTION_INSERT) .setData(Events.CONTENT_URI) .putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, beginTime.getTimeInMillis()) .putExtra

ClassCastException: android.app.Application

扶醉桌前 提交于 2021-01-27 10:29:36
问题 The class which causes error is given below: package com.extrasmart; import android.app.Activity; import android.os.Bundle; import android.view.View; //import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.BaseAdapter; import android.widget.GridView; import android.widget.ImageView; import android.widget.AdapterView.OnItemSelectedListener; public class ActivityImgGrid extends Activity { ExtraSmartApplication application =

ClassCastException: android.app.Application

有些话、适合烂在心里 提交于 2021-01-27 10:28:25
问题 The class which causes error is given below: package com.extrasmart; import android.app.Activity; import android.os.Bundle; import android.view.View; //import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.BaseAdapter; import android.widget.GridView; import android.widget.ImageView; import android.widget.AdapterView.OnItemSelectedListener; public class ActivityImgGrid extends Activity { ExtraSmartApplication application =

ClassCastException: android.app.Application

橙三吉。 提交于 2021-01-27 10:27:26
问题 The class which causes error is given below: package com.extrasmart; import android.app.Activity; import android.os.Bundle; import android.view.View; //import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.BaseAdapter; import android.widget.GridView; import android.widget.ImageView; import android.widget.AdapterView.OnItemSelectedListener; public class ActivityImgGrid extends Activity { ExtraSmartApplication application =

How to access 3rd party TvProvider on rooted device?

你说的曾经没有我的故事 提交于 2021-01-07 01:29:15
问题 My question is a follow up to this question. Let's assume I have an Android Tv stick, I also am the vendor. There are 3rd party apps like Netflix, Prime, etc. I want to access the channels provided via TvProvider or ContentResolver . As pointed out in one comment: apps vendors signs with the same key as an AOSP itself placed them in a special folder - only vendors of devices can do it or you, but only on rooted devices How are my possibilities for the options above? 回答1: Using one of the

Android SearchRecentSuggestionsProvider query limit

 ̄綄美尐妖づ 提交于 2021-01-02 07:16:19
问题 I'm working with search suggestion framework and here is the case. I get some query string and make query from content resolver, but problem is that I can't limit the results. Found several solutions but they dont work for me. My content provider is extending SearchRecentSuggestionsProvider and declared in manifest, here query uri Uri URI = Uri.parse("content://" + AUTHORITY + "/search_suggest_query"); sol 1: adding query parameter to uri SearchSuggestionProvider.URI.buildUpon()

Issue when opening a DOCX file through a third party app using IOCipher and ContentProvider

我的梦境 提交于 2020-12-29 07:56:24
问题 I'm building a secure android application that runs with IOCipher and SQLCipher. My app is storing PDF, DOC, DOCX, XLS, XLSX files that are intended to be openned by a third party application. Currently I can open all these type of files but DOCX . When I open a docx file that is stored in IOCipher using this method: File file = new File(path); Uri contentUri = Uri.parse(VFSContentProvider.FILES_URI + file.getName()); Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent