Android :: Determine What's Active Package Or Activity Running?

Aug 16, 2009

I want my background service to determine the active package or activity running.Is this possible?

Android :: Determine what's active package or activity running?


Android :: How To Close Fore Ground Activity From Active Activity?

Sep 28, 2009

I created an application which is asynchronously communicating with the server. When the application makes a server request a new dialog (activity) with "loading" notification is created. The main activity implements methods for handling server responses and I would like to close the foreground activity when the main activity receives the answer from the server.

View 1 Replies View Related

Android :: Determine When Application Is Running

Jan 5, 2010

I have an application that uses a Service to fetch data in the background both while the application is running and when it's not. When it is not running i would like to show a notification when there is new data, but not when the app is running. How do i determine in my service whether the app is running or not?

View 6 Replies View Related

Android :: Determine If Running On Rooted Device

Jul 9, 2009

My app has a certain piece of functionality that will only work on a device where root is available. Rather than having this feature fail when it is used (and then show an appropriate error message to the user), I'd prefer an ability to silently check if root is available first, and if not,hide the respective options in the first place.

View 6 Replies View Related

General :: How To Determine ROM / Firmware Running On Android Phone

Nov 8, 2012

what is the way to determine what ROM / firmware is running on my Android phone? And what is the best way to determine what upgrades are available for it?

I have a Samsung SIII that is parallel imported. Looking at the About Device info, it shows:

Model number = GT-I9300
Android version = 4.1.1
Baseband version = I9300XXLH1
Kernel Version =
3.0.31-41218
se.infra@SEP-71 #1
SMP PREEMPT Tue Aug 14 01:19:41 KST 2012
Build number = JR003C

View 4 Replies View Related

Android :: Ststem To Determine App Is Visible On Screen / Want To Disable App Running Gps

May 4, 2010

I need a system to determine if my application is visible on screen. My app is running gps, network request, etc ... and I want to disable them when my app is not running or visible on screen

Do you know how to do that?

View 4 Replies View Related

Android :: How To Determine If Activity Is On Screen?

Mar 4, 2010

I am planning to have a Service send a broadcast which a BroadcastReceiver will act on and I would like it to create a Notification if an application is not currently on screen, but if the application is on screen (ie. showing to the user) then I would like to offer a Dialog and not create the Notification.Is it possible to determine if an Activity or application is currently on screen?

View 5 Replies View Related

Android :: Running Different Actives In Same Package?

Feb 13, 2009

I am using eclipse to run the simulations and I can't get the simulator to run anything other than the default activity. When I created the android project, eclipse automatically created a default class within that package, and it seems like I can't run anything other than that class. I created another activity in that package, but I can't seem to get the simulator to run that instead.Also I was wondering if we can have class constructors for activity classes?

View 7 Replies View Related

Android :: Determine If A Specific Activity In An Application Can Be Launched

Jun 9, 2010

Applications can have any number of launchable activities. I know how to get the list of these activities via PackageManager.

Is there a way to determine which activities can be launched via startActivity?

For example, the Documents To Go app has different activities that will start Word, Excel, Powerpoint, PDF, etc... I am able to launch all o these just fine.

However, it also contains some activities that I am not able to launch with startActivity... If I attempt to do this I get a SecurityException.

I want to be able to determine which activities I can safely launch and which I cannot so I only present the user with a list of activities that I can safely launch from within my application...

View 1 Replies View Related

Android :: How To Determine View Size Right After Activity Has Been Started?

Feb 19, 2010

I want to do some data processing (in a thread) right after my main Activity starts. For that data processing to be started I also need to know a visible size of my main View (which is a LinearLayout currently, but whatever).I wonder how to do that. I.e. I wonder what is the entry point (callback?) I should use to be sure that my main View has been layed out, so i can use view.getWidth/getHeight? Is creating a custom View and reimplementing it's onSizeChanged() - the only way? In this case how should I properly describe it in my xml layout file? (it will contain some child views)

View 1 Replies View Related

Android :: Keeping Screen On While Activity Active

Jul 14, 2009

I have a map activity for which I would like to have the screen turned on as long it's active (the app consists of one activity only). When the activity is paused or stopped I want to return to normal on/off mode. Keeping the screen on works fine while the app is running but when I exit the app the screen stays on as well. What am I missing?

View 3 Replies View Related

