General :: App That Run Shortcut (activity) When Launched

Jul 21, 2012

Various parts of the Android system or Android apps are designed to launch a program, but aren't capable of launching an application shortcut. For example, they're willing to run a timer application, but they aren't willing to run its "start timer now" shortcut. One example is the samsung ICS lock screen, which is neat in other respects but suffers from this really lame limitation.

Is there an app that can be configured to run another app's shortcut? For example, I could configure the lock screen to launch "Fast Shortcut Helper", and fast shortcut helper will have already been configured to run the "start timer now" shortcut.

General :: App that run shortcut (activity) when launched


Android :: Get Instance Of The Launched Activity

Jul 19, 2010

Is there any way to get the instance of a launched activity(or any view in that activity )of a application in another application.

View 1 Replies View Related

Recovery State Of First Activity Launched?

Jan 15, 2010

I have an application that launch a thread when a ToggleButton is pressed, but if I press the home button, a new activity is started (I can return to the first activity if I press the back button), but I want to recovery the first activity launched state, which have the reference of the initial thread.

This is my code:

org.test.test.java:

////////////////////////////////////////
package org.test;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
import android.widget.ToggleButton;

[code]....

View 5 Replies View Related

Android :: Recieveing A Notification When An Activity Is Launched

Jun 30, 2010

Is there a way of recieving a notification of some sort when a activity is launched. I'd like to monitor which applications are used and how often. Is is possible to register for some broadcast telling me when an application is launched, installed, unistalled etc? I believe I found a discussion or solution to this yesterday when I was looking for something else, but I'm not able to find it today.

View 3 Replies View Related

Android :: BroadcastReceiver To Listen For Activity Being Launched

Jun 22, 2010

I am wondering whether is possible to use a BroadcastReceiver to listen for an Activity being launched. I have no control of the Activity I need to know about as it is from the Android platform.

View 3 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 :: Detect When Another Activity Is Launched Or Loses Focus

Dec 3, 2009

Like the title says, I need to detect when my app loses focus because another app is launched (Phone call comes in, or user hits Home etc.).
Overriding Activity.OnStop does not work because that is called even when switching activities within my app.

View 3 Replies View Related

Android :: Task Activity Stack Always Reset When Launched From Home

Mar 24, 2009

I am just starting on an Android app and I am puzzled about why my Task activity stack is being reset any time the application is launched from the Home screen. I used the ADT tools to create the application in Eclipse. The main activity is ".UserLaunch" and it starts the activity ".About" when the user presses a button. If the user then presses HOME and then relaunches the app, .UserLaunch is displayed and is the only thing on the stack.

.UserLaunch has the launchMode singleTask. .About is standard. According to the documentation at http://developer.android.com/guide/topics/fundamentals.html#lmodes: "However, a "singleTask" activity may or may not have other activities above it in the stack. If it does, it is not in position to handle the intent, and the intent is dropped. (Even though the intent is dropped, its arrival would have caused the task to come to the foreground, where it would remain.) "The Task stack should be brought to the foreground and .About should still be displayed. I added Logging to all of the lifecycle events (edited to remove timestamps and shorten DEBUG/ and INFO/ to D/ and I/) and you can see that when HOME is pressed, .About cycles through onPause and onStop (as expected). Then when the app is again launched, .About is destroyed and .UserLaunch is restarted D/UserLaunch:(670): onCreate() D/UserLaunch:(670): onStart() D/UserLaunch:(670): onResume() I/ActivityManager(52): Displayed activity com.cequint.cityid/.UserLaunch: 4910 ms I/ActivityManager(52): Starting activity: Intent { comp= {com.cequint.cityid/com.cequint.cityid.About} } D/UserLaunch:(670): onPause() D/About(670): onCreate() D/About(670): onStart() D/About(670): onResume() I/ActivityManager(52): Displayed activity com.cequint.cityid/.About: 1031 ms D/UserLaunch:(670): onStop() I/ActivityManager(52): Starting activity: Intent { action=android.intent.action.MAIN categories= {android.intent.category.HOME} flags=0x10200000 comp= {com.android.launcher/com.android.launcher.Launcher} } D/About(670): onPause() D/About(670): onStop() D/dalvikvm(670): GC freed 413 objects / 34128 bytes in 72ms I/ActivityManager(52): Starting activity: Intent { action=android.intent.action.MAIN categories= {android.intent.category.LAUNCHER} flags=0x10200000 comp= {com.cequint.cityid/com.cequint.cityid.UserLaunch} } D/About(670): onDestroy() D/UserLaunch:(670): onRestart() D/UserLaunch:(670): onStart() D/UserLaunch:(670): onResume() Here is the relevant section of the Manifest: <application android:icon="@drawable/icon" android:label="@string/ app_name"> <activity android:name=".UserLaunch" android:label="@string/app_name" android:launchMode="singleTask" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".About" android:launchMode="standard"> </activity> </application> Anyone have any ideas why this is always resetting the Activity Stack?

