Android :: SDK Navigating From PackageManager To Activity To IntentFilters

May 22, 2009

I want to use the SDK (PackageManager API) and dump all packages, their activities and the intent filters the activities use. So far navigating from the Context -> PackageManager -> ActivityInfo is easy. I am stuck trying to figure out how to retrieve the mappings from Activity -> Intent-Filter. Looks like from what i could tell from the SDK documentation, i can obtain the ResolveInfo (if i know the Intent). But how do i retrieve Activity to Intent-Filter mapping?

Android :: SDK Navigating from PackageManager to Activity to IntentFilters


Android :: Activity - SubActivity - Intent And IntentFilters ?

Mar 29, 2010

I still have a problem to develop a convenient app to the user. because i am struggling using the activities, intent and intent filters. www.developer.android.com/reference not fit for me to understand these things. can you suggest me a fine example code or tutorial to understand how these things are getting worked.

View 1 Replies View Related

Android :: Getting Packages From PackageManager

Oct 10, 2010

I'm writing an app, that has a somewhat modular system. It has a core app, and some apps, that consist of a single Service, that implements the desired interface. I followed the guide to create the IPC communication. But now I need to get all the services, installed on the system, that my core app can work with. How do I do this? I mean, is there any way to mark my Service apps with some kind of a tag, and then filter results, presented by the PackageManager#getInstalledPackages() based on that tag value? What's the common practice of doing so?

View 1 Replies View Related

Android :: How Does PackageManager Detect What Architecture APK Targets?

Aug 11, 2010

i'm currently trying to specifically target ARMv7 custom hardware and I'm facing issues when trying to install the APK. When I try doing "adb install app.apk" Logcat informs me that: W/PackageManager( 1062): Native ABI mismatch from package file And does not install the APK. With searching I was able to trace down that the problem might have something to do with the architectures not matching on the APK and the platform. Is this it? How does the PackageManager find out the architecture from the APK file? I'm guessing it's not trying to execute the binary or anything, it just checks the files meta data? If so, is there a place in the APK where this information is located? Or am I completely hitting blank here and I should look somewhere else?

View 3 Replies View Related

Android :: PackageManager Component Info Error Getting Assets?

Aug 6, 2009

my application caches static resources in its /assets directory and implements a content provider to provide them to a WebView on request. i kinda have to drive around the houses a bit because it seems i can't get a linear file descriptor on an asset, i get "this resource is zipped" or somesuch, don't know why that's a problem. the content provider just caches the asset in /sdcard and then returns a file descriptor off that. this has been mostly working fine, but i've started seeing errors from the PackageManager. nothing's changed on my end, the assets are still there, etc. the actual error i'm getting is -ndroid.content.pm.PackageManager$NameNotFoundException: ComponentInfo{package/activity} (where "package" is the name of the package, etc) can i get anything wrong with this stuff? caching javascript and css stuff in the apk has been a big performance win.

View 6 Replies View Related

Android :: PackageManager.getInstalledPackages() Returns Empty List

Aug 11, 2010

I am running into a very strange situation when using the PackageManager.getInstalledPackages() method. The first time I launch my activity I get a valid list of all the installed packages. But the second time I launch my activity I get an empty list... What could possibly be causing this?

I am using this code to get the list:

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

I am building against the 1.6 SDK with compatibility for 1.5+

View 1 Replies View Related

Android :: Error Navigating On Song

Jan 23, 2010

When I pull up music files it will only play from the beginning. Even when I move the clippers further down the song and hit play it will play from the beginning so i can't hear what I'm clipping. Any ideas?

View 1 Replies View Related

Android : How To Clear History When Navigating Between Activities?

Nov 17, 2009

I have 3 Activities that my user continuously is looping through. When user is back to the main screen I need to terminate previous history so user cannot hit back button and end up on screen #2, what would be a good way to do something like that? To reiterate - say I don't know or predict the path which leads me to the original view. But once I load it I want to clear history that led user to that view. In 2.0 it's possible with overwriting Activity#onBackPressed but I need something like that in 1.6

View 1 Replies View Related

Android : Way To Create Process Dialogue For Navigating One Screen To Another?

Sep 2, 2010

I need to create process dialogue (wait cursor) while navigating one screen to another screen..

View 4 Replies View Related

General :: Way To Make Android Not Pause Music / When Navigating

Dec 16, 2012

