powered by simpleCommunicator - 2.0.40     © 2025 Programmizd 02
Форумы / Android [игнор отключен] [закрыт для гостей] / ассоциировать файл со своим приложением
10 сообщений из 10, страница 1 из 1
ассоциировать файл со своим приложением
    #39206078
nikomp
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Добавил к своему приложение такой intent-filter

Код: xml
1.
2.
3.
4.
5.
6.
7.
8.
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:scheme="file" />
                <data android:host="*" />
                <data android:pathPattern=".*\\.fb2" />
                <data android:mimeType="*/*"/>
            </intent-filter>



при попытке открыть файл с расширение fb2 получаю сообщение "Невозможно открыть"
Если у файла сменить расширение с fb2 на xml, а в манифесте сменить ".*\\.fb2" на ".*\\.xml" файл с расширением xml открывается.
Как сделать так чтоб приложение работало с файлами fb2 без переименования?
...
Рейтинг: 0 / 0
ассоциировать файл со своим приложением
    #39206099
Фотография Джибс
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
а зачем переименовывать ?
...
Рейтинг: 0 / 0
ассоциировать файл со своим приложением
    #39206106
nikomp
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Джибс,
Если не сменить расширение получаю ошибку "Невозможно открыть"
...
Рейтинг: 0 / 0
ассоциировать файл со своим приложением
    #39206126
Фотография Джибс
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
nikompДжибс,
Если не сменить расширение получаю ошибку "Невозможно открыть"

кем получаешь ошибку ?
...
Рейтинг: 0 / 0
ассоциировать файл со своим приложением
    #39206143
nikomp
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Джибс,
в стандартном файловом менеджере, через который открываю файл
...
Рейтинг: 0 / 0
ассоциировать файл со своим приложением
    #39206168