Android :: Notification Bar Open Last Active Activity?

Nov 3, 2010

I am creating like timer application and when I start timer I have option to go to android Home or start any other activity .When I start timer I set a notification bar icon and if i use some other application (mean go from started timer activity) and now I need to go to back to my previously started timer activity by clicking on notification icon?When I click I am starting a new instance timer activity , not the previously started timer activity and if I then click back button it show me a previously timer activity .Question is: How to call previously started activity trough notification bar , not to start new instance of that activity?

View 2 Replies View Related

Android :: Restoring Active Activity While Resuming Application

Apr 7, 2009

I have two activities running: MainActivity and ChildActivity. Whenever the user clicks in the button in MainActivity, the ChildActivity is launched. What I want to do is this:When the active activity is the ChildActivity and the user clicks the home button then relaunch the application (like opening from the beginning), I want to see the ChildActivity instead of MainActivity that is launched. However; This is happening only when the user clicks from recent activities window. (the window opened when you long press the home button).I had some suggestions actually work arounds and I tried to manipulate onStart, onRestart, onResume, onStop, onDestroy events. But, they didn't fully solve the problem. There should be a smart way out there.

View 8 Replies View Related

Android :: Restoring Active Activity / While Resuming Application

Apr 7, 2009

I have two activities running: mainActivity and childActivity. Whenever the user clicks in the button in mainActivity, the childActivity is launched. What I want to do is this:When the active activity is the childActivity and the user clicks the home button then relaunch the application, I want to see the childActivity instead of mainActivity that is launched.I had some suggestions actually work arounds. I tried to manipulate onStart, onRestart, onResume, onStop, onDestroy events. But, they didn't fully solve the problem.

View 3 Replies View Related

Android :: How To Refresh List View When Activity Still In Active Mode

Jul 24, 2010

I have a ListView that contains some data from sqllite table.the table is updated by some other process, and I would like to refresh it's data.The strange thing is that if I open another activity, then go back -it WILL refresh itself.

View 2 Replies View Related

Android :: Start An Activity In Another Package

Jan 25, 2009

My application has 2 packages because one is shared with my other applications. I want to start an activity of the shared package.

I tried the following: Intent intent = new Intent(); intent.setClassName(shardedPackageName,sharedActivityName); startActivity(intent);

It throws an ActivityNotFoundException and suggests that the activity might not be in the manifest. But how do I list an acitivity from another package in the manifest?

View 5 Replies View Related

Android :: Starting Activity By Package Name

Mar 25, 2010