Any way to make Android NOT pause my music when I'm navigating? Whenever navigation speaks it pauses playback.I would rather it just turn down the music and speak over the top of it. The iphone apparently does this and for some reason Pandora does it but nothing else does.

View 2 Replies View Related

Motorola Droid : Way To Keep Gps Off Until Navigating?

Dec 7, 2009

i know the subject title sounds but is there a way to keep the gps off until i navigate, in which it will automatically turn on and when i exit out of navigation it will cut back off so that it does not pull battery power

View 7 Replies View Related

Motorola Droid :: Music While Navigating

Sep 1, 2010

I've heard of people having problems with playing music while navigating with Pandora. I've never been a big Pandora user, I hated the fact that I only got a limited amount of skips. I've used Last.FM since I got my phone. And today, I was playing music through Last.FM and navigating and had absolutely no problem. If you're having this issue with Pandora + Navigator, you may want to consider switching to Last.FM.Also this shows that this isn't a problem with 2.2 particularly because there are music players that don't stop when navigation voice plays. Now that we know Last.FM doesn't have a problem, is there a MUSIC PLAYER on the market that will play the MP3's we have saved on our phones without this issue?

View 1 Replies View Related

Motorola Droid : How To Get Phone Call While Navigating?

Oct 31, 2009

So, how do you think it works if using the Droid as GPS in the Car Dock, then get a call?? Will there be a single button to tap to answer the phone, put the phone in speaker mode and keep navigating?

View 8 Replies View Related

Samsung Captivate :: Bluetooth Lag When Navigating - Instructions Missing

Oct 6, 2010

When I have navigation going and am wearing my bluetooth, or using the bluetooth speaker from my visor, the first one to two words do not make it through the bluetooth. For example, if it says "Turn right on main street", I'll here "right on main street". Some times I'll here "main street". I am certain that it is missing those words, because I can listen w/o bluetooth and hear it all. I am presuming that maybe it 'disconnects' the voice until it needs to use it, and it results in an lag.

View 3 Replies View Related

HTC Eris :: Navigating To Correct Command Prompt When Rooting

May 5, 2010

It seems that many people are having trouble navigating to the correct command prompt to do the recovery step of the root process. If you press (Shift + right click mouse) you can select to open a command prompt in that directory. I'm sure many of you know this, but I found it very helpful when rooting my Eris.

View 6 Replies View Related

Motorola Droid :: Navigating Home Screen For Speed Boost

Dec 8, 2009

I've heard that people say that the Droid feels "Snappier" when navigating the home screen and such. I use Dxtop and was wondering if that same benefit will be noticed on there or will I have to return back to the default home to get the speed boost? Any info would be great!

View 1 Replies View Related

Android :: Purpose Of Using PackageManager In Android

Sep 7, 2010

What is Package Manager ? What is the purpose of using it ?What does the following methods describe:
(1) getPackageManager()
(2) getApplicationInfo()
(3) getPackageName()
Can any one give detailed description as I could not get complete inf. in Android developer guide.
And also one sample program that comprises all the methods.

View 2 Replies View Related

Android :: Error While Using PackageManager In Android

Sep 7, 2010

I got a problem in one Android Application which I am working in which I am getting error when I use PackageManager.I am getting error getPackageManager() does not exists in this class file.How do I solve this issue? I will be eagerly waiting for valuable reply.

View 2 Replies View Related

Android : Need "offline" App For Navigating To Particular Coordinates

Apr 6, 2010

Is there an application for android that would allow me to just enter GPS coordinates and then it would navigate me (just showing the compass like direction would be fine, maybe distance as well)? But all this with NO data connection (WiFi, 3G, ...). Let's say I am in the middle of "nowhere" - no WiFi connection, I do not have data plan with my provider but I know where I want to get - I have coordinates.

View 7 Replies View Related

Android :: Navigating An Array - String Array

Oct 12, 2010

I'm new to android developing but right now I'm working on an application that displays Random Facts. Since I don't want it to be in a random order, I would like to have them in a list. I would like to order through them one by one and show them using TextView.

Resources res = getResources();
myString = res.getStringArray(R.array.FactsArray);

That's what I have so far. If I'm right, that just establishes the array so I can be able to use it later. What I had before was rgenerator which chose a random string from the array and displayed it when I clicked a button.

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

But Like I said, I would like to just order through them one by one when a button is clicked.

View 1 Replies View Related

Android : Closing Activity Completely / Process Killed By Activity Manager Service

Aug 2, 2010

