Android :: Any Way To Make Activity Lauch Timeout Longer?

Jul 19, 2010

For some reason, one activity (launched in a new process) often takes longer than 10 seconds to start, which exceeds the LAUCH_TIMEOUT defined in ActivityManagerService.How do I make the VM tolerate longer launch time without giving up wake lock?

Android :: Any way to make activity lauch timeout longer?


Android :: Longer Screen Timeout (not Always On) While Charging?

Aug 21, 2010

I would like to keep the screen timeout set to the default 30 seconds to save battery while the phone is not charging. However, I'd like to increase that to at least several minutes while the phone is charging. I don't want the screen to be always on it just doesn't seem like the best thing for the life of the phone. Could be wrong, it just feels that way.Is there any setting or app that would allow this?

View 1 Replies View Related

Android :: Activity Launch Timeout Even With Wakelock

Oct 20, 2009

I have the following code in Oncreate of my activity:

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

View 15 Replies View Related

Android :: Activity Timeout On WebView Load

Aug 3, 2009

In my app I have to load external page into WebView-based activity. Some of my users with slower connections are reporting screen timeout while waiting for the page to load. What would be a good way of loading the page on backgorund thread and then refreshing the screen? Use HttpClient to fetch it and then use WebView#loadData? My fear is - the page I'm loading is pretty complicated there's some JS that happens on load - wouldn't I just mess it up? Is there an alternative way of doing what I need?

View 5 Replies View Related

Android :: Activity Pause Timeout For HistoryRecord?

May 11, 2010

I'm start a new Activity B from Activity A, and find launch Activiy B is very slow, cost over 3000 Milliseconds, and when i click "back" to Activity A, then i found this log below:

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

Activity B only contains a ListView with CursorAdapter.

Any idea how does this happen? this performance is unacceptable.

View 2 Replies View Related

Android :: Pausing A Thread - Activity Pause Timeout For HistoryRecord

Jun 30, 2010

I'm trying to write a game engine in Android, but I don't have much familiarity with threads.

My thread has an attribute, mSurfaceHolder, which holds the surface that I'll be drawing to. The run() method for my thread looks like this:

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

STATE_RUNNING represents the state when the activity is in the foreground and the game should be running.
STATE_PAUSED represents the state when another activity has come into the foreground. I'm not completely sure why I need to still draw while it's paused, but that's what I seem to have gathered from the LunarLander example.

What I'm hoping is that while I'm looking at the activity, the game will update and draw (which I test by using LogCat). And then when I go back to the home screen or another activity appears over the top, it will just draw.

Well it does draw and update while I'm watching the activity, so the game loop itself works. But when I leave the activity, it has no effect. Here is the thread's pause() method that is called from the activity's onPause():

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

As you can see, to test this method I have logged some messages. Now what I find when I leave the activity is that "Here" is logged, but "There" is not. Now with my limited knowledge of threads (I hardly know what synchronized actually does), I believe this will happen because my thread can't get synchronized with the surface holder. But I don't know WHY it doesn't synchronize. A few seconds after I've left the activity, I see the following warning in LogCat:

Activity pause timeout for HistoryRecord

Any idea why this would happen? There are no problems if I try to start the activity again, the thread just keeps running as it was.

Just discovered something else. The thread pauses just fine if I leave the activity within about a second of having started it. And then it will resume and pause again with no problems at all while the same task is still running. I have no idea why for a short period of time it will work, but if I leave it too long, it won't.

Okay... I fixed it. But I don't think I'm supposed to do what I've done. I've basically removed any synchronization with mSurfaceHolder from both the pause() and the setState() methods (which is used by pause()). No it works as it's supposed to, but I'm thinking the synchronization is there for a reason.

Perhaps the best question for me to ask is this: WHEN should you synchronize a thread with an object by use of a synchronized block? And in this case, what is the purpose of synchronizing with the SurfaceHolder?

View 1 Replies View Related

Android :: Make Toast Last For Longer Time?

Jul 23, 2009

Is there a way to make the Toast last for longer time? I have tried this code

Toast t = new Toast(this); View v = View.inflate(this, R.toast_layout, null); t.setView(v); t.setDuration(Toast.LENGTH_LONG); t.show(); t.show(); t.show();

By calling show() method more than once, I hoped this would give a similar effect to lasting for longer time with some flickering, but I didn't see any difference. Is there some limit to the number of times that show() method can be called on the same Toast? e.g. just once per toast instance and further calling has no effect?

View 20 Replies View Related

Android :: Make A Particular Activity As A Root Activity In Stack

Aug 4, 2009

i have a set of activities on my stack Say A-->B-->C. when i launch the activity named 'D' it should get fired as the root activity of my application and all the other activities(A,B,C) should get cleared from my stack once Activity D is launched.Can any one tell me as how to do this

View 4 Replies View Related

HTC Incredible :: How To Make Battery Last Longer?

May 25, 2010

My Incredible's battery only lasts about 4 hours. What can I do to make it last longer?

View 28 Replies View Related

HTC Hero :: Make Battery Last Longer?

Jan 27, 2010

There is a very log lag when I select a function. Just tapping on phone and it takes forever to go to that screen. Also, battery life is terrible. Is there anything I can do to make it faster and make the battery last longer?

View 5 Replies View Related

Android :: How To Simple Custome Home Screen Without Use Own Lauch APP?

Oct 8, 2009

I know we can write the own lauch APP to replace the traditional Lauch and then we can do everything we want.But now I don't want to do this job and just want to do some simple modifying in the traditional home screen. The "wall paper" is easily to update. However, I can NOT find the the way to update, "Menu" key's background or the Launch screen's background (which contains all the APPs buttons and now it is black) and the other things.

View 2 Replies View Related

Android :: Ringdroid App / Lauch New / Ringtone Editor Error

Nov 14, 2008

I've downloaded some songs from my computer to my G1, next step i downloaded Ringdroid from the Android Market.When i launch the application it just says Record New >> For me to record a voice sound, i cannot access the music ringtone editor?I have tried pressing menu and touching screen but nothing?Has anyone else had same problem or am i doing something wrong?

View 8 Replies View Related

HTC Droid Eris :: App To Make Vibrate Longer?

Feb 16, 2010

I need a feature similar to the one in Handcent. Where i could make the phone vibrate multiple times for a long time. I got rid of handcent and am really missing this. Is there another app with just this feature?

View 10 Replies View Related

HTC Hero :: App / Way To Make Camera Focus For Longer?

Sep 26, 2009

I got my HTC Hero today on Orange. I previously had an iPhone 3G but I do prefer my Hero!

I have a question though. Is there an app or a way to make the camera focus for longer? Or perhaps when it has focused enough, take the picture without it messing up?

The camera is good for me, I'm just wondering if there's a way to put the focus to better use!

View 5 Replies View Related

General :: Make Droid DNA Battery Last Longer?

Jan 14, 2013

I would like to try and make my new droid Dna battery last a few hours longer. I have a battery saver app. But it doesn't do much.

View 1 Replies View Related

Android :: Emulator's Lauch Options Not Working In Eclipse Plugin

Jun 7, 2010

I need to change the emulator's default time zone. It worked in command line with -timezone option. But when I tried it in eclipse android's launch options. it didn't work. I set it in Window->preferences->android->launch->default emulator options. Am I setting it in a wrong place?

View 2 Replies View Related

Sprint HTC Hero :: Make My Battery Life Last Longer?

May 19, 2010

I have a sprint htc hero works fine just battery life has been an issue for me I can't really keep my battery to even last a full day I usually have to recharge couple times a day. Is there anyway I can avoid having to recharge so much my phone isn't rooted and I have Astro and task manager installed but it still dies pretty fast. What can I do? Is there an app I can download?

View 5 Replies View Related

HTC EVO 4G :: Differences Between Google I/O Evo And Lauch Day Evo?

May 21, 2010

I was lucky enough to find an evo from the google i/o convention for 450 plus 20 bucks for overnight shipping on ebay. I had to pay full price any ways at BB or RS due to getting palm pre in december (I cant wait to destory this horrible hardware) so it will be cheaper than the 450 plus tax i would have paid on june 4th. however will there be any differences between this version and the ones that go on sale June 4th?

View 9 Replies View Related

Motorola Droid :: Phone Running Slow / How To Make Battery Run Longer?

Jul 28, 2010

