Android :: How To Push Screen To Background, Without Destroying The Surface?
Apr 26, 2010
I want to hide my app screen and then when the user clicks on the app again, I want to bring it to the foreground , but I want the app to maintain the screen that was pushed to background. Is there any way to do that right now?.Because when I try to hide my app, the surface of my app is gettng destroyed and so when I try to relaunch the app a new surface is created and my app status is changing.
View 2 Replies
Jul 13, 2010
I'm using advanced task killer to kill the tasks, and then it seems when i check back there are 12-14 apps open.It's destroying my battery. I used startup cleaner to clean up start up, hopefully that'll be useful. but i'm just trying to keep things as streamlined as possible, seems liek a lot of apps dont like to not be active
View 6 Replies
View Related
Jan 25, 2010
I am finding that performance degrades after one or more screen rotations, and I presume that this is likely to be because an App's main Activity is destroyed and recreated each time the screen is rotated and that my app must be leaking memory when that happens.I have read that, contrary to what one might expect, not all the objects created by an app's main Activity (or in classes called by that Activity) are destroyed when the activity is destroyed. Specifically, I think I have read (although I can't now find where) that if the View uses a large bitmap member object then the Activity's onDestroy() method should be over-ridden and the bitmap should be explicitly recycled.Are there other objects that need to be destroyed or removed when the Activity is destroyed? What about Listeners? Is there a comprehensive tutorial or guide on this subject?
View 1 Replies
View Related
Jan 22, 2009
How do I create blur surface from android.view.Surface?
View 2 Replies
View Related
May 31, 2010
How can we programatically push our app to run in background? I am doing one browser app. and when I am directly launching my application and clicking back key . It will show in the list of background running process.At this time Category is "CATEGORY_LAUNCHER" but at the same time if we try to run same app via third party app.and then clicking back key,its not showing in the list of background running process.Here the Category is "CATEGORY_BROWSABLE".and its not displaying in the list of running process.I noticed that the same behaviour in default android browser. But is their any way to make my app to run in background by clicking back key without killing my application?
View 6 Replies
View Related
Oct 9, 2010
Do you put your EVO with the screen face up or down on a desk/surface? I put mine with the screen face up, but will this affect the camera lens on the back?
View 11 Replies
View Related
Oct 23, 2009
I have an activity which pops up a Dialog box, to get some text input from the user. The problem arises when you switch orientation. The Dialog disappears, so I have added code to set and check flags in the savedInstanceState, meaning that the Dialog is displayed again in these circumstances.I know when the window is going to be closed, but can't find a way of closing it manually. I open it with alert.show();but there doesn't seem to be any corresponding alert.destroy() method or similar.Any ideas how I can manually close the dialog box without user input?
View 3 Replies
View Related
Nov 23, 2009
Is there a way to keep an Activity in memory after the user hits the back button on it?ActivitySearch is used frequently in my app, however after the user starts it up, then hits the back button, it's destroyed, and the next visit to it requires it be built from scratch again.If after its first construction, I could just request it be paused instead of destroyed on the back button, then I could reuse it. Is there a sensible way of doing this?The only way I could think of reasonably doing it is to combine ActivitySearch with ActivityMainMenu into a single activity, and simply switch views when the user chooses search, but this is probably a bad design.
View 6 Replies
View Related
Apr 27, 2009
I'm developing a game for Android. It's got a lot going on but is running reasonably smoothly. That is, of course, until the user touches the screen.While they're touching it, onTouchEvent is called (with action = ACTION_MOVE, x = 0 and y = 0) roughly once every ten milliseconds at what appears to be a fairly high priority, as it absolutely obliterates the framerate. As soon as the touch ends the framerate returns to its nice state.Has anyone encountered this? Is there a way to reduce the rate at which ACTION_MOVE events are generated, or to ensure that they're only generated when there is actual movement, or use a polling method that just gets the current location of the touch? Or even just a way to disable it entirely?
View 4 Replies
View Related
Jan 9, 2010
I read up on how Android handles "configuration changes" - by destroying the active Activity.The first question I really want to know from Android Team - why? I would appreciate an explanation on how the reasoning went, cause I dont get it =)In any case, the fact that it acts in that way puts us all, as I see it, in a world of pain.Lets assume you have a Activity which presents a number of EditText:s, checkboxes etc. If a User starts to fill that form with text/data and then changes orientation (or get a Phonecall), then all input the User made is gone. I havent found any way to preserve state. That forces us to make extremely painful coding to not loose all data.
View 3 Replies
View Related
May 19, 2010
Android 2.1 (not sure how much that matters) My test hardware is a Motorola Droid (not sure how much that matters either)
I want to push a bookmark/internet-shortcut to a user's home screen as a result of them clicking on a link-via their browser of choice.
I know they can usually set the bookmark themselves and then choose to put it on their home screen. But I'd like to provide a link like "Put a shortcut to this page on your home screen" that takes care of everything kind of in the background/underneath.
What parts of the framework would I need access to to make it happen?
View 1 Replies
View Related
Sep 7, 2010
running with the moto droid - since the latest update, my phone is chronically opening apps every few seconds and it is destroying my battery. before the update, i would have to kill maybe 3-4 apps over an extended period of time. now it takes about 1 minute and i'm killing 10-15 apps. any reason for this happening? how can i fix it? it's getting annoying when my battery life is terrible. i don't know a whole lot about the phone.
View 12 Replies
View Related
Mar 26, 2012
I have a Vivid. Google contacts are set to sync. I also my outlook contacts using HTC sync (or MyPhoneExplorer). I used to have ~1300 contacts in Google. I now have 16. Everytime I restore my contacts, they are soon gone. I made a google contact yesterday and it is now gone. The destruction seems to happen when I sync with outlook.
View 2 Replies
View Related
Jul 6, 2010
is there a way to push the gmail icon on the screen and it tell me that i have new mail.it doesn't unless i push menu and refresh.I do not want it to push all of the time.just when i open gmail.
View 4 Replies
View Related
Aug 24, 2010
Maybe this is already out there but I don't recall reading it. Anyway, at the bottom of the screen where the phone, apps and browser icons are, theres little dots on either side. Pushing one side or the other scrolls the screen to that direction but if you push both sides at the same time, icons for all five home screens will pop up and you can pick the one you want to go to instead of scrolling through the pages.
View 11 Replies
View Related
Jan 7, 2010
When i am the hope page and i push the browser button i get a white screen. Isn't google or a home page supposed to come up. the way i get to a web page then is to hit the magnifying glass (which brings me to google search). isn't a homepage supposed to come up when i hit that browser button. how do i make that happen?
View 4 Replies
View Related
Aug 10, 2009
I'm looking at 3 different apps to develop for the Android, but I'm new to the platform (come over from Blackberry - yuck!).
Anyhow - I need to know if there is some way to push data to the phone from a server. I'd prefer to avoid using SMS to push (user charges), or constantly polling the server (lets see, every 5 seconds = 12 times a minute, 720 times an hour, over 17000 a day)
View 4 Replies
View Related
Sep 28, 2010
my brand new samsung fascinate just went white. I went to push the button on the side to unlock it, and just lit up white. I went to do a hard reset and it did not solve the problem. When i restart phone, i can hear the phone start up music, and the soft buttons on the front work, but all i see is bright white. I had someone call me, and my phone rang, yet all i saw was a bright screen. When it goes idol to black, it wont turn back on at all.
View 1 Replies
View Related
Feb 3, 2010
I am planning to write a video player application and I am planning to use the gstreamer on the native side. I am trying to use the SurfaceFlinger for the rendering part. For this I have written a test program to experiment on the rendering part. I am using the surface flinger wrapper from the project
http://gitorious.org/rowboat/external-gst-plugins-android
But the following ERROR occurs when we try to run the .apk.
CODE:.......
The I changed the permission for "android.permission.ACCESS_SURFACE_FLINGER" in frameworks/base/core/ res/AndroidManifest.xml to "dangerous" and recompiled. But got the same error.
Then I commented out the "checkCallingPermission" method in IServiceManager.cpp and recompiled. Then also i got the same error.
View 4 Replies
View Related
May 20, 2010
I am working on a graphics application in Android. I have a question regarding MULTIPLE SURFACE VIEWS. Can I be rendering multiple surface views at the same time. Initially, when I had two surface views in the same activity, it didn't seem to work, as it used to show only one at any time. But, with one surface view attached to one activity, is there any way I can keep the background activity's Surface View alive so that both the surfaces get rendered together?
View 2 Replies
View Related
Dec 27, 2009
Looking the doc with class SurfaceHolder is possible set the kind of surface format. I need to show images YCbCr_420_SP format. If I set YCbCr_420_SP format is not clear after how I can set the data. With Canvas object I can draw only bitmap format and not YCbCr_420_SP. Then my question is : can I draw directly on surface using YCbCr_420_SP data ? how ?
View 2 Replies
View Related
Aug 29, 2009
I am trying to add an image on surface view. I have coded...
View 5 Replies
View Related
Oct 17, 2010
I'm attempting to create a 3d game using OpenGL. I have a very basic world and am now working on a character. I want to map a texture to the head which will be oval shaped. How do I do the mapping? I know how to map to flat surface. I'm wondering if the normals can be used to help but I've never done this before and when I search Google I don't have any luck. I'm planning on doing this all programmatically and not using Blender or Maya if that makes any difference.
View 1 Replies
View Related
Nov 15, 2010
I am trying to fill an image onto my screen, but it is just covering around 75-80% part of whole screen, not whole screen.
The codeblock i am using is as:
CODE:...........................
View 1 Replies
View Related
Feb 8, 2010
How to set the background color of a preference screen?
View 2 Replies
View Related
Apr 28, 2009
I've created game, everything works fine on all previous android versions except current cupcake 1.5. It works even on cupcake pre release.I'm using exact the same build.xml, sources and resources. The problem is that surfaceCreated is not called : SurfaceHolder mSurfaceHolder = getHolder(); mSurfaceHolder. addCall back(this); setFocusable(true); WaitForScreen(); - here I untill surfaceCreated change variable that it's ready,but it's never called. I just can explain that I'm running SurfaceView activity after stopping regular View activity (for the game menu - it was easier to create it). Please help me if you can figure out something. I'm just a developer not a Android engine tester. If they are putting such stuff to the market they should test it a little bit (not talking about discovered VM crashes instead of exceptions).
View 4 Replies
View Related
Sep 23, 2009
How push works, and why my gmail on my hero is not a true push email even if it takes less than 5seconds for an email to arrive after being sent.
View 9 Replies
View Related
Mar 1, 2009
My service works exactly the way i want as long as i use start and stop and communicate using intents. However my activity needs to change the state of my service as well as retrieving state information.So i thought it would be nice to broadcast some kind of state_changed event from my service and use a binder interface to pull information from the service or change the services state based on user input.This works fine too. The only problem is that my service gets killed when i unbind it just as the documentation says.Is there any way to keep the service alive but still get an interface to control it directly. My activity offers the user a way to stop the service and the service kills itself anyway after it's work is done but i don't want the service to stop every time the activity is destroyed.
View 3 Replies
View Related
Jun 24, 2010
I have a background service and want to listen to clicks on the screen by the user. Is there any standard procedure or experience in doing this?
View 2 Replies
View Related
Nov 30, 2009
I love my Eris BUT it is inferior in one critical area (too me) - I like to use my player t"watch" VIDEO podcasts or tivo'd news shows. Much of the time, I do not need to actually see the video (just want to hear it). So is their a video app that will let me play the video and turn the screen off and/or play video while I use the device to do other tasks. Seems like a simple feature but I cant find it anywhere for the Android.
View 4 Replies
View Related