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)?

Android :: Listing an application's activity and intent-filters


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 :: 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 :: 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 : 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 :: Using Intent - Application To Show Another Activity

Apr 10, 2009

In my Android application, I have two activity classes. I have a button on the first one and I want to show the second when it is clicked, but I get an error.

Here are the classes:

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

The second class that should show when the button is clicked, but never does:

CODE:........

How do I create a button that will show the second activity?

View 3 Replies View Related

Android :: Open Activity From An Other Application Via Implicit Intent

Aug 20, 2010

I was trying to open an Activity of an other applicatoin by using an implicit Intent. It doesn't work, I thought it is possible to start an Activity of an other Application by using implicit Intent. Or do I missunderstand it?

I added following intent-filter to the AndroidManifest of Application A:

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

And called the Intent in Application B by using folloing code:

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

All I get ist, the error message that Application A was stoped unexpectedly.

View 5 Replies View Related

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).

View 1 Replies View Related

Android :: Android Intent / Resuming Application Home Activity

Jul 10, 2010

I have an application that I have running a media player and I want to resume the activity from my applications home activity. I can successfully do this by adding the following flags to the startActivity Call:
myIntent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);
I am worried that this is not an ideal way to do things since it took me a long time to find it. It made me think that no one uses it very much. Are there any pitfalls to using this method?

View 1 Replies View Related

Android :: New Application Listing Order In Market Search

Sep 24, 2010

Before today, when entering a search term into the Market app, the results at the top of the search would all be exact matches of that search term against the app name. For example, type "translate" and the user will see all the apps called "translate" before the "Google Translate" result (which is by far the most downloaded translate app). Now, this no longer happens. If you type "translate" the first result is "Google Translate" (and no preference is given to exact matches).

Note: posted on this forum partly because hardly anyone reads Android Discuss, and partly because developers need to know how their apps are being prioritized in app search results).

View 3 Replies View Related

General :: Email Application With Working Filters

Aug 23, 2013

I need:

Multiple email accounts

Being able to filter a specific distribution list to not notify me. I get other emails from that email that I need to be notified when they come in. I just need one distro list silenced. Different notifications for specific senders would be awesome.

View 6 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 :: Exclude Own Activity From Activity.startActivity - Intent

Oct 17, 2010

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(Intent).

Is there a way to exclude my own activity from the list of apps that is displayed to the user after the startActivity() call ?

View 1 Replies View Related

Android :: Android Application Upgrade And Marketplace Listing

Mar 3, 2009

Can anyone tell me if when you upgrade your marketplace application if it then appears at the top of the list of applications by release date? Or is it only when you release a brand new application?

View 2 Replies View Related

Android :: Handle Existing Instance Root Activity Launching Root Activity From Intent Filter

Apr 3, 2010

I'm having difficulties handling multiple instances of my root (main) activity for my application. My app in question has an intent filter in place to launch my application when opening an email attatchment from the "Email" app. My problem is if I launch my application first through the the android applications screen and then launch my application via opening the Email attachment it creates two instances of my root activity. steps: Launch root activity A, press home Open email attachment, intent filter triggers launches root activity A Is it possible when opening the Email attachment that when the OS tries to launch my application it detects there is already an instance of it running and use that or remove/clear that instance?

View 1 Replies View Related

Android : Way To Get Activity From An Intent?

Nov 2, 2010

Is it possible to get the Activity from an Intent?

View 2 Replies View Related

Android :: Set Root Activity/intent ?

Oct 14, 2010

I'm switching between different Activities using Intents. For one Activity, I would like it to clear the history stack so when the user presses the back button, it takes them Home instead of previous activities in my application.

View 2 Replies View Related

Android : Way To Handl An Intent Without Activity UI?

Jun 9, 2009

I've searched for a few hours for a solution to this, so hopefully this isn't a repost I'm setting a shortcut on the Home screen which raises an Intent to my application - the problem is that I don't want to show my app, just run a little code and display a Toast notification. This must be possible - I just can't work out how.. Once I'm handling the shortcut Intent in onCreate() the UI has initialised and I get a little screen flicker if I then run my code and finish().

View 4 Replies View Related

Android : How To Use An Intent To Update An Activity?

Aug 24, 2009

I have a service that is downloading a file. When the download is done, I would like to update my "Downloaded files" list in my Activity, but only if the Activity is running. I do not want the Activity to start if it's not already running. I was hoping I could do this by making a new Intent with some special flag. Anyone have any idea how I can achieve this? A tiny code example maybe?

View 3 Replies View Related

Android : Way To Use Intent From Non-activity Class?

Jan 2, 2010

I have three classes one main-activity(named MainMap), one non-activity class(named MyItemizedOverlay), and one activity class(named AudioStream). I want to start AudioStream activity from non-activity class but i don't know how to.

View 1 Replies View Related

Android : How To Use Intent.getStringExtra From Within An Activity?

May 27, 2010

I am relatively new to android. I have two applications A and B. I have an activity in A, lets name it x, that would launch the application B. Now the intent sent by x contains StringExtra that I want the Starting activity in B to use. Is there a way for the activity in B to do that?

View 2 Replies View Related

Android : Way To Define Two Intent In An Activity?

Jul 6, 2010

I need to start an Activity with two different Intent, can I define two Intents In an Activity node?

View 1 Replies View Related

Android : Way To Use Intent To Update A Value In Another Activity?

Sep 1, 2010

I want to pass a value from one Activity to another to update an integer. So basically I want Activity2 to send Activity1 a value it has garnered from user input. Seems like it should be simple just not sure how. Is it possible to run a function from another Activity and give it this value as an argument?

View 1 Replies View Related

Android :: Use An Intent To Send Data To My Activity

Nov 6, 2010

I have a server running that notifies the user with a statusbar notification that opens my main activity, how can I pass data to my activity trough that intent?

View 1 Replies View Related

Android :: Want Activity / Service To Communicate With Intent

Aug 2, 2010

In the Activity I write Intent i=new Intent("IntentServiceTest"); Bundle bundle = new Bundle(); bundle.putString("abc", "def"); i.putExtra("wer", bundle); IntentTest.this.startService(i); Start Service into Service OnCreate method,but I don't know how to do get this Intent in this method.

View 11 Replies View Related

Android :: Oncreate - Intent Launches My Activity

Sep 30, 2010

Android will call onCreate() of my activity whenever it is launched.

In the onCreate() of my activity can I tell what intent launches my activity?

View 1 Replies View Related







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