Android :: Increasing Priority Of Activity

May 14, 2010

Let me say this with an example. Lets say, my activity A is being executed, meanwhile another activity B gets launched. By default, acivity B will come on top of activity A. My requirement is that I want to keep A on top. Only activities such as phone, lock screen and home screen can come on top of me not other activities unless my activity closes.

Android :: Increasing priority of activity


Android :: How To Set Priority Of IntentService?

Sep 1, 2010

I was wondering if it is possible to set the priority of an IntentService like you can with a Thread. So far I have not found anything.

View 1 Replies View Related

Android :: Priority In Messages

Jun 5, 2009

I was searching for the priority implementation in Messaging. I didn't find any code to show the priority of say SMS( For ex: urgent SMS). Anyone knows whether this feature exists in Android. Or is there any plan to add show the message priority in the notification bar(For SMS /MMS/ Voicemail)

View 2 Replies View Related

Android :: Service Thread Priority

Dec 16, 2009

I have two apps that use a service to upload and download files and data. I've noticed that when the service gets very busy, it can cause the UI to block, up to the point that Android shows a "force quit/ wait" popup. In order to avoid that, I run tasks in a service at a lower priority. This way, the service will never cause the UI to hickup. Also, the service stops if the app hasn't been used for a certain number of minutes. I don't want to keep resources if the user isn't using my app.I have found that some of my users run apps that run services permanently at normal priority. Such a service starts at phone switch on, and keeps running indefinitely, downloading vast amounts of data. My policy of being nice to other apps doesn't pay off: these agressive third party services push my service away so it never gets anything done. As one of my users told me, my app has hickups, until he kills the service of this app X, after which my app runs smoothly, snappy, and fast.

My question is, should I be nice to other apps and to the UI in my own app, or should I just run a service and agressively take all resources I need - or don't need? This is one issue where Android is different from iPhone. We can run services, but by doing so, we can cause damage to other peoples apps. Of course, my "question" doesn't require an answer. I'm just curious after what other people think, what your experience here is.

View 5 Replies View Related

Android :: Setting Priority For Service

Aug 13, 2010

Is there a standard way in Android to create an unkillable service with very high priority, assuming you have complete access to the device (as in you're building your own device on something like a beagleboard, not just installing an app)? I'm playing around with sip phone stuff, and it seems like just doing it as an app isn't going to work if you want high voice quality. (Assuming you want to be able to let the user switch away from the actual sip app and use different apps; all the sip phones I've tried have failed to maintain decent audio if you're multitasking.) Or would you just run the phonecall software outside Android in a normal Linux process and communicate with Android apps over sockets?

View 2 Replies View Related

Android :: Internet Connection Priority

Oct 27, 2010

I am a newbie to Android so please excuse me if this is a silly question or one that has been answered many times before. When connecting to and using the Internet, I am trying to find out what determines the connection that the phone will use when more than one connection is available: Wifi, 3G etc. Is there a standard priority order for connection and use? can the user set the priority order? Usually I would expect the wifi connection to be preferred for reasons of speed and cost. I have looked at my phone user guide and the official Android user guide but cannot find any information about this.

View 4 Replies View Related

Android :: Set Priority To Broadcast Receiver

Oct 24, 2010

The symptom: I have a broadcast receiver that listen to sms, when a sms is received, i call an activity to display. It works all fine if the screen is on and not locked. But when screen is locked, and as soon as i received the sms, the activity popup for a second then disappeared and I use the code to unlock the screen.

getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);

I think it might be the competitions with phone default sms program (the sms default program shows a notification only). I am wondering is there a way to set priority to broadcast receivers or even the activity that receiver stared, to avoid the conflicts between multiple receivers. or set orders to execute one by one? I have tried to thread.sleep my receiver for a second, still not working.

View 2 Replies View Related

Android :: Threadpool With Good Priority

Aug 24, 2010

So from what I've known, if I do an AsyncTask inside an Activity, the task may be killed when user quits the Activity before it is finished. One solution I've seen is using IntentService, which the system will try hard not to kill. My problem is that IntentService only uses one background thread to run all the tasks one by one. I have several independent tasks that I wish to run concurrently, and that makes a difference in the UI (not serious, but could surprise user). How do I accomplish this? I imagine I could have several IntentService but this seems awkward and not scalable. How do I maintain sort of a threadpool that has a good priority, so that it won't get killed to easily by the system? If I start a (normal) Service, then launch some AsyncTasks within there, does that result in a higher priority?

View 1 Replies View Related

Android :: Increasing Frame Rate

Feb 15, 2010

Anyone knows how to increase the fps in android?? I am developing a 2D game using rokon engine but i am getting only 7-8 fps. How can i increase the frame rate, is there any method to set the fps ....

View 3 Replies View Related

Android :: Gmail Priority Inbox Notifications

Sep 2, 2010

