browser intent messages and broadcastReceiver

by Stephan Kromberg » Tue, 12 May 2009 01:37:20 GMT


Sponsored Links
 Hi. Please tell me how to receive (with a BroadcastReceiver)  intent 
messages from the browser application. Currently my manifest code 
snippet looks like this:

        <receiver android:name=".receiver.BrowseReceiver">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category 
android:name="android.intent.category.BROWSABLE" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.SEARCH" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.WEB_SEARCH" />
            </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" />
                <action 
android:name="android.intent.browser.BrowserActivity" />
                <action android:name="android.intent.action.WEB_SEARCH" 
<action
                android:name="android.intent.action.SEARCH" /> 
</intent-filter>
            -->
        </receiver>

Does anyone have a solution for this?

Thanks



--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. error creating avd with --force

PS C:\Users\cyryl\workspace> android create avd --name test --target 2
Android 1.6 is a basic Android platform.
Do you wish to create a custom hardware profile [no]
Error: Folder C:\Users\cyryl\.android\avd\test.avd is in the way. Use
--force if you want to overwrite.


PS C:\Users\cyryl\workspace> android create avd --name test --target 2
--force
Android 1.6 is a basic Android platform.
Do you wish to create a custom hardware profile [no]
Exception in thread "main" java.lang.StackOverflowError
        at java.io.WinNTFileSystem.list(Native Method)
        at java.io.File.list(Unknown Source)
        at java.io.File.listFiles(Unknown Source)
        at com.android.sdklib.internal.avd.AvdManager.recursiveDelete
(AvdManager.java:952)
        at com.android.sdklib.internal.avd.AvdManager.recursiveDelete
(AvdManager.java:954)
        at com.android.sdklib.internal.avd.AvdManager.recursiveDelete
(AvdManager.java:954) \

[[and so on....]


--~--~---------~--~----~------------~-------~--~----~

2. Adding Undo feature in FingerPaint app bundled with APIdemos.

I am playing with the FingerPaint application that comes bundled with the
API demos package. I was wondering if I could add an "Undo" feature to it,
which would allow the user to remove/undo his latest stroke drawing from the
canvas. I am not sure of how to achieve this though.

I was looking at the
android.graphics.Canvas<http://developer.android.com/reference/android/graphics/Canvas.html>class
and therein I found a few methods that caught my interest.
canvas.restore() and canvas.save(). But I couldn't get them to work per my
requirement.

One of the approach could be memorizing all the Path(representing strokes
drawn) and then resetting the canvas and reapinting all the stroked one by
one except the latest. I somehow dont like this approach.
How do I undo my drawings on canvas?

Please help.

Thanks.

--~--~---------~--~----~------------~-------~--~----~

3. How to create a Icon on Home screen through Activity

4. How to create a Icon on Home screen through Activity

5. Memory corruption

6. Portage d'Android sur IMX27 /// Android porting on IMX27 - confusion in downloading the kernel - android

7. Question about the appwidget update period