Android :: Stop Launcher Activity From Starting Application

Sep 15, 2010

I have a enable and disable button. When this button is enable, user can launch my application normally. But when the button is in disable state, I don't want to start the application, that is the launcher activity should not start, but the icon for application will be there.When we click on the icon for application to launch it should not start.

Android :: Stop launcher activity from starting application


General :: 2.3.4 - Stop Application Auto Starting

Nov 15, 2012

I am using 2.3.4 and facing critical memory outage (in my galaxy S plus), reason being most of those applications I install keep on running in the background, when i kill them using some (Task Killer) they automatically kicks off and restart themselves again.

Is there anything like services (the way we have in windows) which i need to stop to restrict them to run automatically and at startups. I am new to Android.

View 2 Replies View Related

Android :: Change Application's Starting Activity

Sep 2, 2010

I have created the meat and guts of my application but I want to add a different activity that will be the starting point (sort of a log-in screen).

Couple questions:

1) I have a fairly decent handle on how to switch between activities (based on this article: http://www.linux-mag.com/id/7498) but I'm not sure how to go about creating a new one (with eclipse).

2) once I have a new activity created, how can I set it as the default activity of my application? I presume I could just change the name of the classes...but is there a more elegant way to handle that (maybe within the AndroidManifest.xml)?

View 1 Replies View Related

Android :: Activity As Starting Component For Android Application Necessary

Sep 3, 2010

Should Activity component be starting component for Android apps. Is this necessary to have some activity as the starting component?

View 5 Replies View Related

Android :: Starting Second Activity From Main Activity On Button Click

Dec 4, 2009

Need an example of how to create/start a new activity from the main activity. I have a button click event on the main layout. Originally I just used setContentView(R.layout.secondactivity); which brings up the layout but I don't think that is correct since the secondactivity class is not instantiated at this point yet. I have looked for such an example and can not find one.

View 3 Replies View Related

Android :: Launcher - Does Not Show Displayed Activity Log For Launcher

Aug 21, 2009

when I click on launcher it does not show displayed activity log for launcher, it shows it way before during boot up stage. why is this happening?

View 2 Replies View Related

Android :: Starting Map Activity From Normal Activity

Apr 25, 2010

I have a map app which works fine when its stand alone but it causes an unexpected error when I try to add it as part of another app. My current app which extends Activity tries to launch the map activity with the following lines of code Intent m = new Intent(this, HomeSetter.class); startActivity(m); I also have the xml setup correctly <activity android:name=".HomeSetter" android:label="Screen 4"> </activity> <uses-library android:name="com.google.android.maps" /> </application> However when I try to launch it crashes everytime. I've tried searching the net but I've had no joy in finding a solution You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe @googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

View 4 Replies View Related

Android :: Starting Activity Behind Current Activity

Oct 2, 2009

startActivity() displays the new Activity on top of the current one. But how to display it underneath instead? BTW, I'm starting an Activity from another application, if that makes a difference.

View 5 Replies View Related

Android :: How To Stop An App From Starting At Boot?

Sep 13, 2010

I would like to know if there is a way to lock (prevent) an application from starting.And i also would like to know if there is a way to prevent a service(application) from starting at boot of the device.i would like to know because i would like to create an anti-malware app.

View 1 Replies View Related

Android :: Need App To Stop Things Starting Up All Time On Phone

Aug 10, 2010

Is there any app that will allow me to stop things starting up all the time on my desire. something that maybe i can block apps starting up unless i want them to.

View 1 Replies View Related

Android :: Starting New Activity From Activity

Jun 9, 2010

When I was originally learning about Android a few months ago I swear I read something about a way to immediately launch an activity when starting a task. I am curious about this now because I need to display an intro screen on launch but I don't want the intro screen to be the root activity. Does anyone know if there is something like this and if not what is the best way to handle an intro screen?I tried googling for a few hours to find it but can't for the life of me.

View 1 Replies View Related

HTC Hero :: Stop Apps Starting

Aug 4, 2009

Anyway, there are apps that I'm not using (mail, footprints etc) that I'm not using - I use gmail - does that use the mail app? Is there any way to stop things running, seems a bit random that footprints would start for no reason!

View 7 Replies View Related

Android :: Starting Activity With FLAG ACTIVITY MULTIPLE TASK To See Multiple Instances

Feb 2, 2009

I am trying to launch an activity from another activity .. Within the com.android.SingleLauncher..

I have activity launch code as ..

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

I have set the android:multiprocess="true" in the AndroidManifest.xml of TargetSL I don't seem to see the multiple instances of TargetSL, which i am expecting ..