Does anyone know how to set it so that my Android phone only notifies me when I get a message in my "Priority Inbox" (the new feature Google just launched in case you don't know what it is)?With my email I receive a bunch of newsletters, so instead of being notified every time one of them arrives I'd like to be notified only when messages in my Priority Inbox arrive.Being able to be alerted to messages with certain labels only would also work.

View 8 Replies View Related

Android :: Application Priority - Graphics Stutter

Nov 18, 2009

I have an app which within the main Activity a SensorListener is setup. The listener detects changes from the accelerometer and sends updates to various child views, which update the display. When the app first start up, it's great - the graphics are smooth and the sensor notifications are immediately reflected in the views. Then after a few minutes it starts to stutter, making the display very jerky - and for the purpose of this app quite unusable. I've done some logging and the sensor updates are still being passed, but they start stacking up and all get sent in batches. It's like the system has put this app down the priority list after it's been running a while. I've added some garbage collecting but it only seemed to help a little. What could be happening here? How can I try and keep this app at the top of the priority list?

View 3 Replies View Related

Android :: Multiple Instance - Set Priority For Applications?

Jul 4, 2010

I have few question in application side. Questions are below 1. Can LMK (Low Memory Killer) kill service ? 2. Can I open multiple instance of same applications ? 3. Can I set the priority for the application? 4. LMK kills application(process) or one activity(suppose in application 4 activity). If it can kill activity then how activity stack handling this.

View 3 Replies View Related

Android :: Set Thread Priority Of Media Player

Feb 9, 2010

I am programming a game with fast graphics. The MediaPlayer is stuttering sometimes. When I have the MediaPlayer in a service, it does not stutter, but some people here adviced me not to use services if they should stop automatically when the user ends my application. So how can I set the thread-priority of the MediaPlayer-Object? SoundPool uses the MediaPlayer and with SoundPool, you can set the thread-priority, but I cannot add my audio-file to SoundPool, because its size is about 2mb (too big for SoundPool). I can lower my main-thread-priority so that the MediaPlayer has a relatively higher priority, but isn't this a bad idea?

View 2 Replies View Related

Android :: Change Broadcast Receiver Priority

May 5, 2009

I have developed a music player and the application defines a broadcast receiver that handles MediaButton intents:

<application...>
<receiver android:name="MediaButtonIntentReceiver"> <intent-filter android:priority="32000"> <action android:name="android.intent.action.MEDIA_BUTTON"/> </intent-filter> </receiver>
</application>

which works well. My question is if it was possible to change the priority of this receiver from within the settings activity of my application. That way people could choose if they wanted my player as default handler of the headset buttons or not.

View 5 Replies View Related

Android :: Increasing Height Of Textview Dynamically?

Sep 13, 2010

I have a class which inflates linearlayout. The inflated xml contains a textview.

I want to change the height of that textview dynamically as per the content.

View 1 Replies View Related

Android :: Set And Get Thread Priority From Java And Native Layers?

May 10, 2010

I have a multithreaded streaming app which has mainly the following 5 threads. 1 Main App(UI) Thread 1 controller thread (in native) 1 audio decoder thread (in native) 1 video decoder thread(in native) 1 thread to query the head position of audio (in Java) Apart from this I have video rendering with OpenGL. My problem is, if I query the thread priority using the Thread.getPriority method (my native threads make callbacks to Java and I am making the query at that point of time), I am getting the priority of each of them as 5. For my audio query thread (the last one in the list) I am explicitly setting the priority using Process.setThreadPriority(Process.THREAD_PRIORITY_URGENT_AUDIO); Also for my decoder threads, I am giving higher priority than my controller thread(using pthread APIs in native). But still finally all of them seem to have same priority. Also what should I be doing to increase the priority of my threads(both from Java and native)?

View 6 Replies View Related

Android :: Setting Connection Priorities Using Wifi Configuration Priority

May 20, 2009

I am trying to to use WiFi API to set priorities to created profiles. I am using the priority field of WifiConfiguration to set this information. I have found out that no matter what priority I set, Android always tries to re-connect to the latest access point that it was connected to. Here is what I do: 1) I create a profile A with a very low priority (0) 2) I create a profile B with high priority (100) 3) I connect to profile A 4) I turn Wi-Fi off 5) I turn Wi-Fi back on 6) In the scan Android sees both A & B 7) Android connects to A, even though its priority is much lower. Does anyone has a work around for this?

View 2 Replies View Related

Increasing API 11 To 13 Or More For Eclipse

Mar 21, 2012

I am now creating android application which need to run for API 13..Im using Eclipse version 3.6.2.. the problem is, my Eclipse only has max API 11..I want to increase it to API 13..

View 1 Replies View Related

HTC Desire :: Increasing Number Of Multiple Exchange Accounts In Android Devices?

Sep 19, 2010

