Android :: Intent Difference And Their Usage In Application
Mar 12, 2010Can anyone say me the main difference between intent and pending intent? And their usage in application with example.
View 2 RepliesCan anyone say me the main difference between intent and pending intent? And their usage in application with example.
View 2 RepliesI wanted to know what is the difference between Context.startService(intent) and startService(intent) and does it matter which one is used?
View 1 Replies View RelatedI am new to android. I what to know the difference between Intent and Broadcast Receiver. I am more confused with Broadcast receiver then Intent. Simple codes will be helpful.
View 1 Replies View RelatedI have a repeating alarm setting, I have the activity being launched, the piece I'm missing is having this triggered after x minutes of inactivity.
I'm considering keying off of SCREEN_OFF in a service and then setting an alarm and canceling it on SCREEN_ON, does anyone have an intent or other suggestion for this. I've considering polling for tasks, all kinds of pieces but I'm stuck.
Requirement:
- App launches, alarm is set to relaunch app after 5 minutes, user exits/app exits after one minute
- alarm triggers, detects phone is in use, resets alarm to trigger in fives minutes
- if phone is idle relaunches app for one minute
On my nexus one, there is a handy app reachable from Settings > About Phone > Battery use.
I'd like to StartActivity() that app from one of my Activities.
I can see in the log that when Settings runs it, this intent is logged:
Starting activity:
Intent { act=android.intent.action.MAIN cmp=com.android.settings/.fuelgauge.PowerUsageSummary }
I'm having trouble relating that to something in Android Java source. I can't even find "fuelgauge" in the GIT source.
In android 4.0 and above there is the option in the data usage settings, to turn mobile data on and off. What difference does it exactly make? As fas as I tested, I still can take a look at my mobile data usage, even though it is tuned off in the data usage settings.
According to this source of Google
[URL]
turning it off means:
Quote:
If it's off, you won't be able to use mobile data at all and many features of your phone and apps won't work correctly.
what they mean by "...use mobile data at all..." (since I still have 3G) and what features there could be?
I just bought a LG Ally yesterday. What is/are the difference(s) between a widget and an application? I seem to have both a YouTube app and a YouTube widget. Are they different things or will they both do the same tasks.
View 6 Replies View RelatedThis has me stumped, I was using this in Android 2.1-r8 SDK: Code...
View 1 Replies View RelatedI am running the new EVO on Sprint, not rooted, and I am looking for an application that can display active (and perhaps historical) network bandwidth usage based on the application(s) utilizing it.
So far the only one I have manged to come across is "NetMeter" from the market. While this shows active network activity, it does not single out applications.
Trying to figure out what's whoring out the bandwidth on my phone and how I can fine-tune the problematic applications. As I type this I am looking at ~10min of 3G usage totaling over 15MB so far, and from what I can tell I am not running anything that would require the downloading of said data chunk!
How to get application usage statistics on android? What I want is to access the time (in milliseconds) that each application is used.
View 3 Replies View RelatedOn my contract I think I've got 500mb Internet. Is there a app that will tell me how much mb I have left? I don't mind paying but free will be even better.
View 2 Replies View RelatedIs there an app that can show me call usage statistics for the phone? Particularly, I'm trying to figure out how many minutes I've spent talking to a particular person. Sure, I could go through and add up every single call I've made to them in my call log, but is there some app that does that for me?
View 3 Replies View RelatedI have an application in Java-side, and it uses some "SO" files in native-side. How to calculates the memory usage of my application, in Java-side and native-side both? Does Android provides toolkit to calculates the memory usage of application?
View 5 Replies View RelatedI am trying to get the memory usage for every application at different periods of time. I have checked the docs / threads / forums, and i only found that you can get the total available memory value, but i could not find in the sdk an api call for getting the memory used by a single application. I know that one way to do this is by reading the values from /proc/ <pid> virtual file system but this is painful for the device cpu. Can you help me figure out how to solve this problem ? Or does anyone know how settings -> applications -> manager applications read the memory usage values.
View 2 Replies View Relatedhow I can find the memory used on my Android application, programmatically. I hope there is a way to do it. Plus I would like to understand how to get the free memory of the phone too.
View 3 Replies View RelatedIs there an app (or even a setting on the Desire itself) that can keep a track of the outgoing calls duration and total on my phone? I've recently dropped from 600 to 300 minutes and want to make sure I don't go over my allocation in the same way the "3G" app tracks my Internet usage!
View 4 Replies View RelatedIs there any way to programmatically retrieve data that reports on application usage as shown in the Spare Parts application? I know what calls need to be made, but it seems that they all use internal APIs...is this true?
View 2 Replies View RelatedThis is my first post and Its for sure not going to be my last
I was just wondering a few things
1. I'm getting the Nexus One and putting the SIM Card from my other Rogers phone into it... will there be any problems/pitfalls i should look out for?
2. As far as applications go, if I don't have a data plan, will i be paying out the rear end to use apps such as facebook, last.fm etc?
3. Is there an app that lets you text/call for free?
4. Do you have to have a data plan to download apps when not in range of WiFi (if so how much does it cost to browse the store and download an app?)
5. Does it cost anything to use the GPS (Do you need a GPS plan?)
6. Is there an app that lets you track Text messaging usage, call time, data usage etc?
how to get the battery usage per application.I want to implement battery usage per application in code. So I need idea how I should work to get this. I am not searching for app shows battery usage. I want to implement one such app.
View 7 Replies View RelatedI am having trouble finding class or API in android documentation which can help me get battery usage statistics per application. I have read PowerManager class and BatteryManager but they are of no use .Though I can find applications like PowerTutor that do give you battery usage statistics per application, so I think its technically possible?
View 1 Replies View RelatedHow do I find out how much memory my openGL application is using at any given moment, including sounds, textures, and everything else? I've been wrestling with DDMS for hours and all it seems to show me is basic object allocation counts. I must be missing something, but I haven't had any luck searching. LONG VERSION: I've got an otherwise operational beta Android game which crashes out after a while on my device (Droid X). I'm fairly sure my problem is that my textures are not being properly cleared from memory. I'd like to confirm this fact before I start blindly making changes. My game does fairly frequent level transitions. During these transitions I typically dump a texture file, wait a bit, then load a new one.
Over time the application performance degrades. After 10 or so transitions frame rate starts to take a nose dive. 10 or so more and it usually dies. Prior to dying I see log messages like this: 08-23 12:26:58.038: DEBUG/Cursor(1265): fillWindow is not executed because Cursor object is closed. 08-23 12:27:27.186: INFO/ActivityManager(1239): Low Memory: No more background processes. And then eventually: 08-23 12:27:46.952: INFO/ActivityManager(1239): Process com.thup.lunchbox (pid 4927) has died. There are no specific error messages of any sort. I've got lots of ideas for things to try to fix this (e,g, glDeleteTextures), but I really want a way to measure before I start trying to fix.
I consider that my "About Phone ->battery Use" is not really accurate in my case. Can you advice me regarding another android battery usage monitor application ? I am interested in seeing the exact consumption (in percentage) of each service/application.
View 8 Replies View RelatedI recently purchased the new Evo. This is my first smart phone, Droid, etc. Pretty much I am going from the basic to the top. I have read through the forums and I have done all of the tips & tricks for saving your battery. At this time I am basically just using my phone to check email, facebook, twitter, browse the Internet, and as a camera, all of which I could do on my last phone, the Sanyo spc-2700. After all of the rant & rave about this phone I went for it. Can anyone give me tips and tricks that are out there and would make me feel like I got my moneys worth out of the phone? I mean I really love the phone, size, clarity, etc, it's worth it but I feel as though I am really missing the big picture here.
My questions are:
What is the coolest thing about the phone?
What applications should I download and use?
What is the difference between an application & a widget?
I'm on developing a twitter kind of Application where in I want that the user would be displayed the timelines and the Textview in the Lists require to perform clicks on (http://)URLs, (@)usernames, and (#)hasTags and I want to invoke custom methods over these actions, I have used the Linkify class and the actions but where of no use because the customization that i require cannot be incorporated.
View 2 Replies View RelatedI would like to put a notification with an intent. My intent is basically action = DEFAULT and category = LAUNCHER in order to bring the activity that was launched into the front. When the app is not shown, there is no problem, the intent works perfectly and launches the last activity seen but when there is already an activity launched, on New Intent is not called (activity is in single eTop mode). I'm wondering how to relaunch the app from an intent to the last activity seen and call on New Intent when the activity is already launched.
View 1 Replies View RelatedI know how to update my own programs, and I know how to open programs using the a predefined Uri (for sms or email for example)
I need to know how I can create an Intent to open MyTracks or any other application that I don't know what intents they listen to.
I got this info from DDMS, but I havn't been succesful in turning this to an Intent I can use. This is taken from when opening MyTracks manually.
I wrote a new application and i want to send an intent to another application.is it not enough if i broadcast that intent from my new app and add an intent filter in the receiving application? The intent seems to be not received in the receiving application. should i add / register the intent somewhere in the framework so that it gets received.can someone help me on this.
View 4 Replies View RelatedI have a question about an intent...
I try to launch the sms app...code...
so, you can see that I put too much things in my intent, but that's because I don't know how I can do...
I created application with name Test, and has a class that extends broadcastreceiver that listen for PACKAGE_RESTARTED. I use Advanced Task Killer, and killed the Test application. But when I kill another application, for example gmail, the Test's broadcastreceiver got the intent (I logged it). Does it means that broadcastreceiver will never died?
View 4 Replies View RelatedIn my Android application, I have two activity classes. I have a button on the first one and I want to show the second when it is clicked, but I get an error.
Here are the classes:
CODE:...........
The second class that should show when the button is clicked, but never does:
CODE:........
How do I create a button that will show the second activity?