All i see is 2 process, where i was hoping to see an instance of TargetSL, for each launch that was invoked by the singleLauncher!

View 3 Replies View Related

Motorola Droid X :: Market Downloads Not Starting / Verizon Blaming Launcher Pro

Aug 17, 2010

So, I've been having issues with my Droid X and downloads in the Market not starting, I've had to do a few data resets to fix the problem. I recently called Verizon complaining and they sent me out a replacement Droid X. The first app that I installed was Launcher Pro and then downloaded quite a few more apps. A few hours later I tried download more apps and they have again gotten stuck on "starting download". I called Verizon tech support and explained what was going on, he then proceeded to tell me that he can guarantee that Launcher Pro is the cause of the problems and that I need to delete it. He claims that it does not work properly with the X. I told him that I got an X on July 1 and did not have a problem with the Market until recently and he again said that LP is causing the problem. Has anyone else heard of this, it makes no sense at all.

View 6 Replies View Related

Sprint HTC Hero :: Music Player Won't Stop Starting On Its Own

May 2, 2010

I use the bluetooth audio in my truck on my drive to and from every work every day with Iheartradio on. Every time I receive a call when I hang up my phone automatically starts the music player and just starts playing songs. It's extremely annoying. I even deleted all my music off the phone hoping this would stop it, and now it just plays ring tones. I've used an app killer, etc. and it still does it.

View 9 Replies View Related

Motorola Droid :: GTalk Service Starting All By Itself / Stop It?

Nov 23, 2009

So sometimes I'll go into my contacts and notice that some of them have the green ball lit up telling me that they are online in gtalk. Now I am not signed onto gtalk... but yet somehow I see that in my running services that GTalkService is running.

I can only assume that its eating away battery trying to see how is online and not. I certainly don't need this info unless I wish to go online myself... in which case I would actually go into the gtalk app.

ANyways, obviously i've been killing it in the running services, but it just comes back all on its own. ANy idea why or how to stop it?

View 9 Replies View Related

General :: Stop Some Applications From Starting On System Startup?

Jul 10, 2012

Is there any way to stop some applications from starting on system startup? I means not killing them. just don't let them to start.

View 4 Replies View Related

Android :: Starting Activity With Tabs

May 7, 2010

I have four activity in a Tab and after the user clicked on the list I would like to start another one activity, but I can't use startActivity(Intent), because then I lost the TabHost view, and I get an activity witch is reserving the full screen:( So the user won't be able to click on the other tabs. What should I use? BroadCastReciver or What? If anyone have any good idea please help on me.

View 4 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 :: Error When Starting Activity

Mar 22, 2010

I'm starting an activity when a button is pressed, and normally (in other apps) haven't had an issue. But when I press the button in this app, I get an "unable to marshal value" error.Exact(ish) error from LogCat:
03-22 02:49:02.883:
WARN/System.err(252):
java.lang.RuntimeException: Parcel:
unable to marshal value
{CLASSNAME}@44dcf1b8
I feel that this might be related to the extra that I'm passing to the intent. I'm passing an ArrayList as a serializable to this new intent. My concern is that the data structure that the ArrayList contains isn't being serialized (as it's a personal data structure).Is the array list content data structure causing this? Something else that I'm missing?

View 1 Replies View Related

Android :: Starting An Activity For Different Third Party App

Aug 19, 2010

I'm working on an app and I want to integrate the Last.fm app into it. Basically, when someone is looking at an artist in my app, I would like to have a button that they can tap to open up Last.fm application with the artist's information.

This intent works, but it loads a menu asking which app I would like to use (Browser or Last.fm):

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

However, I just want to start the Last.fm app and skip the dialog asking which app to use, I thought maybe using the setPackage() method would work like this: i.setPackage("fm.last.android");


But it causes the app to crash:

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

Is it possible to just start the Last.fm app?

Here's a copy of Last.fm's AndroidManifest.xml for reference.

View 1 Replies View Related

Android :: Error When Starting A Tab Activity?

May 16, 2010

I followed the directions verbatim in this Android tutorial, copying/pasting the code from the site to my app. http://developer.android.com/resources/tutorials/views/hello-tabwidget.html

However, when I try to run in the Android emulator, I get the error: "The application Hello Tab Widget has stopped unexpectedly. Please try again."

I tried debugging by introducing a breakpoint in the first line of the onCreate method, but the error occurs before the breakpoint is even hit. Any idea of what is going wrong, or any other way I can debug this issue? I am using Eclipse.

View 2 Replies View Related

Android :: Tabs - Starting A New Activity

Dec 31, 2009

