"Complete action using" launcher? - Android Software/Hacking General [Developers Only]

As in windows desktop I have the option to choose a specific application to be associated with a file of my choice.
If the option to launch a program was available in the "complete action using" dialogue in android, that would be a very worth component.
I have often found myself missing this feature, and my current situation is calling for the option to open access HTML & text files from the file explorer rather than the ebook reader which requires too many steps to opening the ebook in the reader.
I have tried all the ebook readers on android and the most solid epub fb2 reader I have found is fbreader. Now supporting html & text files in v2 which is still in alpha mode but from my experience it is still the most solid reader you can get for android.
From the file explorer I can directly access epub & fb2 ebooks but HTML/text there is no way I can associate them with my reader of choice.
Sent from my HD2 using XDA App

Android works a little differently from Windows for file association
In Windows the user tells the OS "for this file extension, use this app" (the app/installer can create this association itself)
On Android, an app lists the file extensions it can open. The first time you try and open a file, the OS will check what the apps can open - if a single app has claimed that extension, it'll be used to open it. If multiple apps support it, you'll be given a choice popup, with a "use this as default" checkbox.
If that checkbox is ticked, then that app will be used automatically from then on, unless you either uninstall that app, or clear the default.
To clear defaults, find the app that gets opened in Settings->Applications->Manage Applications and tap on it - scroll down to the "Launch by default" section, and if the "Clear Defaults" button is enabled, you can click it to clear any default actions for that app (don't worry, it won't delete any other settings)
Then try opening your file again, and the popup should appear.
If this doesn't happen, then it's likely that either your app hasn't registered html as a supported type (you'll have to ask the dev to do that), or there's something special about html files which means they don't get handled the same way - potentially your app dev could use a different extension, and register that instead.

Related

[Q] How do I change application mapped to a particular MIME TYPE?

Hi,
I have the Aldiko application for reading books. Since that software was just acquired by Adobe, it now includes a PDF reader. So far so good. I like that PDF reader...
However, I just installed the "Documents To Go" application and this thing took over the PDF MIME type, but since I did not install the full version, it wont let me view PDFs anymore.
So, my question is: How do I remap the PDF mime type back to Aldiko, but still keep "Documents To Go" for MS Word/Excel/Powerpoint stuff?
If it makes a difference, I am running CyanogenMod7 on a Mytouch 4G device.
Thx!
Have you tried opening a PDF file on its own and then redirecting it to Aldiko? Or have you tried uninstalling Documents to Go (or Aldiko) and seeing if it continues to happen?
Please understand, these are questions from a n00b who cruises the forums...
@pbarnum: I tried opening a PDF off the sdcard using a file manager, and it indeed asked me which of the two programs I wanted to use and if I wanted to set one as default. So I did, I selected Aldiko as the default. This almost worked: Aldiko is indeed the default now for the browser, touchdown and for the file manager. However, the email and gmail applications keep trying to open the "Documents To Go" app. I tried rebooting in case those applications had cached the MIME settings, but the issue remains.
Uninstalling "Documents to go" caused gmail to use some other app, but the email application just does not know how to open PDFs anymore...
Hmmm... doing some searches, it looks like there may not be anything one can do because this works through "Intents" and not via a statically (And user manageable) configured MIME type table.
r2d-two said:
@pbarnum: I tried opening a PDF off the sdcard using a file manager, and it indeed asked me which of the two programs I wanted to use and if I wanted to set one as default. So I did, I selected Aldiko as the default. This almost worked: Aldiko is indeed the default now for the browser, touchdown and for the file manager. However, the email and gmail applications keep trying to open the "Documents To Go" app. I tried rebooting in case those applications had cached the MIME settings, but the issue remains.
Uninstalling "Documents to go" caused gmail to use some other app, but the email application just does not know how to open PDFs anymore...
Hmmm... doing some searches, it looks like there may not be anything one can do because this works through "Intents" and not via a statically (And user manageable) configured MIME type table.
Click to expand...
Click to collapse
Settings, Applications, Manage Applications, find Documents To Go and click on it, and there should be a button with something like "Clear Defaults" on it. After that you should be given the choice again (unless I misunderstood your question).
@martino2k6: Thanks, I did not know I could manage the defaults that way... However, that still does not solve the issue. Documents to Go does not show to have any defaults associated with it, yet it is used by default by certain applications.
The issue is: When "Documents to Go" is installed, it causes "gmail" and the standard "email" application to use the "Documents to Go" application to open PDFs. This happens even if Aldiko has been selected as the default application for PDF files. So, what is wrong with that? Well, the free version of "Documents to Go" is good in that it provides viewer support for MS Office documents, but it does NOT provide viewing support for PDF documents, and there are free viewers that do provide that capability.
I dont know why, but installing a second PDF viewer, in addition to Aldiko, solved the issue. The viewer I installed is Adobe Acrobat Reader. Now the adobe reader gets the PDFs and NOT Documents To Go.