I have the code to get the list of packages installed in phone. I have represented the list in the form of Array List, below is the code snippet. But upon clicking in the package name I want to start that application, but how do I get the respective class name and package name to run? Is there any other method which I can try to start an application? arrayList<String> PackageNames = null; List<PackageInfo> lis = pm.getInstalled Packages(GET_MINIMAL); Pkgs = (ListView) findViewById(R.id.package_list); for (Package Info pi : lis)packages.put(pi.packageName, pi); PackageNames = new ArrayList<String> packages.keySet()); Collections.sort(PackageNames); PackageNames.add(0, "All"); pgs.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple _list_ item_1, PackageNames)); Pkgs.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> arg0, View v, int pos,long rowId) { Intent i = new Intent(); i.setComponent(new ComponentName(class name,packagename)); startActivity(i); I have tried intent to start the activity, but don't know the class name and package name to pass in the ComponentName() to start activity.

View 2 Replies View Related

Android :: Access One Activity From Another In Same Package?

Feb 25, 2009

I have 5 activities in my project. How can i check the condition of 2nd activity from 4th activity? Based upon this condition i want to do something. If anybody know this please tell me. Am waiting for the response.

View 2 Replies View Related

Android :: Start Activity When Main Activity Is Running In Background

Jan 10, 2010

I created an application which enables the user to set whether he wants to receive notification while the application runs in background mode. If the notifications are enabled an activity should be started (the dialog should appear on the screen).

I tried to enabled it the following way:

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

This is the method from main activity. When onPause() is executed isRunningInBackground is set true.
When I tried to debug it when the main application was running in the background the line

startActivity(intent) had no effect (the activity didn't appear).

Does anyone know how to midify the logic in order to start an activity from the main activity when the main activity is running in the background (after onPause() is called)?

View 1 Replies View Related

Android :: How To Check If Activity Is Current Activity Running In Screen

Jul 16, 2010

I used Toast to make notification, but it seems it will appear even its activity is not in the current screen and some other activity has been started.I want to check this situation, when the activity is not the current one, I'd not send the Toast notification. But how to do ?

View 1 Replies View Related

Android :: Activity Is Unable To Start Service In Same Package / What I Am Missing?

Jun 9, 2009

I have a service class my.app.MyService that I'm attempting to launch from my.app.MyActivity as follows:

Intent svc = new Intent( this, MyService.class );

The manifest contains the entries:

<uses-permission android:name="android.permission.ACCESS_BACKGROUND_SERVICE" />

<service android:name =".MyService" />

LogCat gives the message:

"Unable to start service Intent { comp={"my.app/ my.app.MyService" } } : not found"

Could someone kindly let me know what I am missing?

View 3 Replies View Related

Motorola Droid :: Beautiful Home Running By Itself With Sweeter Home Active

Jan 17, 2010

One thing that's bothering me about SH... I don't use Beautiful Home anymore. In fact, I've removed all beautiful widgets from all my home screens and home screen replacement apps. Yet for some reason I get the weather thing in my status bar as if I had Beautiful Home running. Which means it's somehow being run without being told to. And it only does this with Sweeter Home.

View 13 Replies View Related

Android :: Package Manager Get Size Of An Installed Package?

Feb 12, 2009

i work on custom Application Manager and try to get the disk usage of installed package. So PackageManager.getpackageSizeInfo was removed from SDK on 0.9->1.0 update android.content.pm. PackageStats(String pkgName)(cacheSize, codeSize, dataSize) returns always "0" Size of phys. file (java.io.File) in "/data/app" seems wrong/not completely. Has anybody any solution to get the total disc space used by an installed package?

View 4 Replies View Related

Android :: Set Focus On Running Activity

Mar 24, 2010

I have an Activity that keeps running after the Home button is pressed (naturally) and of-course the focus is in the home screen, and when the running process ends I need to restore the focus on that activity. In more PC expression, I need to maximize the application.

View 1 Replies View Related

Android :: How To Check Activity Is Running Or Not?

Jul 15, 2010

I want to show a progress dialog on the screen if the activity is showing. But when the activity window is not showing, it will not do anything. Please suggest, how do i check whether my activity is showing or not?

View 2 Replies View Related

Android :: Keep Activity Running While In Sleep Mode

Jan 20, 2010

I have a app that needs to run a command even if the phone goes to sleep. I have it running as a service but it runs randomly when. Is there a way to have the service run even when the phone is sleeping.

View 3 Replies View Related

Android :: Running Activity From Local Service

Sep 13, 2010

I'm trying to create a program with a service that runs every 10 seconds, puts the camera preview, taking a picture and then leaving the user to continue his work (closing down). Currently I have two problems:

1. After I'm taking the picture, the preview still there. There's no function like close() to return to the previous activity. How can I return to the previous activity?

2. I'm trying to run the above described activity from the run() function (from the timer class that execute the run() function every 10 seconds). When I do that, a runtime exception is raised. But when I start the above described activity from a button clicked (not from the timer) it works fine.

View 4 Replies View Related

Android :: Know Whether Activity / Service Running Or Stopped?

Apr 13, 2010

When I do various operations on bluetooth application ... scanning, renaming and discoverable after some time non of these works... if I try to change name, it is not reflecting. is it problem with Activity/service? How to check whether these are still running? How to debug such cases?

View 2 Replies View Related

Android :: Send Intent Only When Activity Is On Top Running

Apr 20, 2009

I have an activity that uses a service. While the service is running (it sends some stuff in background) I display a progress bar and disable the send button.

Now I created an Intent to update the interface after the send service has finished. How can I do this only if the activity is still on top? I tried to figure out this in the service with:

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

View 4 Replies View Related

Android :: Running Activity From Remote Service

Apr 29, 2010

Iam trying to run an activity from diffrent package from my remote service:

This is how i implement the service.java

CODE:....

Ive also added a line in the manifest of the service:


The service works fine, but i cant run the activity -> PushActivity which is in diffrent package of diffrent application, this is the error:

Activity not found Exception: No Activity found to handle Intent {act=com.pushservice.PushServiceActivity flq=0x10

View 2 Replies View Related







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