I have 4 Tabs in a TabHost...let them be A,B,C,D.... now each one is just an index page and clicking on any of them shows a different activity...

The problem is that i need to start another activity wen user selects something from the content displayed in the tab... The other activity should also be displayed in the parent tab itself... is it by any chance possible or i'll have to try some other way around?

View 2 Replies View Related

Android :: Starting An Activity In OnStart

Apr 14, 2010

I'm trying to start a floating activity from onStart to retrieve some info from the user right when the initial activity begins.

I have the following:

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

And callProfileDialog() is just:

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

ProfileDialog.class returns a String from an input box. If the result returned is RESULT_CANCELED then I restart the activity.

The problem I'm having is that when the program starts, the screen is just black. If I hit the Back button a RESULT_CANCELED is returned then the initial activity shows as well as the floating activity (since it recalled itself when it got a RESULT_CANCELED). Why can't I get the activities show by calling ProfileDialog.class from onStart()? I got the same result when I called it at the end of onCreate() which is way I switch over to use onStart().

I have also tried the following:

CODE:.........

But this doesn't work either. It all works fine once I hit the back button but without doing that, it's all black.

View 3 Replies View Related

Android :: OnRecieve Starting Activity?

Jun 23, 2009

I would like to know the reason behind this behaviour.I have a broadcast reciever and in onrecieve i am trying to start an activity,however if i am not giving the flags it is giving an exception .On declaring the flags it is working perfectly fine,why?

I was under the impression that onRecieve runs in the main UI thread and we can launch an activity in onRecieve.Error given by the emulator is self explanatory but still why do i need to create an activity in a new task(only in onRecieve)?

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

View 4 Replies View Related

Android :: Name Of Droid App Taken As Of Starting Activity / Why Is This?

Oct 18, 2010

In my manifest file, I have given the application name as MyApp and the name of the starting activity as Main Menu.code...

When I see the app icon in the default menu screen of android, the name shown is Main Menu. Why is MyApp not the name shown for the app?

View 2 Replies View Related

Samsung Epic 4G :: Hotspot Service Running / Stop It From Starting?

Sep 18, 2010

Ok, so i go to check running services and i see that sprint hotspot is running. i have not started it since the day i bought the phone. i have no intention of using it, for now. why is it running and how can i stop it from starting? is it supposed to be running?

View 2 Replies View Related

General :: Stop Apps From Starting Automatically / Overriding App Permissions?

Nov 2, 2012

Some backround on this post. I own 2 android devices, a Samsung Galaxy i9003 and since yesterday, a Nexus 7.

I have ditched my Galaxy as a phone and gone to Blackberry due to battery issues, and apps on my Samsung draining the battery from full to empty in the space of a few hours, so I am now very careful about what I install. Since removing almost all the apps (and the SIM card) from the galaxy, I now have a battery live measured in days (including watching video) rather than hours just sitting doing nothing...

I understand the use of apps auto-starting themselves to provide notifications, such as Facebook, Twitter & Accuweather, but even though I do use these apps for what they are, I do not need them running all the time to provide a notification: The added "work" in starting the app to check updates is worth the extra battery life I get, as if I leave things alone to be automatically managed, my battery life is divided by 10... and having to flip the phone in and out of flight mode is a pain... (especially when you forget to activate it in the afternoon after charging and at 3 AM in the morning you have no battery left to call a taxi...)

So, what I would like to understand is this: Where does android store the information on autostarting applications? Even if I use a task killer, some apps will restart later on. Android must have some sort of task scheduler to restart registered apps after a certain amount of time has passed or on certain events.

how Android manages this list - and more importantly, how to change it, and also if there is any way to override the registered permissions of an app once it has been installed?

View 9 Replies View Related

Android :: Progress Dialog While Starting New Activity

Feb 9, 2010

this button is shown on my start activity. After pressing it a new activity will be launched but this takes some time cause on initialization of that new activity some data is gathered from the Internet. This works half. The progress dialoge is shown but the progress wheel is not spinning.

Can somebody tell me why this happens?
Button b4 = (Button) findViewById(R.id.Button01);
b4.setOnClickListener(new View.OnClickListener() {
public void onClick (View view) {
final ProgressDialog pd = ProgressDialog.show(pak.this,
"", "Working..", true);......................

View 1 Replies View Related

Android :: Previous App Launches Not Starting Activity

Jun 2, 2010

I need a way to detect if this is the first time the user is ever opening the application, if so, start an activity. Then all previous application launches wouldn't start that activity. I've read in a few places about using preferences to accomplish this. Anyone got any ideas?

View 2 Replies View Related







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