[HOW TO] Enable Facebook Sync every minute and more! *simple*

Are you addicted to facebook? are you in a comment war on a status? do you just always want your notifications right as they happen? then this is the thread for you.
This "hack" will allow you to enable more syncing options from within the app itself after a simple modification. what we will essentially be doing is tricking the Facebook app into thinking we are Facebook employees, thus enabling more options.
Items Needed:
1. ROOTED Android Phone with the Facebook App Installed
2. an SQLite Editor off the market (there are some free alternatives, though i suggest the paid version of SQLite Editor)
3. Some knowledge
4. A File Manager such as Root Explorer is also another route to go about this, but we won't use that method in this tutorial unless it is requested in the replies.
Procedure
1. Open SQLite Manager and grant it root
2. let it scan all the folders and databases
3. once it has finished scanning, scroll down to the Facebook App and tap it. this will load the databases the facebook app uses
4. select fb.db
5. you will now see several fields, select "key_value"
6. this is where the mods will take place. first locate the "seen_employee" key, and scroll to the right
7. long-press the value "false" until the menu pops up
8. select edit field
9. delete "false" and type in "true"
10. press save
11. repeat for the "is_employee" field
12. exit SQLite Editor
13. Open the facebook app
14. press back, then menu, and select settings.
15. tap refresh interval and now if you scroll to the bottom you can see the option for "every minute (beta only)"
16. select it, and you are all done!
This also unlocks the options for sandboxing and ssl checks, and i suggest you change neither of those
if this helped, please, press thanks!

Can the default pdf reader of MyLibrary be changed to other pdf reader?

I like the MyLibrary's bookshelf UI and the capability to show the cover page, but the default pdf reader
is too slow to render scanned pdf.
It's pretty easy.
Install the PDF reader of your choice. Having more than one app that can handle PDFs, the 1st time you open one a popup will show letting you to choose which program to use. You can select which and do nothing (the popup will show everytime you open a file) or you can mark the default check, and Android with use the program everytime without asking.
Regards.
CalvinH said:
It's pretty easy.
Install the PDF reader of your choice. Having more than one app that can handle PDFs, the 1st time you open one a popup will show letting you to choose which program to use. You can select which and do nothing (the popup will show everytime you open a file) or you can mark the default check, and Android with use the program everytime without asking.
Regards.
Click to expand...
Click to collapse
I never got that option to choose.
Probably, i launched the pdf reader from MyLibrary before I installed other
pdf reader.
Now, i went to the "Manage Application" to reset the "Launch by Default" setting of all the pdf reader i installed.
I also cleared all cache and data of MyLibrary.
Then I started MyLibrary to launch the pdf reader. I still didnt get the prompt to choose the reader.
However, when I used the File Manager to launch the pdf reader, I was prompted to choose the pdf reader.
Well, if you choose to launch it from MyLibrary, I think the app usually regards that as a decision to launch it with MyLibrary...
If changing default reader is not possible with MyLibrary,
is there any other similar bookshelf app that has similar UI as MyLibrary and allows changing default reader ?

[Q] Default app behavior for adding attachments

So I've been using my OPO for several months now and love it, but there's one aspect of it that I haven't been able to fix just yet. I'm not sure if this stems from moving to 4.4 from 4.2 or something rolled into the stock CM11 rom.
With my past Android phones, when I would go to attach a photo to a text message or send one via skype or another app, it would ask me for what app to use. I use quickpic as my default gallery app so I would select that as my default for that action and all was well with future attachments. With the OPO I don't get a prompt at all and instead it directs me to a "recent files" view where everything that I have recently saved or modified on the device is displayed.
Along the left side it lists all the file browsing apps and services on the device (stock gallery, G+ photos, file manager, dropbox, quickpic, etc) which I can then press and it will load that app for me to choose the file I want. I just want it to go directly into quickpic and skip all that other nonsense but I can't figure out how to make it do that.
I've reset the default apps on the device in hopes that this was some system app that was taking over, but it still does not bring up the "default app" prompt to let me choose what I want. I have attached a screenshot of what comes up.
Any ideas how to override this behavior and get back the use of my gallery app?

EbookReader App

Hi,
i search an app like KyBook 2 Reader on iOS unlikely i can`t find any app that have the following Features:
Connect to SMB / Webdav Fileshare
List PDFs and show Covers
Ability to Search PDFs by Title and Keywords
After click on a File - Open File and Cache it not download the File and safe it to "Downloads" > delete after close or cache the most opened and so on.
The Most apps can not connect to an Fileshare or i have a normal filebrowser with a simple filelist.
any Idea?

Categories

Resources