Фотография wadman
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Манифест от читалки fbreader
Код: xml
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
107.
108.
109.
110.
111.
112.
113.
114.
115.
116.
117.
118.
119.
120.
121.
122.
123.
124.
125.
126.
127.
128.
129.
130.
131.
132.
133.
134.
135.
136.
137.
138.
139.
140.
141.
142.
143.
144.
145.
146.
147.
148.
149.
150.
151.
152.
153.
154.
155.
156.
157.
158.
159.
160.
161.
162.
163.
164.
165.
166.
167.
168.
169.
170.
171.
172.
173.
174.
175.
176.
177.
178.
179.
180.
181.
182.
183.
184.
185.
186.
187.
188.
189.
190.
191.
192.
193.
194.
195.
196.
197.
198.
199.
200.
201.
202.
203.
204.
205.
206.
207.
208.
209.
210.
211.
212.
213.
214.
215.
216.
217.
218.
219.
220.
221.
222.
223.
224.
225.
226.
227.
228.
229.
230.
231.
232.
233.
234.
235.
236.
237.
238.
239.
240.
241.
242.
243.
244.
245.
246.
247.
248.
249.
250.
251.
252.
253.
254.
255.
256.
257.
258.
259.
260.
261.
262.
263.
264.
265.
266.
267.
268.
269.
270.
271.
272.
273.
274.
275.
276.
277.
278.
279.
280.
281.
282.
283.
284.
285.
286.
287.
288.
289.
290.
291.
292.
293.
294.
295.
296.
297.
298.
299.
300.
301.
302.
303.
304.
305.
306.
307.
308.
309.
310.
311.
312.
313.
314.
315.
316.
317.
318.
319.
320.
321.
322.
323.
324.
325.
326.
327.
328.
329.
330.
331.
332.
333.
334.
335.
336.
337.
338.
339.
340.
341.
342.
343.
344.
345.
346.
347.
348.
349.
350.
351.
352.
353.
354.
355.
356.
357.
358.
359.
360.
361.
362.
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto" package="org.geometerplus.zlibrary.ui.android" platformBuildVersionCode="21" platformBuildVersionName="5.0.1-1624448">
    <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:xlargeScreens="true"/>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.WAKE_LOCK"/>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="com.yotadevices.framework.permission.ACCESS_BACKSCREEN"/>
    <application android:icon="@drawable/fbreader" android:label="@string/app_name" android:logo="@drawable/fbreader_logo" android:name="org.geometerplus.android.fbreader.FBReaderApplication" android:supportsRtl="true">
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="org.geometerplus.android.fbreader.error.BookReadingErrorActivity" android:process=":error" android:theme="@style/FBReader.Dialog">
            <intent-filter>
                <action android:name="android.fbreader.action.ERROR"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data android:scheme="BookReadingException"/>
            </intent-filter>
        </activity>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:exported="false" android:label="FBReader crash" android:name=".error.BugReportActivity" android:process=":crash" android:theme="@style/FBReader.Activity"/>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:exported="false" android:name="org.geometerplus.android.fbreader.crash.FixBooksDirectoryActivity" android:process=":crash" android:theme="@style/FBReader.Dialog">
            <intent-filter>
                <action android:name="android.fbreader.action.CRASH"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data android:scheme="CachedCharStorageException"/>
            </intent-filter>
        </activity>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:exported="false" android:name="org.geometerplus.android.fbreader.crash.MissingNativeLibraryActivity" android:process=":crash" android:theme="@style/FBReader.Dialog">
            <intent-filter>
                <action android:name="android.fbreader.action.CRASH"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data android:scheme="ExceptionInInitializerError"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.fbreader.action.CRASH"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data android:scheme="UnsatisfiedLinkError"/>
            </intent-filter>
        </activity>
        <service android:launchMode="singleTask" android:name="org.geometerplus.android.fbreader.api.ApiService">
            <intent-filter>
                <action android:name="android.fbreader.action.API"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
        </service>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:icon="@drawable/fbreader" android:label="@string/app_name" android:launchMode="singleTask" android:name="org.geometerplus.android.fbreader.FBReader" android:theme="@style/FBReader.Activity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
                <category android:name="android.intent.category.MULTIWINDOW_LAUNCHER"/>
                <category android:name="android.intent.category.PENWINDOW_LAUNCHER"/>
                <category android:name="com.samsung.android.intent.category.PENWINDOW_LAUNCHER"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.fbreader.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.fbreader.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data android:scheme="file"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data android:scheme="fbreader-action"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.fbreader.action.PLUGIN"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data android:host="" android:scheme="file"/>
                <data android:pathPattern=".*\\.epub"/>
                <data android:pathPattern=".*\\.oeb"/>
                <data android:pathPattern=".*\\.fb2"/>
                <data android:pathPattern=".*\\.fb2\\.zip"/>
                <data android:pathPattern=".*\\.mobi"/>
                <data android:pathPattern=".*\\.prc"/>
                <data android:pathPattern=".*\\.txt"/>
                <data android:pathPattern=".*\\.rtf"/>
                <data android:pathPattern=".*\\.pdf"/>
                <data android:pathPattern=".*\\.djvu"/>
                <data android:pathPattern=".*\\.cbr"/>
                <data android:pathPattern=".*\\.cbz"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data android:host="" android:mimeType="text/plain" android:scheme="file"/>
                <data android:pathPattern=".*\\.epub"/>
                <data android:pathPattern=".*\\.oeb"/>
                <data android:pathPattern=".*\\.fb2"/>
                <data android:pathPattern=".*\\.mobi"/>
                <data android:pathPattern=".*\\.prc"/>
                <data android:pathPattern=".*\\.txt"/>
                <data android:pathPattern=".*\\.rtf"/>
                <data android:pathPattern=".*\\.pdf"/>
                <data android:pathPattern=".*\\.djvu"/>
                <data android:pathPattern=".*\\.cbr"/>
                <data android:pathPattern=".*\\.cbz"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <data android:host="" android:scheme="file"/>
                <data android:mimeType="application/epub+zip"/>
                <data android:mimeType="application/x-pilot-prc"/>
                <data android:mimeType="application/x-mobipocket-ebook"/>
                <data android:mimeType="application/x-fictionbook+xml"/>
                <data android:mimeType="application/x-fictionbook"/>
                <data android:mimeType="application/pdf"/>
                <data android:mimeType="application/x-pdf"/>
                <data android:mimeType="application/djvu"/>
                <data android:mimeType="application/x-djvu"/>
                <data android:mimeType="application/x-cbr"/>
                <data android:mimeType="application/x-cbz"/>
                <data android:mimeType="image/vnd.djvu"/>
                <data android:mimeType="image/x-djvu"/>
                <data android:mimeType="text/plain"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.SEARCH"/>
            </intent-filter>
            <meta-data android:name="android.app.searchable" android:resource="@xml/searchable"/>
            <intent-filter>
                <action android:name="android.fbreader.action.CLOSE"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.fbreader.action.PLUGIN_CRASH"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
        </activity>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:exported="false" android:name="org.geometerplus.android.fbreader.dict.DictionaryNotInstalledActivity" android:theme="@style/FBReader.Dialog"/>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="org.geometerplus.android.fbreader.CancelActivity" android:theme="@style/FBReader.Dialog">
            <intent-filter>
                <action android:name="android.fbreader.action.CANCEL_MENU"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
        </activity>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="org.geometerplus.android.fbreader.PluginListActivity" android:theme="@style/FBReader.Dialog"/>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:launchMode="singleTask" android:name="org.geometerplus.android.fbreader.bookmark.BookmarksActivity" android:process=":bookmarks" android:theme="@style/FBReader.Activity.NoActionBar">
            <intent-filter>
                <action android:name="android.intent.action.SEARCH"/>
            </intent-filter>
            <meta-data android:name="android.app.searchable" android:resource="@xml/searchable"/>
            <intent-filter>
                <action android:name="android.fbreader.action.BOOKMARKS"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
        </activity>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="org.geometerplus.android.fbreader.bookmark.EditBookmarkActivity" android:theme="@style/FBReader.Dialog">
            <intent-filter>
                <action android:name="android.fbreader.action.EDIT_BOOKMARK"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
        </activity>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="org.geometerplus.android.fbreader.bookmark.EditStyleActivity" android:theme="@style/FBReader.Dialog">
            <intent-filter>
                <action android:name="android.fbreader.action.EDIT_STYLES"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
        </activity>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="org.geometerplus.android.fbreader.image.ImageViewActivity" android:process=":imageView" android:theme="@style/FBReader.Activity"/>
        <service android:launchMode="singleTask" android:name="org.geometerplus.android.fbreader.libraryService.LibraryService" android:process=":libraryService">
            <intent-filter>
                <action android:name="android.fbreader.action.LIBRARY_SERVICE"/>
            </intent-filter>
        </service>
        <service android:launchMode="singleTask" android:name="org.geometerplus.android.fbreader.config.ConfigService" android:process=":configService">
            <intent-filter>
                <action android:name="android.fbreader.action.CONFIG_SERVICE"/>
            </intent-filter>
        </service>
        <service android:launchMode="singleTask" android:name="org.geometerplus.android.fbreader.sync.SyncService" android:process=":synchroniser">
            <intent-filter>
                <action android:name="android.fbreader.action.sync.START"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.fbreader.action.sync.QUICK_SYNC"/>
            </intent-filter>
        </service>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="org.geometerplus.android.fbreader.library.BookInfoActivity" android:process=":library" android:theme="@style/FBReader.Activity">
            <intent-filter>
                <action android:name="android.fbreader.action.BOOK_INFO"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
        </activity>
        <activity android:name="org.geometerplus.android.fbreader.library.LibrarySearchActivity" android:process=":library" android:theme="@android:style/Theme.NoDisplay">
            <intent-filter>
                <action android:name="android.intent.action.SEARCH"/>
            </intent-filter>
            <meta-data android:name="android.app.searchable" android:resource="@xml/searchable"/>
        </activity>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:launchMode="singleTask" android:name="org.geometerplus.android.fbreader.library.LibraryActivity" android:process=":library" android:theme="@style/FBReader.Activity">
            <meta-data android:name="android.app.default_searchable" android:value="org.geometerplus.android.fbreader.library.LibrarySearchActivity"/>
            <intent-filter>
                <action android:name="android.fbreader.action.LIBRARY"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
        </activity>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="org.geometerplus.android.fbreader.TOCActivity" android:theme="@style/FBReader.Activity"/>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="org.geometerplus.android.fbreader.preferences.PreferenceActivity" android:process=":preferences" android:theme="@style/FBReader.Activity">
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data android:scheme="fbreader-preferences"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.fbreader.action.PREFERENCES"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
        </activity>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="org.geometerplus.android.fbreader.preferences.EditBookInfoActivity" android:process=":library" android:theme="@style/FBReader.Activity"/>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="org.geometerplus.android.fbreader.sync.MissingBookActivity" android:process=":networkLibrary" android:theme="@style/FBReader.Dialog"/>
        <activity android:name="org.geometerplus.android.fbreader.network.BookDownloader" android:process=":networkLibrary" android:theme="@android:style/Theme.NoDisplay">
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <data android:host="*" android:scheme="http"/>
                <data android:pathPattern=".*\\.epub"/>
                <data android:pathPattern=".*\\.oeb"/>
                <data android:pathPattern=".*\\.fb2"/>
                <data android:pathPattern=".*\\.fb2\\.zip"/>
                <data android:pathPattern=".*\\.mobi"/>
                <data android:pathPattern=".*\\.prc"/>
                <data android:pathPattern=".*\\.txt"/>
                <data android:pathPattern=".*\\.rtf"/>
                <data android:pathPattern=".*\\.djvu"/>
                <data android:pathPattern=".*\\.cbr"/>
                <data android:pathPattern=".*\\.cbz"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <data android:host="*" android:scheme="http"/>
                <data android:mimeType="application/epub+zip"/>
                <data android:mimeType="application/x-pilot-prc"/>
                <data android:mimeType="application/x-mobipocket-ebook"/>
                <data android:mimeType="application/x-fictionbook+xml"/>
                <data android:mimeType="application/x-fictionbook"/>
                <data android:mimeType="application/djvu"/>
                <data android:mimeType="application/x-djvu"/>
                <data android:mimeType="application/x-cbr"/>
                <data android:mimeType="application/x-cbz"/>
                <data android:mimeType="image/vnd.djvu"/>
                <data android:mimeType="image/x-djvu"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <data android:host="*rus.ec" android:mimeType="application/zip" android:scheme="http"/>
                <data android:host="lib.ololo.cc" android:mimeType="application/zip" android:scheme="http"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <data android:host="*" android:scheme="book"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <data android:host="*" android:scheme="epub"/>
            </intent-filter>
        </activity>
        <service android:exported="false" android:launchMode="singleTask" android:name="org.geometerplus.android.fbreader.network.BookDownloaderService" android:process=":networkLibrary"/>
        <activity android:name="org.geometerplus.android.fbreader.network.NetworkSearchActivity" android:process=":networkLibrary" android:theme="@android:style/Theme.NoDisplay">
            <intent-filter>
                <action android:name="android.intent.action.SEARCH"/>
            </intent-filter>
            <meta-data android:name="android.app.searchable" android:resource="@xml/searchable"/>
        </activity>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:exported="false" android:name="org.geometerplus.android.fbreader.network.auth.WebAuthorisationScreen" android:process=":networkLibrary" android:theme="@style/FBReader.Activity"/>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:launchMode="singleTask" android:name="org.geometerplus.android.fbreader.network.NetworkLibraryPrimaryActivity" android:process=":networkLibrary" android:theme="@style/FBReader.Activity">
            <meta-data android:name="android.app.default_searchable" android:value="org.geometerplus.android.fbreader.network.NetworkSearchActivity"/>
            <intent-filter>
                <action android:name="android.fbreader.action.OPEN_NETWORK_CATALOG"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data android:host="*" android:scheme="http"/>
                <data android:host="*" android:scheme="https"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.fbreader.action.NETWORK_LIBRARY"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
        </activity>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="org.geometerplus.android.fbreader.network.NetworkLibrarySecondaryActivity" android:process=":networkLibrary" android:theme="@style/FBReader.Activity"/>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="org.geometerplus.android.fbreader.network.AuthenticationActivity" android:process=":networkLibrary" android:theme="@style/FBReader.Dialog"/>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="org.geometerplus.android.fbreader.network.BuyBooksActivity" android:process=":networkLibrary" android:theme="@style/FBReader.Dialog"/>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="org.geometerplus.android.fbreader.network.AddCatalogMenuActivity" android:process=":networkLibrary" android:theme="@style/FBReader.Dialog"/>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="org.geometerplus.android.fbreader.network.AddCustomCatalogActivity" android:process=":networkLibrary" android:theme="@style/FBReader.Dialog">
            <intent-filter>
                <action android:name="android.fbreader.action.ADD_OPDS_CATALOG"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data android:host="data.fbreader.org" android:path="/add_catalog/editUrl" android:scheme="http"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <data android:host="*" android:scheme="opds"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.fbreader.action.ADD_OPDS_CATALOG_URL"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data android:host="*" android:scheme="http"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.fbreader.action.ADD_OPDS_CATALOG_URL"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data android:host="*" android:scheme="https"/>
            </intent-filter>
        </activity>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="org.geometerplus.android.fbreader.network.AuthorisationMenuActivity" android:process=":networkLibrary" android:theme="@style/FBReader.Dialog"/>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="org.geometerplus.android.fbreader.network.litres.UserRegistrationActivity" android:process=":networkLibrary" android:theme="@style/FBReader.Dialog"/>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="org.geometerplus.android.fbreader.network.litres.AutoRegistrationActivity" android:process=":networkLibrary" android:theme="@style/FBReader.Dialog"/>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="org.geometerplus.android.fbreader.network.TopupMenuActivity" android:process=":networkLibrary" android:theme="@style/FBReader.Dialog"/>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="org.geometerplus.android.fbreader.network.NetworkBookInfoActivity" android:process=":networkLibrary" android:theme="@style/FBReader.Activity">
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data android:host="*" android:scheme="litres-book"/>
            </intent-filter>
        </activity>
        <activity android:name="org.geometerplus.android.fbreader.network.CatalogManagerActivity" android:process=":networkLibrary" android:theme="@style/FBReader.Activity"/>
        <receiver android:name="org.geometerplus.android.fbreader.network.ListenerCallback" android:process=":networkLibrary">
            <intent-filter>
                <action android:name="android.fbreader.action.network.SIGNIN"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
        </receiver>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="org.geometerplus.android.fbreader.tips.TipsActivity" android:theme="@style/FBReader.Dialog"/>
        <activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="com.paragon.dictionary.fbreader.OpenDictionaryActivity" android:theme="@style/FBReader.Transparent"/>
        <service android:exported="false" android:launchMode="singleTask" android:name="org.geometerplus.android.fbreader.httpd.DataService" android:process=":dataService"/>
        <service android:exported="false" android:name="group.pals.android.lib.ui.filechooser.services.LocalFileProvider"/>
        <activity android:configChanges="keyboard|keyboardHidden|orientation|screenSize" android:exported="false" android:name="group.pals.android.lib.ui.filechooser.FileChooserActivity" android:theme="@style/FBReader.Dialog"/>
        <activity android:configChanges="keyboard|keyboardHidden|orientation|screenSize" android:exported="false" android:name="org.geometerplus.android.fbreader.preferences.background.Chooser" android:theme="@style/FBReader.Dialog"/>
        <activity android:configChanges="keyboard|keyboardHidden|orientation|screenSize" android:exported="false" android:name="org.geometerplus.android.fbreader.preferences.background.PredefinedImages" android:theme="@style/FBReader.Dialog"/>
        <activity android:configChanges="keyboard|keyboardHidden|orientation|screenSize" android:exported="false" android:name="org.geometerplus.android.util.FolderListDialogActivity" android:theme="@style/FBReader.Dialog"/>
        <activity android:configChanges="keyboard|keyboardHidden|orientation|screenSize" android:exported="false" android:name="org.geometerplus.android.util.EditTagsDialogActivity" android:theme="@style/FBReader.Dialog"/>
        <activity android:configChanges="keyboard|keyboardHidden|orientation|screenSize" android:exported="false" android:name="org.geometerplus.android.util.EditAuthorsDialogActivity" android:theme="@style/FBReader.Dialog"/>
        <service android:exported="false" android:launchMode="singleTask" android:name="com.yotadevices.fbreader.FBReaderYotaService"/>
        <uses-library android:name="com.yotadevices.platinum" android:required="false"/>
        <meta-data android:name="com.yotadevices.BS_ICON" android:resource="@drawable/fbreader_bs_icon"/>
        <meta-data android:name="com.yotadevices.BS_TITLE" android:value="@string/app_name"/>
        <uses-library android:name="com.sec.android.app.multiwindow" android:required="false"/>
        <meta-data android:name="com.sec.android.support.multiwindow" android:value="true"/>
        <meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_W" android:resource="@dimen/app_defaultsize_w"/>
        <meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_H" android:resource="@dimen/app_defaultsize_h"/>
        <meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_W" android:resource="@dimen/app_minimumsize_w"/>
        <meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_H" android:resource="@dimen/app_minimumsize_h"/>
        <meta-data android:name="com.samsung.android.sdk.multiwindow.penwindow.enable" android:value="true"/>
        <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/>
    </application>