Whenever the memory needs to be reclaimed, the process is being killed by Activity Manager Service in killPidsForProcess. I have a back button in my activity window on right corner of the title bar.

I want to kill the activity completely on clicking the close button. Can I reuse the same function and will it have any major effect? Please help me out in this.

View 3 Replies View Related

Android :: Accessing Battery Info Activity (or Any System General Activity)

Jan 20, 2009

I want to be able to show the Battery Info activity in my app, which shows things such as the exact level, battery health, etc.I'm not sure how I can get it, though a few applications such as Power Manager, Any Cut, etc. show this screen as well. I found in the source code of Settings this intent in a file called testing_settings.xml,But I don't know how to use it. I would guess from the fact that Any Cut has a list of activities, that a list of said activities exists somewhere, and therefore an easy way to access them exists, but I haven't found it.

View 3 Replies View Related

Android :: How To Launch External Activity In Current Activity's Process?

Aug 27, 2010

My app is comprised of a set of reusable Activities that other apps can reuse. For various reasons, I would like my Activities to be launched in context of the invoking Activity's process, instead of always being launched in my Activity's process (default behavior on Android). How can I achieve this?

View 1 Replies View Related

Android :: How To Clear Activity Stack If Using Same Activity Multiple Times?

Mar 3, 2010

So I have an app with Activity A. The layout on the activity is dynamic genearted. So it's possible that on Activity A a user hits a button that goes to "A" and the new page looks different, then a user clicks another button to go to "A" again. Now I have 2 Activities in the history stack. A, A, and currently on A. Is it possible that if a user clicks a button that the whole Activity stack is cleared in a scenario such as this?

View 5 Replies View Related

Android :: Finish Any Previous Activity In Stack From Current Activity?

Apr 27, 2010

How to finish any previous activity in application stack (at any level , I mean not immediate parent) , from current activity like on some particular event I want to invalidate this previous activity?

View 1 Replies View Related

Android :: Retain Only One Copy Of An Activity On Stack When Called From Non Activity

Jul 26, 2010

How can I make sure I only retain one copy of an activity on the stack when called from non-activity? When called from an activity I can just add the FLAG_ACTIVITY_REORDER_TO_FRONT flag to the Intent, but how can I do this from e.g. a widget or a notification?

View 1 Replies View Related

Android :: Force Activity In Landscape Mode Without Activity Restart

Aug 21, 2009

I have a problem to start/create Activity in landscape mode. My Activity need to start in landscape mode and be used in landscape mode by users. So far, I used setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) to force screen orientation of my Activity to landscape mode in onCreate() method.

In addition to this screen mode requirement, my application need to start another background thread in onResume() method, and this thread takes some seconds in order to finish an initialization process, and it is not desirable to to stop/restart this thread's service during the initialization process.

However setRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) forces my Activity restart in a very little while (means onCreate->onResume->onPause->onStop are executed twice at the first place). As a result, my background thread be stopped/restarted during the initialization process, and this makes me a mess at this moment.

View 3 Replies View Related

Android :: Current Activity Force Closes - Tries To Go To Previous Activity

Nov 5, 2010

The default behavior from my observation is if current activity force closes Android tries to go to previous activity on stack How can I control this behavior? I want force close to close all activities

View 2 Replies View Related

Android :: Open Dialogue Activity Without Opening Main Activity Behind It

Jul 19, 2010

Im writing a program that offers a quick reply dialog upon receipt of an SMS.

However, I am getting an unexpected result. When I receieve an SMS, the appropriate dialog activity comes up displaying the correct phone number and message, however there is a second activity behind it that is the 'default' activity in my program (it is what opens when i launch my application)

I do not want this second activity to come up. The quick reply activity should come up by itself over top of whatever the user was doing before.

The 'floating' activity:

CODE:.........

The call to the activity inside an onReceive()

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

The Manifest:

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

View 1 Replies View Related

Android :: Passing Arguments From Loading Activity To Main Activity

May 16, 2010

I'm writing an application that starts with a loading activity. In the loading activity the app requests html from web and parses the html, then it sends the parsing result to the main activity. The main activity has several tabs, and contents of these tabs are based on the result of parsing.For example, the result of parsing is a list of strings ["apple", "banana", "orange"], and I need to pass this list to main activity, so that the main activity can create three tabs named after three fruits.I would like to know if there is any way to pass a list of strings among activities, BTW, is it the common way of do this?

View 2 Replies View Related







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