intentfilter

Android Activity with no GUI

Hello, I have created a activity that is only meant to be launched from a link (using a intent filter.) I do not want this activity to have a GUI - I just want it to start a service and put a notification in the bar. I have tried to put the intent filter for the link in my service, but that does not work. Is there a better thing to do th...

Adding My App to The Gallery App menu

Hi i am trying to set my application what will be a tool to edit pictures, to the menu in the gallery app of the android phone. I know it should go with the intentfilter but i can not get it to work. <activity android:name=".Compass" android:label="@string/main_compass_tool_button"> <intent-filter android:label= "@string/main_co...

How to add share menu item to Gallery by code

I know how to implement this issue by Menuifest.xml, see also: Google Android Developer Group related issue But my question is how to add share menu of Gallery by java code not Menuifest.xml. My code is as below: public class MyActivity extends Activity { private static final String TAG = "MyActivity"; @Override public void onCreat...

android : how does the OS chose a component implementation when multiple implementation respond to the same intent ?

I have a free and a premium version of the same app (almost same code, same classes with "if"s here and there, different packages in the manifest, same process name in the manifest). The main activity calls a service to execute some stuff, using an IMPLICIT intent. When I install both apps on the phone, it turns out that the premium ac...

Android SMS receiver not working

I'm trying to write a simple application that attempts to receive SMS messages and handle them. I've followed several tutorials but I'm getting nowhere, when I send a SMS to the emulator, the Intent never seems to get fired. Here is my intent: package com.neocodenetworks.smsfwd; import android.content.*; import android.os.Bundle; impo...

Android: How to get location information from intent bundle extras when using LocationManager.requestLocationUpdates()

I am trying to use Android's LocationManager requestLocationUpdates. Everything is working until I try to extract the actual location object that in my broadcast receiver. Do I need to specifically define the "extras" to my custom intent so that the Android LocationManager before I pass it to requestLocationUpdates so it knows how to a...

How to open email attachment in my app on android?

I want to open a specific type of file that my app can already send over email as an attachment. I need to be able to have the android email app choose my app to download or open that specific file type. I can't figure out how to set up an intent filter that would let me do that though. Anyone know how this is done? ...

Is there any way to put extras to Intent from preferences ?

Hi i'm launching activity from preferences screen. Activity is shared among three preferences. I wonder if i can set extras for this activity in xml <Preference android:key="action_1" android:title="@string/action_1_title" > <intent android:action="com.package.SHAREDACTION" > </intent> </Preference> i wond...

How can I specify the scheme specific part in a data tag for an intent-filter?

I want to set up a BroadcastReceiver to handle PACKAGE_REPLACED, but I only want to be notified when my package is replaced. It works fine if I specify a data tag with scheme="package" but then I get notified when any application is reinstalled or upgraded. I can't figure out how I'm supposed to specify the package name which is in the...

Capturing HOME intent programmatically

I need my activity to handle HOME button press with a receiver programmatically, but the event is not firing. I can, however, successfully register and capture this intent filter if I declare it in a manifest.xml activity section. Here's the code for the receiver that's not working: BroadcastReceiver br; br = new BroadcastReceiver()...

Android - Registering a broadcast receiver for two intents?

Hi, I was wondering is it possible to register a broadcast receiver to receive two intents? My code is as follows: sipRegistrationListener = new BroadcastReceiver(){ @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if(SIPEngine.SIP_REGISTERED_INTENT.equals(action)){ Log.d("SE...

Finding the right intent filter

I want to have a background service running which gets started when an Image is opened in the gallery and then does something fancy with the image... As far as I know the opening of the image in the gallery would trigger a new intent to display this image. (Correct me if I'm wrong). My idea was to catch that Intent in the intent filter o...

Android - Intents somehow incrementing?

Hi all, I have started using custom intents in my application and I have come across a bit of a problem. When I send a custom intent I register a Broadcast Receiver and I catch the intent no problem. However problems seem to appear when I send the intent again, the Broadcast Reciever seems to register two events of the intent and so o...

Intent receiver according to preference

Hi, I have a intent receiver in my android manifest, but would like to give the user the opportunity to choose whether he/her wants the app to automatically start at the specific state. Until now, I've used a service with a broadcast receiver, but I really want to delete this service as it seems a bit unnecessary. Can register the inte...

Android - How to get a widget to recognize when the phones orientation has changed

I want my widget to update when the phones orientation has changed. Before android 2.0 you could register your widget to get the intent on orientation change <intent-filter> <action android:name="android.intent.action.CONFIGURATION_CHANGED" /> </intent-filter> but after 2.0 you cannot do it. Android Dev doc says: You can not r...

How to list Activities which match an intent?

I have a few separate applications which are all launched purely through a main application. I am wondering if I'd be able to use intents to retrieve a list of all the sub-applications which match some discovery intent. The main application currently needs to know what Intents to use to START these sub-applications, but is there a way...

App will not launch from drawer after phone is removed from car dock

I am creating a replacement Car Home app for Android 2.0+ devices. The app needs to launch when the phone is inserted into the car dock, as well as terminate when it is removed from the dock. It also needs to be able to be launched from the app drawer. I'm having a problem right now where once the phone is inserted and removed from the...

Logging broadcast Intents and manually trigger them (Android)

Hey guys, during my development in android I've missed a function that can log every broadcast intent that occur. Sometimes it had been very useful to have a function like that... I'm also wondering how to trigger those broadcast intents manually on the emulator. Is there an entire overview of available broadcast intents? Would be gre...

How to get "all" (or the MAIN/LAUNCHER) android intent

Hey, i want receive all start app intents (i think MAIN/LAUNCHER, see below) to log how often i used the application. So i do not want create an activity... I tried several receiver blocks, but for now nothing works: with, without priority, only the action, both, only the category and so on.. <receiver android:name=".Receiver" android...

How to get the file name from the intent?

This is my manifest file. After using intent filter i download the ics file from the mail attachment. When i open the downloaded file it start my application. I need to get the file name and data of the selected file in my application. What should i do in the manifest and the java file. I am very new to android can any one help me???? <...