</manifest>

...
Рейтинг: 0 / 0
ассоциировать файл со своим приложением
    #39207264
nikomp
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
wadman,

позаимствовал часть кода из Вашего примера, результат тот же в стандартном диспетчере файлов вылетает сообщение "Невозможно открыть". В ES Manager (тоже файловый менеджер) там сначала появляется форма "Как открыть" варианты Текст, Аудио и т.д.
Выбираю Текст появляется запрос выбора приложения, выбираю свое приложение открывает.

Непонятно почему не может открыть файл стандартным диспетчером файлов. Вот мой манифест
Код: xml
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
107.
108.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="ru.androiddeveloper.ya.myreader2"
    android:installLocation="preferExternal">

    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
                <category android:name="android.intent.category.MULTIWINDOW_LAUNCHER"/>
                <category android:name="android.intent.category.PENWINDOW_LAUNCHER"/>
                <category android:name="com.samsung.android.intent.category.PENWINDOW_LAUNCHER"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.fbreader.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.fbreader.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data android:scheme="file"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data android:scheme="fbreader-action"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.fbreader.action.PLUGIN"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data android:host="" android:scheme="file"/>
                <data android:pathPattern=".*\\.epub"/>
                <data android:pathPattern=".*\\.oeb"/>
                <data android:pathPattern=".*\\.fb2"/>
                <data android:pathPattern=".*\\.fb2\\.zip"/>
                <data android:pathPattern=".*\\.mobi"/>
                <data android:pathPattern=".*\\.prc"/>
                <data android:pathPattern=".*\\.txt"/>
                <data android:pathPattern=".*\\.rtf"/>
                <data android:pathPattern=".*\\.pdf"/>
                <data android:pathPattern=".*\\.djvu"/>
                <data android:pathPattern=".*\\.cbr"/>
                <data android:pathPattern=".*\\.cbz"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data android:host="" android:mimeType="text/plain" android:scheme="file"/>
                <data android:pathPattern=".*\\.epub"/>
                <data android:pathPattern=".*\\.oeb"/>
                <data android:pathPattern=".*\\.fb2"/>
                <data android:pathPattern=".*\\.mobi"/>
                <data android:pathPattern=".*\\.prc"/>
                <data android:pathPattern=".*\\.txt"/>
                <data android:pathPattern=".*\\.rtf"/>
                <data android:pathPattern=".*\\.pdf"/>
                <data android:pathPattern=".*\\.djvu"/>
                <data android:pathPattern=".*\\.cbr"/>
                <data android:pathPattern=".*\\.cbz"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <data android:host="" android:scheme="file"/>
                <data android:mimeType="application/epub+zip"/>
                <data android:mimeType="application/x-pilot-prc"/>
                <data android:mimeType="application/x-mobipocket-ebook"/>
                <data android:mimeType="application/x-fictionbook+xml"/>
                <data android:mimeType="application/x-fictionbook"/>
                <data android:mimeType="application/pdf"/>
                <data android:mimeType="application/x-pdf"/>
                <data android:mimeType="application/djvu"/>
                <data android:mimeType="application/x-djvu"/>
                <data android:mimeType="application/x-cbr"/>
                <data android:mimeType="application/x-cbz"/>
                <data android:mimeType="image/vnd.djvu"/>
                <data android:mimeType="image/x-djvu"/>
                <data android:mimeType="text/plain"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.SEARCH"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.fbreader.action.CLOSE"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.fbreader.action.PLUGIN_CRASH"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>

        </activity>
    </application>

