Android :: Get Informed Whenever An Application Is Started / Created?
Nov 16, 2009
I'd like to write sthg like a logger for my Android phone where I log whenever an application/activity is started respectively created. So it's not only about my own stuff but about all the stuff that gets started on the phone. Is there sthg like an intent flying around or any kind of stuff that I could catch?
View 6 Replies
Aug 14, 2010
I would like my app to do something when another application is opened.
The current approach I have taken is to create a broadcast receiver that monitors all
android.intent.action.MAIN
events, but either I am not doing it correctly or the way I am going about it is incorrect. The section of the manifest looks like this code...
I included the launcher category just as a test. GetApp currently is only set to make a log entry when called.
View 1 Replies
View Related
Mar 4, 2010
Some times after installing my application and first running my application is creating two processes as follows.
CODE:................
View 4 Replies
View Related
Aug 26, 2010
My music application constantly plays music in the background, however I'd like to be able to detect when another application starts playing audio (such as the YouTube app) so I can pause/mute/stop the audio in my application. This will allow a user to continue browsing the web whilst listening to music, but then if they wish to watch a video at any point, they can do so without audio conflict.
One solution might be to listen for a broadcast which states when an application begins using the AudioManager. Does such an Intent Action exist? Edit: As in the answer provided below, there appears to be a method of detecting the loss of audio focus in 2.2 with AudioManager.OnAudioFocusChangeListener.
View 1 Replies
View Related
Sep 8, 2010
I want my application to be started whenever the phone is turned on or restarted.
View 1 Replies
View Related
Nov 10, 2010
I'm developing an Android application that consists of:
a lightweight background service that logs events to a DB
a heavier GUI application that summarizes these events and displays graphs.
I'm having trouble creating the service part, though. The graphic application can use quite some RAM, and when it goes to the background, the OS closes it after some time of not being used.
The problem is, when the application gets shut down, so does the service. This is bad because this keeps me from recording further events. I don't care if the application gets terminated, but the service needs to keep on running.
I have tried numerous ways to keep the service alive, like having it use threads or a differently named process than the main app. Nothing has worked, and I have found no help on any of the android developer pages or forums.
View 3 Replies
View Related
Aug 3, 2009
I created an application which creates and stores files to sdcard. Is there a way to bind the folder with application in order to delete all files when the user runs uninstall on android device?
View 2 Replies
View Related
Aug 10, 2009
In one android application, I created a database file in data/data/com.rams/databases/dbfilename.
If I created a second application with the same package name (com.rams) and I access the database file created with my first application, the second application is able to access the database contents.
How can I secure the database file created with my first application?
View 1 Replies
View Related
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
Apr 18, 2010
Is it possible to stop all started services when the user hits the Home Button? I use:
startService(new Intent(ClassName.this, ClassName2.class));
stopService(new Intent(ClassName.this, ClassName2.class));
This means I will have to somehow add the 'stopService()' for 7+ of my app classes
I've researched this topic and I think there's 'onTerminate' but still not sure how this should be implemented.
View 2 Replies
View Related
Sep 23, 2010
I am trying to apply an animation to a view in my Android app after my activity is created. To do this, I need to determine the current size of the view, and then set up an animation to scale from the current size to the new size. This part must be done at runtime, since the view scales to different sizes depending on input from the user. My layout is defined in XML. This seems like an easy task, and there are lots of SO questions regarding this though none which solved my problem, obviously. So perhaps I am missing something obvious. I get a handle to my view by: ImageView myView = (ImageView)getWindow().findViewById(R.id.MyViewID);
This works fine, but when calling getWidth(), getHeight(), getMeasuredWidth(), getLayoutParams().width, etc., they all return 0. I have also tried manually calling measure() on the view followed by a call to getMeasuredWidth(), but that has no effect. I have tried calling these methods and inspecting the object in the debugger in my activity's onCreate() and in onPostCreate(). How can I figure out the exact dimensions of this view at runtime?
View 4 Replies
View Related
Jun 8, 2010
Now I know this has been brought up before and I've followed the advice: tried turning on Google Talk, rebooting etc. In fact I can rarely get GT to sign in either but even when I do, it makes no difference to the apps I'm trying to download. When I first got the phone, I managed to download a couple of apps without problems but now I can't. Everything gets stuck on 'starting download' whatever I do. I'm trying it on a wireless network as it's rare I can get 3GS up.
View 1 Replies
View Related
May 31, 2013
is it possible to open an application by tapping a widget created with UCCW and to have a notification mark like Missed it?
View 1 Replies
View Related
May 26, 2012
Do we have any application or any easy way to automatically delete files/folders created by an application after uninstalling it? I am looking for a solution like Revo Uninstaller for mac and windows.
View 1 Replies
View Related
Mar 1, 2010
i want to delete file data that i have created in android application. if my application is terminated abnomally or nomally?
View 1 Replies
View Related
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
Sep 28, 2010
I'd like to create an app for iOS that does VOIP, presumably by interacting with a website. I can start with Android too.Does anyone know of any tutorials, suggestions or libraries that would be of any use.(The app would need to be rewritten for BB and android eventually, too.)
View 2 Replies
View Related
Jun 22, 2013
I want to start programming android apps , but dunno how.
View 1 Replies
View Related
Aug 25, 2010
This is a follow up question of http://stackoverflow.com/questions/3550593/sending-html-commands-over-httpclient-android , I have successfully Posted to the server and received 200 code but when I attempt to move to another page it does not recognize that I have logged in. I am wondering if it is a session issue or if i need to follow the redirect after the POST. How would I go about following a redirect?
View 1 Replies
View Related
May 26, 2009
I created a new Drawable with: Drawable dx = resources.getDrawable(R.drawable.mydaysminipic_ov); dx.setColorFilter(0xff00ff00, Mode.SRC_ATOP);
and for: updateViews.setImageViewResource(predefinedDraw, --> ID from dx); I need the ID from it... but how to get?
Or any other Idea how to assign my Drawable dx to the above predefinedDraw?
View 2 Replies
View Related
Aug 14, 2010
I have a ContentProvider which is declared in the Manifest, when is it really created ? When the application is launched but before launching the first activity ? When the first query/update/insert is done ? When ?
View 1 Replies
View Related
Dec 7, 2009
Rumors have started flying all over the net that the droid update has started being sent out.
View 1 Replies
View Related
Oct 13, 2009
My application is background application.It uses WIFI lock and INTERNET permission. It is doing some socket communication with a Remote Host PC and as well as with a local android application. It will start based on incoming SMS. While my application is running, I tried to use the browser application. Within a minute my application is getting crashed.(in DDMS log, I found the application process has died) And again I restarted my application, it is always getting crashed within a minute. I could not find the reason from the DDMS log. Someone can help me to figure out the problem.
View 6 Replies
View Related
Jan 19, 2009
I want a countdowntimer to halt on a menu and also when the user goes from that menu to another activity. When the user comes back from that activity or when the menu is closed, the timer should still halt. However when the user went to the home screen and clicks on the icon again, I want the timer to restart. So my question is, is there a way to detect if the user has just opened your application, or if the user comes back from another activity or menu?
View 4 Replies
View Related
Mar 31, 2010
I just want to get numbers of times to be used for each Activity.
So the very straightforward method I thought is increasing the count for an Activity when it was started. But how can I get the information?
View 3 Replies
View Related
Jun 14, 2009
How can I know who started(bind) service?
I already check 'RunningServiceInfo()' but I couldn't find.
View 2 Replies
View Related
Jun 18, 2009
Is there a way to do this?
Can you access the activity stack in a way to grab what activity came before the one now in view?
I have a situation where an activity needs to know where it was started from, so it knows what data to display in that current activity.
View 7 Replies
View Related
Jan 27, 2009
There's already been some discussion of this, in various lists and blogs. I finally got an AnimationDrawable to work, but I cannot start it from onResume. I can start it from a timer that onResume starts, or an onClickHandler.
I've poked around the source a bit and I can't figure out, specifically, what state the view has to be in, in order for the background AnimationDrawable to start.
Can anyone enlighten me?
View 5 Replies
View Related
Aug 16, 2010
I want to get started with mobile development , I know HTML,CSS,JavaScript,PHP and C#.
What is the best way to get started?
I know that for example, if i want to create an iphone application i need to know objective c (and get mac),Which language is the best for mobile development (and cross platform - works on Nokia,IPhone,android,palm,Blackberry).
View 2 Replies
View Related
Aug 29, 2010
I'm looking for something to get up and running quickly with Android development. Perhaps a great tutorial covering the basics. I see a lot of posts on getting started but the ones I have looked over so far aren't great. What do people here recommend?
View 2 Replies
View Related