View 11 Replies View Related

Android :: Droid Instrumentaion : Go Back To A Previously Launched Activity?

Feb 19, 2010

Is there anyway to go back to a previously launched Activity while running an Instrumentation test? Currently, when I use sendKeyDownUpSync( KeyEvent.KEYCODE_BACK);, this forces my test to exit, rather than go back to the previous Activity.

View 2 Replies View Related

Android : Multiple Activity Instances Launched By Same Intent. Bring One Uniquely To Foreground?

Nov 12, 2010

I'm struggling with my app that launches multiple instances of the same Activity using the same intent. My main activity is of class type A and it does a startActivity() of two children that are of the same class type B. So we have B1 and B2 launched. If B1 and B2 are both paused (by pushing back button and making sure finish() is not invoked on them so they are truly paused), how can A uniquely bring either B1 or B2 to the foreground again? I do want to launch a new B activity. I want to uniquely bring B1 or B2 to the foreground.

so both B1 and B2 were created like this... Intent intent = new Intent(context, B.class); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent);

Now I want A to bring B1 (or B2) to the foreground/front so I use the below code, but how do I distinguish B1 or B2 when starting the activity? This only brings the last instance of B that was on top to the foreground.

Intent intent = new Intent(context, B.class); intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT); startActivity(intent);

I've tried keeping around references to B1 and B2 and doing something like this, but this also only goes to the last instance of activity class B that was on top...

Intent intent = new Intent(B1context, B.class); intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT); B1context.startActivity(intent);

I even tried this, but it still doesnt get me my unique B1 or B2... Intent intent = B1.getIntent(); // i.e. the original intent that started me startActivity(intent); // still only brings to front the last B that was on top.

View 3 Replies View Related

Android :: How To Set A Shortcut Key To Launch An Activity?

Oct 21, 2009

How to set a shortcut key to launch an activity ? Lets say I have an app "TestApp". I want to set a shortcut key (e.g alt + T ) to launch activity of TestApp. Is there any way to set such shortcuts to android apps?

View 3 Replies View Related

General :: Add Shortcut To Any App In Status Bar?

May 3, 2013

There are mods having a shortcut to 'recent apps' besides settings button in expanded status bar. How do I add shortcut of a user app instead of recent apps shortcut? For example I want walkman app's shortcut there. Is it possible to add it? If yes, how to do so.

View 2 Replies View Related

General :: CM 10 - Can't Add Shortcut On Homescreen

Sep 12, 2012

I can't add a shortcut to a Phone app (it's the app where you enter dial numbers, call someone). Need it on my home screen, but there wasn't it when flashed the rom, in drawer too. And no options which can add it. I'm using CM 10.

View 1 Replies View Related

General :: Shortcut On Application Menu

Dec 22, 2012

create an (application) shortcut on the application menu (not on the desktop...this I know)? Samsung Galaxy S2 - GT-I9100 Android 4.0.4 Kernel 3.0.15-105684 (non root).

View 3 Replies View Related

General :: Create Shortcut To Certain Setting In JB?

Nov 24, 2012

Is it possible to somehow create a shortcut to a specific setting with JB either with tasker or some other app? I'd like to quickly be able to get to the setting where you can quickly enable/disable notifications for an app.

HTC6435LVW

View 2 Replies View Related

General :: Shortcut Directly To Dialer Pad?

Feb 6, 2014

I would like to setup a shortcut that when I press the icon it goes directly to the phones dialer pad. I had a shortcut on my nexus 5 but cant remember how it was setup.

View 2 Replies View Related

General :: USB OTG Unmount Widget / Shortcut?

Jan 9, 2013

Having to go in settings/storage everytime you wanna safely unmount your USB OTG drives is quite annoying... Is there a way to get a shorcut for that (widget or else) on JB and former Android versions?

View 1 Replies View Related

General :: Delete Shortcut Duplicate

Jan 1, 2014

I need create a shortcut when the app is installed and the code works fine, the problem is that when I open the app view another shortcut.

Example: If I open 20 times the app, this created 20 times shortcut

@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

[Code] ...

View 1 Replies View Related

Detect If Camera Is Launched?

