Android :: How To List Activities Which Match An Intent?
Apr 17, 2010
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 to use intents to see if other Activities on the device match a set of intent-filters?
View 1 Replies
Nov 28, 2010
I have the following issue. I am starting a recognizer intent activity in order to detect speech using the "startActivityForResult" method. I have also an "onActivityResult" method listening for results from the recognizer activity. It works and it detects my speech. The problem is that it is only called when everything is ok or when i cancel the operation, but it is not called if it doesn't find a matching text "RecognizerIntent.RESULT_NO_MATCH" or in the rest of wrong cases "RecognizerIntent.RESULT_........" What is happening? Application is Android 2.1 and I have tested on a Android 2.2 device.
View 1 Replies
View Related
May 16, 2010
In an Android manifest, how can I use a negative match in the android:pathPattern? I'd like to use a pathPattern that matches on all URLs except for a specific hostname, if it's possible.
View 1 Replies
View Related
May 3, 2010
Is there a significant difference in time needed for sending data over a service or by using an intent?
Are there general advices when to use service and when to use intents?
View 4 Replies
View Related
Nov 8, 2010
I am running into a peculiar issue with an app which has multiple Activities.I have a screen manager class that is bound to a service.The service polls a server for data.The screen manager starts Activity A, B, or C, based on the data.It will also allow the user to select to display the other Activities or it may swap out an Activity automatically based on new data from the service.Currently all the navigation works great and if the user presses Home, the applicable Activity comes back to the foreground when the user presses the apps icon from the Android home screen or the recently run apps list.I then had to implement a new feature to display an icon and notification.I first implemented this by only displaying the notification when the Activities were no longer visible by setting it in each Activities on Pause.Worked like a charm and gave the user a third option to redisplay the app after Home button press.However if the data from the server (when the app is not displayed) causes the screen manager to update the Activity to be displayed I have issues. I think my Activity stack is getting screwed up.I have since tried a little different model where the screen Manager handles the notifications and always displays the notification, updating it with a new Intent whenever an Activity is updated, but its still not cutting it.
When the app is minimized and the data changes I can see the screen manager call the startActivityForResult on the new Activity and it seems like Android knows we are minimized and does not display the Activity. I can then also the screen Manager call to finish on the old top Activity.Each Activity currently has the flag set to singleTop in the manifest and FLAG_ACTIVITY_SINGLE_TOP in the code. When the data hasn't changed on the server, I pull the app back up using any of the above I get what I expect and the Activity's onNewIntent is called. However when the data has changed and the user calls up the app via the notification it calls the Activities onCreate. The Activity does come up and runs, but then pressing back takes me to what seems like another instance of the same Activity instead of exiting. I just took a closer look at my logcat and I see 2 calls to the Activity's onResume, but then no doubles after that.
View 1 Replies
View Related
Aug 31, 2009
We have an Activity which has a form on it and we launch an Intent to take a picture.We've overridden onSaveInstanceState and onRestoreInstanceState to push the data from the view fields But, on the return from the CameraActivity, the onRestoreInstanceState method is never called. Should this behavior work when calling another Intent?
View 7 Replies
View Related
Jun 2, 2010
Anybody know an easy way for an app to find all the instances of all the Activities currently alive in the current process?
Yes, I could register each one into a static List<> someplace from the constructor of each Activity, but that requires developers to remember to put that code into every Activity constructor, which is going to eventually miss one or two (not to mention keep the Activity alive longer than it should be, though that could be fixed by holding WeakReferences instead of strong ones, but that still misses the point), and that's going to mean one or two escape the list. I'd prefer to have a way to see all of them from Android's/Dalvik's point of view.
View 9 Replies
View Related
Jun 16, 2009
Is there a way to get the list of activities (all of them) for a ActivityManager.RunningTaskInfo
View 2 Replies
View Related
Nov 17, 2010
I think that it should be possible to get all the activities from 'third-party' application, described in the manifest file. I can't figure out how.
for example: List<Activity> aList = packManager.getActivitiesForPackage("package.name");
View 2 Replies
View Related
Oct 13, 2010
I want to display the same options menu on all of my application's activities. I created a generic Activity that implements the menu, and all my further activies extend it. The problem: when I need to extend other specific activities, like ListActivity and MapActivity, I can't figure out how to extend the generic activity and add the List or Map behaviour to the new class. To deal with the issue I had to create three different generic activities, each extending Activity, ListActivity and MapActivity.I've tried creating an abstract activity but it doesn't work, I would need to extend two classes at the same time. I could try interfaces but since I can't implement methods, I would have to paste the menu implementation all over the second-level classes, right?
View 1 Replies
View Related
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
Nov 14, 2009
I'm looking into getting my application to show up when the user tries to 'share' a picture via the Gallery application I can't, however, find any information about how exactly to go about this. I get that I need to declare an intent filter for the SHARE action, what I can't seem to find is how the Gallery wants to send out the selected image. http://android-developers.blogspot.com/2009/11/integrating-applicatio... documentation is key indeed.
View 6 Replies
View Related
Nov 19, 2009
How to know the list of available extra for a intent?For example, I want to know all available extra for ACTION_BATTERY_CHANGED. What is the method to know them?I have seen nothing on the official dev guide, reference in http://developer.android.com.I have seen nothing on watching the intent on debugger (on Eclipse)I have seen no methods on the intent documentation, like myIntent.getListExra()
View 2 Replies
View Related
Mar 24, 2010
i'm trying to find out what extra's there are for a specific intent.in the eclipse debug window i can see it has extra's , but i can''t find a list of those extra's. I also can't find a function to get all extra's into a human readable format.
View 4 Replies
View Related
Oct 2, 2010
Trying to do something fairly simple, select from a picklist of tracks.
I have some code that in theory works, and this is as follows;
CODE:................
This works perfectly on the emulator, however when running on my Galaxy S, I get the following exception.
CODE:......
I'm not really sure, nor can I seem to find how to correct the issue.
View 2 Replies
View Related
Oct 27, 2010
I'm looking for an intent filter for when you are at the contact list and you long press a contact so a the menu comes up
View 1 Replies
View Related
Jan 16, 2010
Is it possible to show a list of applications (with intent.createChooser) that only show me my twitter apps on my phone (so htc peep (htc hero) or twitdroid). I have tried it with intent.settype("application/twitter") but it doesnt find any apps for twitter and only shows my mail apps.
View 3 Replies
View Related
Jun 30, 2010
how to call BarCodeScanner, and return the value to a field.so now, i have a toast that says "successful scan" and then i want to pass the result to a new activity. when i comment out my intent, everything works (minus the passing of data/switching of screen, obviously) but when i run my project as is, it FC's no errors reported by eclipse in code or xml. any insights?
View 2 Replies
View Related
Jan 27, 2010
When typing on the keyboard, Android suggests words that match what's typed so far. Usually that's useful. But if I get to the end of the word and none of the suggestions match, it's quite annoying. Android has one matching word listed in red, and when I hit the space bar it auto-matches to the red word. If I'm typing a name or an abbreviation, I have to backspace to undo the match.Is there a better way to make Android not take the match?
View 7 Replies
View Related
Aug 18, 2010
I'm using the Android SAX parser to search for entries in a rather large (6MB) XML file. I'm basically using a derivative of the code shown in listing 8 here. The question I have is how do I stop parsing once my match has been found? The code shown continues parsing through the end of the file but I want to stop before then. Is this possible or do I need to use something other than SAX
View 1 Replies
View Related
Oct 6, 2010
This is my code:
CODE:...........
The items in the ListView comes from an AsyncTask. When the AsyncTask is running I want it to stop adding non-matching items. For now, if it had loaded 5 items and I search with a specified String, then when the AsyncTask continues loading items it adds automatically Orders to the ListView, even if there isn't a match.
View 1 Replies
View Related
Sep 5, 2010
Do I need to implement a custom thumb Drawable?
View 1 Replies
View Related
Sep 3, 2010
Is there any place where I can get AVD files to match various models of phone?
View 3 Replies
View Related
Jun 29, 2010
How does the Moto Droid X match up to the Archos 5 running Android? I've got the Droid and the Archos 5. But bought the Archos mainly as a mp3 player and book reader. My Droid is a great mp3 player but every time it is in my pocket the slider moves and I have to get it out slide the lock and hit play again. Very annoying. Also you get all the notices, such as emails, texts, calendar reminders, etc making thier alarms through the songs. This is why I searched out Archos as a media player. But it really isn't pocketable.
You can but it is large. The Droid X is larger then Droid (4.3 vs 3.7) but still a little smaller than Archos 5". I've done so much research for the last 2 weeks, I'm going silly trying to remember everything and what's what. So has anyone checked both these out and think they are pretty much the same thing only a little smaller screen? Just curious as I'm leaning towards returning Archos and going with Droid X. Hopefully at some time they will make an app that will shut off everything but phone calls while music player is playing.
View 1 Replies
View Related
Sep 13, 2010
I have a Motorola Droid running Android version 2.2. Every so often I will receive email on my Droid from a POP3 account where the subject line does not match the body of the e-mail. For example I will receive on my Droid an e-mail from Amazon confirming order shipment but the body of the e-mail will be an advertisement from Hertz, HP, etc. The Amazon e-mail body is not shown. If I look in Gmail online it is fine so this so this is only on the Droid.
View 4 Replies
View Related
Dec 11, 2009
Is it possible to style a single, say, TextView in Android with multiple alternating styles, colors, and sizes? Think inline HTML or CSS but in the Android world. As an extreme, to demonstrate the point, let's say I wanted to have a word "CIRCUS" with each letter a being different color. Do I have to create 6 TextViews for this or can this be done in one?
View 1 Replies
View Related
Mar 10, 2010
I am testing my multiplayer game by running several instances of the emulator (which is, sadly, extremely slow and dis-satisfying). I depend on a little trick using currentTimeMillis() to keep a synchronized clock between the players (but NOT the absolute value of currentTimeMillis() since no two phones are probably set exactly the same)Anyway, I *do* naively assume that two emulators, running on the same PC would return near identical values for calls to currentTimeMillis(), and what I find is that they start off the same, but pull rapidly apart.Which makes me think the underlying implementation of currentTimeMillis() in the emulator is not at all based on the host PC's calendar, and rquires the emulator to get enough Windows compute cycles to be anything close to accurate. (and one emulator is always running at a lower priority to the other, depending on which one is on top)
If this is just an artifact of the emulator, then I can deal with it, but if it implies I have a fundamental misunderstanding of currentTimeMillis(), then that would be something i need to deal with. Part two of the question is: any way I can speed up the emulator? When I run two, are they sharing one of my cores? Can I split them onto separate cores?
View 10 Replies
View Related
Jul 6, 2010
When you have a list activity and in onListItemClick() you need to obtain the selected item and then match it against various options, what is the efficient way to do it? switch case cannot be used since I want to match Strings. Is a very long if-else if ladder the only way to do it?
Basically the question is how to do something that normally would be done in switch statement with Strings.
View 3 Replies
View Related
Jul 1, 2010
I've created a database for users. The thing is i do not know how to apply on android Java file to execute the function for user to login.
View 1 Replies
View Related
Nov 1, 2009
I want to use the SR api to handle commands in my application. I know at any given point in my application what the valid commands would be at that point so would like to limit the results that the SR is matched against. For example, if the only valid commands were "Yes" or "No" I would like to be able to restrict the SR to only try and match against those two words. Otherwise on full vocabulary I get "Snow" and other false words. Limiting the vocabulary should make matching 90%+ accurate on limited words. Is this possible? Also, can I limit the SR to only match numeric for number input only? The internal dialer seems to be able to do this sort of this, so can I?
View 7 Replies
View Related