Is there any plan to increase the number of Exchange type accounts on HTC Android devices. Maybe in the new Sense Updates? Why did HTC not implement the code included in the stock Androind mail app (since at least 2.1), or at lease leave it alone! Since Hotmail has improved it's service to offer an Exchange style connection option there is a real day to day need to have at least two Exchange accounts on one device. I have been using the stock 2.2 android email client for some time and although it feeds into the unified calender app it does not feed into the Sense contacts ribon etc., I also goes high CPU at times (file conflict?) so is not a suitable workaround. And no I do not wish to use a third party app such as countdown, I like that with HTC's Sense system all things feed into a common thread - third party apps I have found have their own databases for email & calender etc. which I do not want.

View 6 Replies View Related

Android :: Active Installs Dropping But Total Downloads Increasing Steadily

Aug 26, 2010

I'm getting a little concerned about the issue. I know for a fact that my application is doing very well from analytic.But the active installs are dropping daily by a lot! While my total downloads are growing steadily as they always have! I'm worried cause I know that active installs affect an applications popularity and mine is going to be dumped all the way to the bottom if this continues.So what's causing this issue? Two theories: 1. I recently allowed to install to SD card. 2. Android Market is broken? Anyone seeing this issues? -Moto

View 7 Replies View Related

Android :: Create Animation List View From Top To Bottom With Increasing Height

Oct 25, 2010

Anyone has idea how to create animation from top to bottom for List View with increasing the height of each list item view ?

View 2 Replies View Related

HTC Desire :: Anything To Do As Priority With New Handset?

Jun 29, 2010

I have got myself an HTC Desire as my Orange upgrade. The tariff is really good for me and I'm blown away by how good the phone is. I have been using an iPhone for work and asides from the games on the application store, the Desire is just so much better. So I'm working my way slowly through these threads. Anything I should do as a priority now that I have my new handset.

View 3 Replies View Related

HTC Desire :: Which Takes Priority ISP Or WiFi

Aug 1, 2010

Sitting at home . WiFi in full operation and showing as such on the Desire. If I use my Desire what will it prioritise: My home WiFi connection or the ISP's data connection? Both have strong signals everywhere in the house and both are equally fast. Important to know as don't want any isp billing surprises!

View 7 Replies View Related

Motorola Droid :: To Set Wifi Priority?

Aug 4, 2010

I have 2 Access Points in my house broadcasting 2 different SSIDs, my Droid can connect to both successfully but it likes the one that is farthest away better. Most of the time I have to force connect the one I�m sitting next too. Is there a way to set a priority on which AP it connects too?

View 16 Replies View Related

HTC Incredible :: Data Plan - Top Priority

Jun 20, 2010

Remember when choosing your minutes was the single most important thing on your cell plan? Then slowly, texting options became more important? Now, with smartphones everywhere, I see the Data Plan as the most important option. As for me, when I see the incredible, I see so much more than just a phone. For me, the phone part seems more like a tacked on feature in that the device is so much more capable than a mere phone. With its constant connection to the internet and its ability to run apps ranging from anything to everything you can imagine, the Incredible seems to fully capture the term 'Personal Computer'. Of course, having minutes to talk on your phone is important, but is that slowly becoming less and less a priority? With the availability of Skype and other VoIP services, could cell phone plan minutes be a thing of the past in the not to distant future?

View 25 Replies View Related

General :: How To Give App Higher Priority

Mar 27, 2014

So there are a few apps which I want staying in memory. I.E. I don't want Android to kill it. Is there such an app that can do this and if not, is there a script? I believe Super Charger? If Super Charger, how do I use it?

To summarize, I want a few apps (the phone, the messaging, true caller, and ex dialer) to get highest priority/never die.

Is this possible?

View 1 Replies View Related

HTC Desire :: Increasing Speaker Volume?

Oct 28, 2010

I use my Desire in the car quite a bit, and as I don't have a bluetooth hands free kit, my old one got smashed in the boot when I dropped a big tool box on it. Dumb ass, I'm using the inbuilt speaker on the phone. While for the most part, this is fine, I would like to increase the volume slightly. Obviously not enough to blow the speaker. I know there's an app/mod for the headphones volume, but what about the speakers volume? Anyway of increasing that?

View 4 Replies View Related

HTC EVO 4G :: Awake Time Keep Increasing / When Charging Through USB Only?

Jun 30, 2010

I've noticed that my awake time will keep going when EVO is charging through USB, but if I charge through AC adapter then awake time will stop like it should.

View 2 Replies View Related

HTC EVO 4G :: Tethering Connection - Increasing Speeds?

Jul 16, 2010

It seems that when I'm tethering my connection is not very strong at all. I believe its only about 6kbs. Anyway to increase this?

View 3 Replies View Related

General :: How To Change Main UI Thread Priority

Apr 26, 2012

I read somewhere that iPhone UI is so smooth because the thread which renders the UI has the REALTIME priority... so is that possible to mod android's UI thread priority?

View 2 Replies View Related







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