Jan 29, 2013

I'm creating an app that launches the video camera using the following code...

[HIGH] Intent intent = new Intent("android.media.action.VIDEO_CAMERA");
startActivityForResult(intent, 1);[/HIGH]

I only want to launch this if the video camera is not open. I've run into the issue of having multiple video camera screens open.

View 1 Replies View Related

General :: App Or Widget Or Shortcut To Lock The Screen?

Jan 27, 2013

I'm looking for an app or widget or shortcut or something that will force the phone to lock. Right now the phone locks after 10 minutes. However, if a situation arises where I need to lock the phone immediately there's no option to do that. There is an option under Settings to trigger on power button push. I'm not a huge fan of that since I use the power button to switch off the phone when I don't need it (to save battery). If nothing exists I might try the power button option.

I have a Verizon Motorola Droid Bionic with Android version 4.0.4.

View 5 Replies View Related

General :: HTC - Homescreen Webapp Shortcut Icons

Nov 14, 2011

This question might be specific to HTC phones, but I'm not sure. I have various bookmarks for sites with decent webapps that I'd like to have as icons on my homescreen. What I would like is for their icons to be specific to the site (like iOS or BlackBerry), but instead what happens is I get the ugly red HTC Sense bookmark icon for each of them. Any way to get the site-specific icons to appear (or if it's even possible)?

View 3 Replies View Related

General :: App Shortcut From Launcher Disappear After Reboot?

Apr 9, 2012

I moved those apps to my SD Card.

And when I reboot it, the shortcuts disappear.

Is there a way to not make them disappear? (Don't want moving them back to phone memory.)

I have Xperia Active.

View 4 Replies View Related

General :: Add A Button Or Shortcut To Mono Audio?

May 21, 2014

I'm running galaxy s4. baja rom by Surge1223 which uses Wanam Xposed framework. SS 3.71 on MJ7. Is it possible to put a button in the pull down tab for switching headphones between stereo and mono? Usually at work I only use one ear bud and need mono but otherwise I listen with 2 buds in stereo. I'm tired of going to settings>device>accessibility then scroll and check the box every time.

View 1 Replies View Related

General :: Run ADB Command From Home Screen Shortcut?

May 14, 2013

The backstory first:

I have a Nexus 10. I like to plug it into my TV via HDMI and watch videos or play games, or what have you. Since the aspect ratio doesn't match the TV I get black bars on the sides. In a command line, one can type

Code:
am display-size 2560x1440

to change the resolution of the screen and get rid of the black bars on the TV completely (at the cost of adding black bars on the top and bottom of the tablet.)

Code:
am display-size reset
Sets it back to normal.

Rather than typing this into a terminal /every time/ I want to do this, is there a simple widget or app that will let me set up a shortcut on the homescreen that I can just click on to toggle instead?

View 3 Replies View Related

General :: How To Open 2 Apps At Same Time With Only One Shortcut

Nov 4, 2012

how to do desktop shortcut to open two apps at same time? When I use Tomtom (or other navigator) also I open Radardroid that alert me from traffic cameras. So I want to open both with only one click.

View 9 Replies View Related

General :: Create Shortcut To APN Settings Menu?

Mar 16, 2013

I have two apn's:

-> MMS
-> MMS/Internet

i've managed to let android let me choose the APN which i want, but to go to the menu i have to do a lot of clicking.

how to create a shortcut to go directly to that sub menu?

View 2 Replies View Related

Android :: Get Notification When A Application Is About To Be Launched

Mar 16, 2009

I need to execute some operation when the specific application is launched, it is possible to get notification when an application is to be launched, or after it is launched?

View 11 Replies View Related

Android :: Emulator Not Getting Launched With 2.1 Platform

Jan 24, 2010

I have updated my android sdk to 2.1 version and was trying to build one application on that target.My application was bulid properly bt i am unable to launch tha emulator with the target 2.1. Its showing the message as:- "System image file too large for device's hardware configuration <74MB

View 2 Replies View Related

Android :: Detecting When Launched By An Alias

Sep 2, 2009

I'm trying to figure out how my Activity can detect if it was launched by an alias as opposed to by the main icon.

Is it possible to do this?

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

alias1 and alias2 appear as expected in the Launcher, but I don't see any way in multipleEntryPointTestActivity to tell which of these icons launched the application.

View 2 Replies View Related

Android :: ResolverActivity Or ChooserActivity Getting Launched

Aug 31, 2009

I am studying android's code, I can find how ResolverActivity or ChooserActivity is being launched? how do they get launched?

View 4 Replies View Related







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