I am following a tutorial to setup a service to start on boot where the last piece of the code is:
Make an entry of this service in AndroidManifest.xml as
<service android:name="MyService">
<intent-filter>
<action
android:name="com.wissen.startatboot.MyService" />
</intent-filter>
</service>
Now start this service in the BroadcastRec...
I know how to lunch another activity, But how do I meke sure an activity exist for my MIME type before starting the activity? for example if I have a PDF file that I want to display, how do I make sure a PDF viewer exist?
here is the code I use to lunch the PDF viewer
MimeTypeMap tMimeType = MimeTypeMap.getSingleton();
String tMimeStr ...
Hi,
I am new to android platform.please help me out how the Broadcast Receiver and Intent Filter behaves in android.please explain in simple line or with example.thanks in advance...
...
I need to start an Activity with two different Intent, can I define two Intents In an Activity node?
An real example is: in my current application, I want to start an main Activity in another android application, how can I implement such requirement?
can I add another Intent-Filter in the following Activity Node?
...
I don't quite understand what the IntentFilter does? Here is an example manifest:
<activity android:name="SomeActivity" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
...
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.
Thanks!
...
I want to have the default android browser be able to download files of a particular file extension, .xyz, for example.
Without installing Astro (or some other file manager), users will get the error "Cannot download. The content is not supported on this phone". Installing the Astro application allows the android browser to download any...
I tried using the following data in my intent filter:
<data android:scheme="http" android:host="an.example.i.p" android:pathPrefix="t" />
Why doesn't the following url trigger it?
http://an.example.i.p/t/v2.aspx/chase/a.test.auto
...
I have a Live Folder that lists custom content from a SQLite DB. When an item is clicked, the detail page for that item should be displayed using this URI: content://com.langley.app/item/detail/# (e.g. content://com.langley.app/item/detail/100). Whenever I test this using the "am start" command, the detail activity loads perfectly.
Ho...
This has been asked many times, but no working answer was given.
I have a custom file type/extension that I want to associate my app with.
As far as I know, the data element is made for this purpose, but I can't get it working.
http://developer.android.com/guide/topics/manifest/data-element.html
According to the docs, and a lot of forum...
I have an application that 'registers' itself to images. I.e if I open Photos application, select a photo and press 'Share' my application will show up in the list.
If I press on my application it will launch. Now I would like to get the image that i previously selected to share within my own application. How do I do that? Is there a met...
hi. here is my problem.
i have an application that has a tabActivity and 3 tabs. all off the tabs use a location listener and work with locations. i implement onPause and onResume for every tab to remove and start listening for location accordingly. is this the right way to go? i had another idea to work with and that was implementing a...
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).
...
I want to use addIntentOptions to drive my menus when ever possible. This seems the cleanest way to provide them. Rather than explicitly detailing activities, simply ask for a menu listing all the activities which are available for my data item.
So I'm trying to put together a context menu for a ListView. It works great. Only problem is...
Hi,
I have an Activity which also has t olisten to a specific broadcast from a self-made service.
I have noticed though that when I add that as an action to my Androidmanifest file the app won't actually start whilst debugging.
The Activity is also my MAIN activity :
<intent-filter>
<action android:name="android.intent.action.MAIN" ...
I am unable to get my BroadcastReceiver onReceive method called using the BOOT_COMPLETED intent.
AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.jerrellmardis.umbrella"
android:versionCode="4"
android:versionName="1.0.3">
...
My app works with pictures. It can take multiple pictures as an input, process them, and send them again to another app.
As a consequence, my main Activity has declared an intent filter on ACTION_SEND_MULTIPLE for image/* mimetypes and can result in issuing a new Intent with the same action and data type using Activity.startActivity(Int...
Hi,
I have the following inside my manifest file:
<service android:name=".Rotate"
android:enabled="true"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.SEARCH_LONG_PRESS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</se...