Android :: Android Intent Filters To Intercept URL / How To Use Correctly?

Aug 27, 2010

I have an intent filter to intercept urls from the browser on my domain. This will give the user the the choice of using the native application or the browser. I have setup the following intent filter as so.

<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="myDomain" android:pathPrefix="/custom/" android:scheme="http" />
</intent-filter>

Now, it's not my intention to trap the user in the native application as there is much benefit from using the browser. So I would like to give the user some ability to go back to the browser within the application. I have created a button with an onClick that simply creates an intent for View and the url that would represent it. This will present the user with the choice dialog again. The catch to this is that a user is also allowed to select a checkbox to always use the native application. While that is well and good, sometimes absolutes are wrong.

So if I am reading a blog post that mentions a specific url and a specific part of that document, intercepting the url is not what the user intended but will send them to the native application. Also then upon selecting the button with the intent, they will immediately be sucked back into the application. How can you structure a ACTION_VIEW intent for the system browser or at least detect that the user has selected always use the native app so that you can use the ACTION_WEB_SEARCH (it has a different UI behavior with the history stack, which is why I wouldn't opt to use this action all the time).

Android :: Android Intent Filters to Intercept URL / How to Use Correctly?


Android :: What Are Intent Filters Exactly

Jul 3, 2010

I've read lots of articles about intent filters and I really can't understand exactly what they do? so please if anybody can explain to me with a clear example what is the role of intent filters exactly ?

View 4 Replies View Related

Android :: What Are Intent-filters

Jul 23, 2010

In my android app, I wanted to start an activity 'B' from initial activity 'A'. I have created classes for both of these. However when using following code to start B, I get runtime error as application has stopped unexpectedly, try again.

CODE:..........

When I added a new entry in AndroidManifest.xml/manifest/application/activity/intent-filers for activity B then the application worked.

I have two questions:

When there are multiple activities entries in AndroidManifest.xml, how does android know which activity to start first?
I could not understand intent-filters.

Here is my partial AndroidManifest.xml

CODE:...................

View 1 Replies View Related

Android :: Not Able To Found Intent Filters

Oct 31, 2010

I'm writing a client application for an Italian social network (Meemi) and I'd like to give the possibility to users to share their calendar events via my client. I noticed on my device (HTC Desire) that is possible to access to a "share chooser" from the Calendar event list: in fact I can share via email, sms, and bluetooth. I'd like to add my client to the this sharing list: but I'm not able to found the right intent filter to use.

View 2 Replies View Related

Android :: List Of All Available Intent Filters ?

Nov 4, 2010

I have search Android docs and for some insane reason I am not able to find the list of all available intent filters.

I am finding an intent filter, which would do something like , notifying me through Broadcast Receiver that a particular Activity (example browser, or email ) has been started or in foreground. Can anyone help me with that .

View 1 Replies View Related

Android :: 2 Intent Filters - 1 Activity - Which Opened It?

Aug 1, 2010

Is there a way to know which Intent Filter is responsible for launching an Activity which has two Intent Filters defined in AndroidManifest.xml? I want a slightly different set of logic, but not enough that should require a whole new Activity.

View 1 Replies View Related

Android :: Listing An Application's Activity And Intent-filters

Jun 10, 2010

I am interested in activating another application's activity. I know from reading the Android SDK that it's probably better to do this with an implicit intent. However, this activity doesn't reside in an application I own, so I don't know the action and category and data flags on the intent-filter.

How can I examine an Android applications metadata like the activity classes and the intent-filters for those activities (if declared in the manifest)?

View 2 Replies View Related

Android : Using Intents / Intent Filters And Mime Types?

Feb 22, 2009

I've been grappling with an issue all day.

I am trying to create a program to deal with .torrent files that are clicked on and/or downloaded by the browser. Currently the downloader reports "Cannot download. the content being downloaded is not supported on the phone"

Im fairly sure this is doable as i recently encountered the same issue with pdf files untill i installed a pdf reader.

View 4 Replies View Related

Android :: What Is Point Of Defining Actions Within Intent Filters On A Receiver Tag

Apr 15, 2010

I'm currently exploring Broadcast Receivers and Broadcast Intent. There are some aspects of the tutorials which are ambiguous to me. To my knowledge this is how the process works. I can broadcast an intent from my application and any receiver on the phone can act on that intent as long as the actions match. I can register a broadcaster receiver on anything that extends Context and when I do so I must provide a filter which will allow the receiver to act on one or more intent actions.The part which confuses me is defining a receiver via the manifest. Must the name of said receiver match a class name? Why should I ever define an intent filter with an action in the project manifest if I always have to provide another intent filter when I register my receiver in code?

View 1 Replies View Related

Android :: Intent Filters - Prevent Creation Of Multiple Activity Instances?

Feb 16, 2010

I added an intent filter to one of my activities, so that when a user clicks a URL like "www.mysite.com", and if my app is installed, my registered activity can be launched. It works well.

I see that this creates a new instance of my registered activity though, every time a link is clicked. Is there any way to prevent multiple instances from being created - just recycle an existing instance if one already exists?

View 6 Replies View Related

Android :: Intent Provided By Cursor Is Not Fired Correctly (LiveFolders)

Apr 15, 2010

In my desperation with trying to get LiveFolders working, I have tried the following in my LiveFolder ContentProvider:Which, in all normalness, should launch the Browser and display the Google homepage when clicking on an item in the LiveFolder. But it doesn't. It gives a Application is not installed on your phone error. No, I'm not defining a base intent for my LiveFolder.logcat says:I/ActivityManager( 74): Starting activity: Intent { act=android.intent.action.VIEW dat=Intent { act=android.intent.action.VIEW dat=http://www.google.com/ } flg=0x10000000 }It seems it embeds the Intent I give it in the data section of the actually fired Intent. Why is it doing this? I'm really starting to believe it's a platform bug.update: I have filed an issue and removed the LiveFolders feature. I will include it in my app when I'll get a response either here or there that clarifies this thing. If I get the time I think I'll upload a demo app to that issue. Update: I have received a notification that the bounty is expiring in 3 days. No one wants it? Update 04/25/2010: I have updated the issue on the Android project and uploaded a test application. It would be nice if someone could test this application on a device, maybe it's such a subtle problem that it only appears on the emulator.

View 2 Replies View Related

Android :: Apply Alphabetical Filters On ListViewApply Alphabetical Filters On ListView

May 11, 2010

I need to create a list view that display same functionality as Contact App. I need to have a scroller through which i can traverse the list alphabetically. To achieve this i am following an example from API demos "com.example.android.apis.view.List1.java". It is using a textfilter. When i implement this functionality on a static list view => it is working fine. But when i try this on a dynamic listview=> it is not working.

View 2 Replies View Related

Android :: LogCat Filters - How To Specify Wildcards?

Feb 14, 2010

I'm using the Eclipse plugin to view log output using LogCat. I want to use a filter all messages with the tag. But it doesn't work, how can I do this?

View 2 Replies View Related

Android :: Signal Analysis - Some Filters

Jun 18, 2010

As the world cup is the main sport event and the Vuvuzelas are the most annoying sound in the world, I had an idea to remove them definitively by reading this new ( http://www.popsci.com/diy/article/2010-06/simple-software-can-filter-out-vuvuzela-whine) that told us that the sound has some frequencies at 233Hz + 466,932,1864Hz.

I have already made a lot of Android application by myself but never touching the signal analysis and filtering part, so here are a few questions, I do not ask for precise answer but maybe links and tutorial to find something to work on. I guess that a new Android phone has the CPU and power to make real-time filtering.

1) How can I intercept the sound coming from the Jack microphone - Line-IN plug- ( I plan to link my TV to my phone with Jack to Jack plug). My question is totally software and coding, I have all the wires and adapters to plug a jack into my android phone Line IN.

2) Are there some Fourier analysis librairies, may I have a look to Java libraries on the web and import them to my Android project?

View 2 Replies View Related

Android :: Market Filters And Build Target

Nov 18, 2010

I want to set in project properties build target 2.2 (api level 8) In the manifest.xml <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4"/> is declared. Did anybody tried, if any user (with min. Android 1.5) see application in the market? Could some other problems occur because of different SDK for building and in manifest?!

View 2 Replies View Related

Android :: Apply Alphabetical Filters On ListView On Os

May 4, 2010

I need to create a list view that display same functionality as Contact App. I need to have a scroller through which i can traverse the list alphabetically. To achieve this i am following an example from API demos "com.example.android.apis.view.List1.java". When i implement this functionality on a static list view => it is working fine. But when i try this on a dynamic listview=> it is not working.

View 1 Replies View Related

Android :: App To Intercept SMS Without Loading It To UI?

Mar 11, 2009

Requirement: 1. The program must be on top of SDK only, no hacking! 2. When a TEXT SMS is arriving to Android mobile, the program must intercept the TEXT SMS to analyze the SMS content (access the whole SMS data) 3. In terms of the SMS content, the program determines if the SMS is erased as it doesn't exist. No notification, no update to Inbox UI. 4. Power cycle the Android phone, the SMS is not seen at Notification or message Inbox

Can any one help with the solution? Or which API shall we look into?

View 3 Replies View Related

Android :: Safe App Search Filters And Web Browsing Restrictions?

Jun 18, 2010

Anything out there that can help keep app browsing secure and safe?Also anything that can be added to the standard browser to put browsing restrictions on without having to turn it on and off with every reboot?

View 2 Replies View Related

Android :: Does Call Blocking App - Time Filters Exist?

Apr 3, 2010

Have been wondering whether there is an app out on the market that blocks phone calls at certain periods of time throughout the day! Such as at night time, I get obnoxious calls that wake me up! Or while I'm in class... Is there such an app that blocks phone calls from like 12AM to 7AM. I've been googling like crazy and I can only find apps that block certain phone numbers.

View 5 Replies View Related

Android :: Possible To Intercept Open Application?

Oct 7, 2010

I am wondering if it is possible to intercept an open application call, for any (most of the) installed application. Or at least for opening the Activity having the intent-filter's action set to Main (if it exists for an app).

View 1 Replies View Related

Android :: Possible To Intercept Incoming SMS To Application?

Mar 24, 2009

Does anyone known if its possible to intercept incoming SMS to my app? Similar to PushRegister in JME. I try to BroadcastReceiver - works fine but the SMS also goes to Native Inbox app.

View 3 Replies View Related

Android :: Detect / Intercept Screen Turning Off

Nov 27, 2009

Is there any way where I can detect that the screen is about to turn off, so I can do some work *before* it happens?I need this to work around bug 3755: OpenGL apps sometimes crash when the screen gets turned off because they don't get surfaceDestroyed /surfaceCreated() events. Simply put, I need to shut down OpenGL before the phone has a chance to detach the GPU. The only events I seems to be getting when the screen turns off are onPause() and onWindowFocusChanged both of which turn up *after* the GPU detaches, by which time it's too late.

View 7 Replies View Related

Android :: How To Intercept Voice Data During Call?

Nov 15, 2010

I plan to develop Android application which will encrypt/decrypt voice data such that parties can communicate using secure channel. So the question is: how to intercept voice/audio data during GSM call? Is it possible or not? Should I use Android NDK or something else?

View 3 Replies View Related

Android :: Intercept Audio Stream On Device?

Jul 8, 2010

Let's suppose that we have the following scenario: something is playing on an android device (an mp3 par example, but it could be anything that use the audio part of an android device). From an application (android application :) ), I would like to intercept the audio stream to analyze it, to record it, etc. From this application (let's say "the analyzer") I don't want to start an mp3 or something, all I want is to have access to the audio stream of android. Any advice is appreciated, it could a Java or C++ solution.

View 1 Replies View Related

Android :: Intercept AJAX Call From WebView

Oct 15, 2010

I want a HTML/javascript application, running in a WebView, to make AJAX calls that are handled by the Java code. Ideal would be to just intercept the call (easy, just use shouldOverrideUrlLoading()) and 'return' some data. However, I don't find a way to 'return' a response to the WebView, other than calling a javascript function using loadUrl(). This will not work for me, as the HTML/js app is a drop-in application which I don't control. As far as the HTML/js app concerns, it just does an AJAX call and receives some data back.

View 1 Replies View Related

Android :: Intercept MyTouch 4g Genius Button?

Nov 7, 2010

Does anyone know how to intercept the genius button on the new MyTouch 4g by HTC? Is it somehow hard wired to the kernel?

I looked at logCat, and I see that if uses the following intent:

INFO/ActivityManager(1309): Starting activity: Intent { flg=0x10000000 cmp=com.nuance.android.vsuite.vsuiteapp/.VSuiteStartSession }

View 1 Replies View Related

Android :: App Can Intercept Bluetooth Device Buttons?

Jul 2, 2009

Could someone point me to the documentation or example on how my application can intercept button pushes on an already paired and connected bluetooth device?

View 5 Replies View Related

Android :: Can't Intercept The OnTouch Event Of PopupWindow

May 26, 2009

I want to intercept the OnTouch event in a PopupWindow, but it failes everytime. Here is the code snip:

CODE:.....................

When the activity started, I can click the button to show the popup window correctly. But after that, nothing happens when I touch the popup window's view. But if I touch any where outside the popup window, the log Log.d("Demo", "layout::onTouch >>> view: " + v + ", event: " + event); will work.

It looks like when I touch the view of the popup window, the touch event has been consumed somewhere?

View 2 Replies View Related

Android : Installing App Inventor Onto Samsung Intercept?

Nov 16, 2010

I am trying to install app inventor on my Samsung intercept.I have gone through the steps in the set up computer and phone.When it was time to plug in the USB connection the two notifications did not display.Please, if anyone knows of any additional steps I need to take I would appreciate some advise.

View 1 Replies View Related

Android : Favorite SMS Client On Samsung Intercept?

Oct 5, 2010

I have would like to change the default SMS client on my Samsung Intercept. Curious what free SMS clients do you use?

View 27 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved