Android :: List All Activities Exposed By An Application

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");

Android :: list all activities exposed by an application


Android :: List Of All Instantiated Activities

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

Android :: How To Get The List Of Activities Within A Task

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

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 View Related

Android :: How To Implement Generic Activity - List And Map Activities?

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

Android : Get All Table Names Exposed By A Given Content Provider

Aug 9, 2009

The docs for ContentProvider (http://developer.android.com/guide/ topics/providers/content-providers.html) show the url format as: content://com.example.authority/table_name/13

I'm use the following code to find the authority for a particular 3rd- party content provider:

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

Is there a way I can then get all the table names that it contains?

View 2 Replies View Related

Android :: Multiple Activities In Application

Mar 17, 2010

I seem to be missing something obvious here, why would I want more than one activity per application in Android? Does somebody have some solid examples?

View 3 Replies View Related

Android :: Activities In Application - Which Should Launch First?

Nov 9, 2010

I created an app with one activity, and it works just fine. Having though more about the app, I decided to add another activity which be the welcome screen of the app, with a nice logo and some buttons. This app should direct the user to the activity I mentioned before. The only trouble is - I can't find out where and how can I determine which activity should launch first, the moment the app loads. Do I need to create the entire app from scratch, but this time programing the home activity first?

View 1 Replies View Related

Android :: Kill An Application With All It's Activities?

Jun 23, 2010

I want to offer the user an option to exit the application as I need to delete some sensitive data, which is stored in the SharesPreferences as long as the application needs it.

As soon as the user wants to exit, the password in the SharedPreferences should be wiped and of course all activities of the application should be closed (it makes no sense to run them without the known password - they would crash).

How can I do that?

System.exit(0) and finish() only exit the current activity - useless. I know there is a taskmanager app. How is that one doing it? It's able to kill the whole application ...

View 4 Replies View Related

Android :: Closing Old Methods / Activities In Application

Nov 24, 2010

Need help closing/accessing my views in a simple app (included an img of my program layout) but I might have been too confusing. Basically, I have an app that has a main menu where the user can click a button to open a camera. The user then snaps a photo and it is displayed on a page. The user will then click another button that detects faces. If faces are detected, the user is sent to a final page that shows the cropped face, etc. I give the user the ability to return to the main menu or snap a new photo.

Let's say a new photo is snapped and the user does it a few more times. Now I have multiple saved instances of old snapped photos (presented on the layout). How do I kill the previous instance (the layout from before he decided to snap a new photo)? So when I try to close the app it doesn't go back to the previous instance (displayed layout of said snapped photo). I am so confused on this one thing.

View 1 Replies View Related

Android :: Stop An Application If Any Of Activities Were Killed By OS

Sep 10, 2010

I have an application with many forms implemented as separate activities. The form variables are dynamically built based on a database, and there are a ton of variables in the C++ side of the application (accessed via JNI). I don't see how saving out all of this data to persistent storage each time the onPause() or the onSaveInstanceState() of one of these many activities goes into the background is a smart use of processor time. And I don't see how even if I save the local variables for each activity during that time I'd be able to restore a single activity within the context of all the others.

I have set up a service that auto saves the files when I detect that the app has gone into the background. (I set a time stamp when onPause() is called in any activity and then clear the time stamp when onResume() is called on any other activity. If the time elapsed is more than a few seconds, I know I'm not the top activity any longer and the service saves the files).

What I'd like to do is continue on as normal unless the OS kills one of my activities. Since we don't always get notified of this, I thought it would be nice if there were a way to tell the OS that I'd rather you kill the whole app than just one activity.

View 1 Replies View Related

Android :: Close All Activities In Tabbed Application

Feb 20, 2009

Can someone tell me how to close all activities running under a tab?My initial activity does not need a tabbed view. Therefore, to initiate a tab for the next (remaining) activities, I call a class that extends TabActivity, from the first tab.All this class does is to assign and call activities based on the tab click.Currently, to close all activities i am using StartActivityforResult.But in this case, while calling activites from the TabHost, setContent does not accept a result code as a parameter.Help me to solve this one. My application is stranded in a blank screen before closing. i.e. in the TabActivity class.

View 2 Replies View Related

Motorola Droid X :: GPS Car Dock And Camera Was Exposed

Jul 20, 2010

I just picked up the GPS car dock and while setting it up I noticed that the camera was exposed. I plugged it in and exited out of the car dock and fired up the camcorder. It worked like a charm, this will be fun for the track days.

View 15 Replies View Related

General :: Exposed Or Flashable Transparent Navbar

Nov 13, 2013

I just wanted to know if there is a way to make my navbar transparent (without decompiling and all that). I have searched all over XDA but found nothing on what I want.

View 3 Replies View Related

Android :: Creating Options Menu Available To All Activities In Application

Jun 20, 2010

I want to have an options menu that is available to all Activities in my app (on pressing the MENU button). I've been doing this by creating it in onCreateOptionsMenu(Menu menu) for each Activity but this seems redundant. Is there a way to create it in one place and have it available in all Activities?

View 1 Replies View Related

Android :: Application Background Image With Transparent Activities

Oct 29, 2010

I have run into an requirement of my application that i cant find a way to do this.

I need my application to be fullscreen and no title bar (done), and this application will have a background image. However, all the activities/views of my application must be transparent/translucent so the application background will be visible all the time behind the information i am displaying.

Basically i would like to have this behavior

http://www.geeky-gadgets.com/wp-content/uploads/2010/05/amazon-kindle-android-app.jpg

supousing that the image you see is not the phone wallpaper, but the application background image. What would be the application configuration in the manifest file and what would be the configuration for eacy activity/view?

I also noticed that, i need to setup each activity to be fullscreen without title bar. Is there a way to do this globaly in the application so all activities will behave this way?

View 1 Replies View Related

Android :: How Do I Get Multiple Icons To Launch Different Activities In One Application?

Jul 17, 2010

I have an application with two activities and I'd like to be able to have two icons appear in the launcher, each launching the respective activity within the app.Specifically, I want one icon to launch my main app, and another icon to launch my settings activity. Is this possible?This creates two launcher icons, but they both run my main app instead of the second icon running my settings app. I've tried just having the launcher category but then I don't get an icon so it looks like I need the main action as well.Is this the right approach or should I be declaring two applications in the manifest instead?

View 2 Replies View Related

Android :: Subactivity - Created An Application Which Consists Of Several Activities

Aug 3, 2009

I created an application which consists of several activities. If I start a subactivity named DlgTitleTags from main activity everything goes well.

Another case is when I start a subactivity DlgLibrary and then from DlgLibrary DlgTitleTags the execution fails on line:

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

In the first example this line executes without errors so I'm wondering what could be wrong here.

This is the copy from log:

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

View 1 Replies View Related

Android : Application With Multiple Activities - Single Launcher

Oct 6, 2010

I have an application which has multiple activities associated with it. When the user clicks on the launcher icon I want the last used activity of the application to be shown.

What's the best way to accomplish this?

View 1 Replies View Related

Android :: Pass Data Between Activities In Droid Application?

Jun 3, 2010

How to pass data between activities in an Android application?

View 1 Replies View Related

Any Apps / Exposed Modules That Hide Soft Keys

Feb 22, 2014

I would like to know of any apps/exposed modules that hide the softkeys completely, like not fade out and dissapear but slide down to where you swipe up from bottoms of screen and they show up again. Any such apps?

View 1 Replies View Related

Android :: Share Files With Different Activities Running / In Different Processes In Application

Mar 16, 2010

I would like to share a cache file across activities, which are running in different processes but in a same application.So, is there any way to make it thread safe (probably not "thread safe", should we call it "activities safe" or "process safe" ?

View 2 Replies View Related

Android :: Design Application With Multiples Activities And Operations Running In Background?

Nov 22, 2010

I am designing an app that will have some activities separated in tabs. Some of them will have to perform tasks in the background will the user is in another tab. What is the best strategy for designing an app like this? I was thinking about using a service but it can be killed by android dalvik, isnt it?

View 1 Replies View Related

Android :: Remove Application From Recent Application List

Sep 21, 2010

I guess that Android won't let people to do this, because they think they have perfect handle for the task/applications. However, I really need to do this in my case.

I have an activity A acting as the entry point of my application. In that activity, it reads the preference and decided which activity to start, say B or C. After that, it finishes itself. So, activity A never appears to the users.

My application stores things on sdcard, and reads from it constantly. So, when the sdcard is unmounted, I need to display a message to the user that the sdcard is unavailable, instead of opening B or C. I set a check in A to display that message when sdcard is unavilable. When that message is displayed, A will not try to start B or C.

Things works perfectly if user only enter my application from application launcher. However, I found that user can also enter my application by long pressing home and choose it from the recent application list, if he has opened it recently. When user does that, it skips A and goes directly to B or C. I don't have the check in both of them, so exception is thrown while I am trying to access sdcard, and force close dialog pops up.

I can simply move my check to both B and C to fix this problem. But in the future, the number of activities started from A will increase. If there are 6 of them, I'll need to copy this check to 6 places. Needless to say, this looks very ugly, and is a maintenance nightmare.

So, the best fix should be removing my application from recent application list when the sdcard is uunmounted. However, I can't find how to do this. Even killing the process or use ActivityManager.restartPackage, it still appears in the list. Can anyone tell me how to remove it from the list?

View 2 Replies View Related

Android :: Hide Application From Application List

Nov 1, 2010

Is there any way to hide an application icon from Android applications list ? The application should be downloaded from Market and opened some GUI for configuring my application. I don't want to see any icon of my application in applications list. User should not be able to run it.

By the way I know some way:
remove this line from manifest
<category android:name="android.intent.category.LAUNCHER" />

But it is not worked for me, because the GUI is not shown.

View 6 Replies View Related

Android :: Hide An Application From Application List

Nov 1, 2010

Is there any way to hide an application icon from Android applications list ? The application should be downloaded from Market and opened some GUI for configuring my application. I don't want to see any icon of my application in applications list. User should not be able to run it.

By the way I know some way:
remove this line from manifest
category android:name="android.intent.category.LAUNCHER"

But it is not worked for me, because the GUI is not shown.

View 2 Replies View Related

Android :: Switching Activities / Passing Data Between Activities

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

Android :: Android - Accessing Single Database From Multiple Activities In Application

Dec 15, 2009

I have a todo list type application that stores all of the note data in a sqlite3 database. Each activity in the application needs access to the database to edit different parts of the data in real time.

Currently, I have each activity open its own DBManager object (the helper class I created to manage the database). This is causing problems though and I would like a slightly more global access solution so I don't have to keep opening/closing/creating a database.

I'm considering several options, and would like to hear pros and cons of each as well as other suggestions.

Singleton style. Have a wrapper class that returns a reference to the only database manager so any activity that needs it can use it.

Static Manager. Have the manager class be entirely static members and have it open the database on load. Easily accessible by anyone that needs it (which is everyone).

Merger between 1 and 2. I could make a database manager class that initializes the member singleton instance of the database and all of the data manipulation methods were static. Then I wouldn't even need a reference to the singleton to access the database.

View 3 Replies View Related

Android :: Too Many Activities Being Started When Launching An Android Application

Dec 24, 2009

You can see property action android:name= property is "android.intent.action.MAIN" and categoryandroid:name= is "android.intent.category.LAUNCHER" for all activities.When application starts up, it calls First Activity. Then calls useless Activity such as ThirdActivity or Second Activity.In this case, is my manifest.xml correct?Or, do I need to set another property to Second and Third activity? If so, what is that?I wonder manifest.xml file is right for my case.

View 3 Replies View Related

Android :: Launching Unknown Activities From An Android Application

Apr 5, 2010

I want to make an android application that shows a listing of applications (downloaded from the android market) and launches the one that the user selects. From what I've read, I'd have to use intents like this:

Intent intent = new Intent();
intent.setClassName(packageName, className);
startActivity(intent);

I just want to be able to launch the applications, not a specific activity that they could have.

My question is: How could I launch these applications if I don't know their packageName or className? or maybe, how could I get to know their className and packageName, if it's a closed source application that I didn't develop.

View 2 Replies View Related







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