</manifest>

...
Рейтинг: 0 / 0
ассоциировать файл со своим приложением
    #39207309
Фотография wadman
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
nikompв стандартном диспетчере файлов вылетает сообщение "Невозможно открыть".
Ну а на сам fbreader (из маркета) как стандартный диспетчер реагирует? У меня - без проблем.
...
Рейтинг: 0 / 0
ассоциировать файл со своим приложением
    #39207435
nikomp
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
wadman,

Скачал fbreader. Из стандартного диспетчера файлы не открываются. Сообщение "Невозможно открыть". Смотрю если в диспетчера долго нажать на файл и посмотреть подробную информацию, вижу "Тип файла: Неизвестно", для переименованного файла xml, уже "Тип файла: text/xml". Такое ощущение, что стандартный диспетчер файлов просто не знает расширение fb2
...
Рейтинг: 0 / 0
ассоциировать файл со своим приложением
    #39207446
Фотография wadman
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Ну вот и ответ. Кривой родной диспетчер. :)

Для успокоения можешь еще попробовать проверить тотал командером и прочими сторонними файло-менеджерами.
...
Рейтинг: 0 / 0
10 сообщений из 10, страница 1 из 1
Форумы / Android [игнор отключен] [закрыт для гостей] / ассоциировать файл со своим приложением
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]