My girlfriend has a Droid...but hates how incredibly slow it is and complains of the battery. We all know that a ticked off girlfriend is bad news, and this phone seems to perpetuate it. So what are some steps to speed this guy up a little and make it run longer? I'm not above rooting and flashing ROMs

View 21 Replies View Related

Sony Ericsson Xperia X10 :: What Are Settings To Make Battery Life Longer?

Aug 26, 2010

which app u guys think saves alot of battery let us know. And what are the settings u guys are using? To make battery life longer.

View 1 Replies View Related

Motorola Droid :: Make Light On Status Bar ( On Bottom Of Phone ) Stay On Longer?

Nov 21, 2009

How do you make light on status bar ( on the bottom of my Droid ) stay on longer ? It stays on for few seconds and if I don't touch it, goes dark.
Is there any settings for that ? It's hard to use phone when it's dark outside.

Another question : Why can't I add my Yahoo account in too "Email" program ?
I tells me that " Mailbox access is not supported for some types of Yahoo!"

View 1 Replies View Related

Android :: Android Surfaceview Is No Longer Visible After Back From Other Activity

Apr 4, 2010

i use surfaceview for camera preview. it works fine, but has one problem when i start other activity (by clicking something) and then back from that activity. after that, surfaceview is no longer visible. (but onclicklistener is working)but when i occur surfacecreated/destoryed by visible/invisible surfaceview in single activity, it works very good.

View 1 Replies View Related

HTC Droid Eris :: Screen Timeout Settings - Can Screen Time Out Be Set To Never Timeout Just For App

May 4, 2010

is there a way to set screen timeouts to specific apps? For instance, when running navigation, can the screen time out be set to never timeout just for that app? I only want the screen to stay lite for certain apps.

View 10 Replies View Related

Android :: Make 2 MapView On One Activity?

Jan 7, 2010

Is it possible to make 2 MapView on one Activity ?

If so, How to make it ?

View 1 Replies View Related

Android :: Make Sure An Activity Is Displayed Before Another?

Aug 19, 2010

I have some activities and I have to display a fullscreen ad image before displaying the activity... all my activities extends a custom activity and I thought it was a great idea to implement that advertisement there, so I did: code...

This works nice... the ad is displayed for 3 seconds and it closes automatically. The problem is that the activity that should be hide for the ad is being created faster, so the user can see it for a second before the ad is created. How can I avoid that behavior? How to make sure the ad activity starts before the another does?

View 1 Replies View Related

Android :: Want To Make Activity Appear In 'wallpaper Chooser'

Sep 25, 2010

I want my activity to appear in the list of activities (gallery. live wallpapers, etc) that you see when you try to choose a wallpaper from the home screen. Im assuming this is done with intents but cant seem to find one that works. The closest one I can find is:
<action android:name="android.intent.action.ACTION_SET_WALLPAPER>
but that doesn't work and seems to be used for something else.

View 3 Replies View Related

Android :: How To Make FullScreen Activity In Phone?

May 19, 2010

How do I make an activity full screen? I mean without the notification bar. Any ideas?

View 1 Replies View Related

Android :: Make Activity To Background With Out Finishing?

Jan 11, 2010

How can i make an activity go to background without calling its finish() method and return to the Parent activity that started this .I tried so much but it really dint help.So if you guys could help i would be very thankful.

View 2 Replies View Related

Android :: Howe To Make Sub Activity Or A New Windows With Ui

Apr 23, 2010

I wish to go from my home screen in my app to a second screen. where i can develop som kind off settings menu. i can't find any kind off guide to it. and the help cos i find normaly don't work.

Question: I goth this code with make a textview to rise ore go down but i with to dublicate it. his is my code. for button for minus. but if i wish to dublicate it what is the code for that?

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

View 2 Replies View Related

Android :: How To Make Launcher Open Main Activity?

May 26, 2010

I have activities A and B. The A is the one with LAUNCHER intent-filter (i.e. the activity that is started when we click the app icon on home screen). A launches B using start Activity(new Intent(A.this, B.class)). When the user has the B activity open, and then put my application into the background, and later my application's process is killed, when the user starts my application again, B is opened instead of A. This caused a force close in my app, because A is the activity that initializes the resources my app needs, and when B tried to access the uninitialized resources, B crashes.

View 1 Replies View Related







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