Android :: Blank Screen When Switching Activities / Fix It?

Apr 25, 2009

I've got a basic list activity with a few images that when you select one starts a new activity with a SurfaceView (based on the Lunar Lander sample). Some times the screen is just blank, from some debugging I can see that the background .png is being loaded and doDraw() is being called by the activity doesn't display anything for anything from 4 to 20 seconds. Other times the game activity is loaded just fine. I assumed it was some kind of garbage collection problem but I can't see anything in LogCat and the second activity is actually loaded, just not displayed for some reason.

Android :: Blank screen when switching activities / fix it?


Android :: Switching Activities / Passing Data Between Activities

Jun 30, 2010

how to call BarCodeScanner, and return the value to a field.so now, i have a toast that says "successful scan" and then i want to pass the result to a new activity. when i comment out my intent, everything works (minus the passing of data/switching of screen, obviously) but when i run my project as is, it FC's no errors reported by eclipse in code or xml. any insights?

View 2 Replies View Related

Android :: Multiple Activities Or Switching Views Manually

Jan 15, 2010

I have developed some apps for Android, and this questions stays always:

How should I structure my UI? Should I launch activity after activity and leave the phone to make the "back" button, or should I choose more optimized, but more complex to implement, way with switching manually Views and then manually doing the "Back" button functionality?

View 4 Replies View Related

Android :: Switching Activities Back / Need To Make GridView Again?

Sep 22, 2010

I'm starting on Android and got a beginner question on switching between multiple activities. I understand i can go between two activities by invoking an intent and then returning with setResult(). What I want to know is how to jump between multiple activities. Specifically I want to learn about the process life-cycle. I understand how every activity is started ar onCreated(), but I'm not sure how to implement onResume() or onRestart() when I want to come back. So basically I have 3 activities: Activity1, Activity2 and Anctivity3. I start with Activity1 and then invoke Activity2 with an Intent, and Activity2 invokes Activity3. Using buttons. Now I want to come back to Activity1 from Activity3. I do the same thing here too. Make an Intent and call startActivity(Activity1_Intent). But it gives a runtime error.I think I need to implement OnResume() or onRestart(), but I'm not sure how to do this. In onCreate() I make a gridView, so when I come back, do I need to make that gridView again? If anybody could give a small explanation of refer to a tutorial it would be great.

View 1 Replies View Related

Android :: Switching Activities In Phone Start A Fresh JVM?

Mar 18, 2010

Does switching activities in Android start a fresh JVM? It seems like each activity is meant to run as its own "main" method. If I have a singleton (via Guice, not an actual singleton in this case) should I expect to be re-creating it every time I switch activities?

View 1 Replies View Related

Android :: Switching Tabs From Activities Inside Host

May 9, 2010

Currently I have a TabHost implemented with 3 tabs each containing a separate activity. My question is how do I switch between tabs from within one of the activities that is located inside the tab host. ie say i have a button inside one of the tabs[tab 1], when i click on this button it should switch to another tab[tab 2]. To understand my problem click on the link below, http://stackoverflow.com/questions/2541802/android-switch-tabs-from-w.

View 3 Replies View Related

Android : How To Dismiss A Popup Window When Switching Among Tab Activities

Nov 21, 2010

I posted a StackOverflow question here (http://stackoverflow.com/ questions/4226898/dismiss-android-popupwindow-when-switching-to-a-new- tab-in-tab activity/4227034#4227034) but it didn't get any responses. Basically, how can one dismiss a PopupWindow when changing to a different TabActivity? The onPause() method in my TabActivity causes the app to force close.

View 2 Replies View Related

General :: Galaxy Y S6102 Screen Goes Blank / Nothing Appears Except Samsung Logo Screen

Apr 29, 2014

i have tried to install kitkat version for galaxy y duos s6102,for that i installed clockwork mod n cynogenmod n kitkat file..but after installing the screen goes blank,nothing appears except Samsung logo screen,

View 2 Replies View Related

Sony Ericsson Xperia X8 :: Blank Screen / Black Screen / Hang / Freeze Error?

Dec 2, 2010

This was reported in the other thread about X8 Issues, but thought to start a new one to gather feedback from users. It's about the ''black screen'' freezing issue encountered by some users. I have had this several times since owning the phone for a few weeks, so it is a recurring issue. Problem: The phone hangs or appears to be shut down or become unresponsive suddenly. Pressing the hardware buttons doesn't help as the phone doesn't react at all. Solution: Take out cover and battery and restart.Observations: From my own observations, it's not actually a shutdown but a major freezing/hanging. Sometimes when it happens, I can still see vague shades of the display at an angle. After leaving the phone for a while in the pocket, the phone comes back to normal again. Not sure if this is true for all users with this problem. Anyway, gathering more feedback to see how prevalent the problem is, to evaluate whether I should take it to the SE service centre, or whether doing so will help at all.

View 3 Replies View Related

Android :: Content Provider Blank Screen

Sep 16, 2010

My app has one activity and one ContentProvider, the activity is simple in that it's just a splash screen at the moment with no other logic in it (I do intend to have more activities in the app). The ContentProvider uses SQLite as a back end and loads some static data from files on first install, a slow process due to file sizes and database initialization. My problem is that I want the activity to show up as soon as the install starts and maybe display a progress bar or dialog to show the user progress about the install. At the moment I get a blank (white) screen while the ContentProvider is initialising the data which takes quite a long time and I get "Activity idle timeout for history record" warning in LogCat. My splash screen only shows when the Content Provider is done, from the app standpoint this is undesirable behaviour. One potential solutions would be to manually start the provider via an AsyncTask but I have a feeling that this is a bad approach due to the fact that if the activity is interupted and restarted while the install is underway and a new AsyncTast is created through the activity's onCreate() then I'll have worst problems on my hands. Is there a way to start the content provider in the background and display my splash screen activity straight after the app is started? Note that this problem is only an issue on first install.

View 4 Replies View Related

Android :: Blank Screen And ANR While Application Starting Up?

Apr 6, 2010

While opening my application from application launcher. Sometimes I am getting blank screen for long time (almost 3 min). If I perform some key events then I am getting ANR. Log is as follows.

I/ActivityManager( 57): Starting activity: Intent {
action=android.intent.action.MAIN categories ={android.intent.category.LAUNCHER} flags=0x10200000 comp={com.test/com.test.MyScreen} }
E/JavaBinder( 57): !!! FAILED BINDER TRANSACTION !!!

After this I am getting activity launch timeout and Idle timeout. Is there any design issue with my activity or problem with android environment.

View 5 Replies View Related

Android :: MediaPlayer Not Running - Just Blank Screen

Mar 5, 2009

I tried a simple mediaplayer application, just to run a .3gp file. First, i put the .3gp file in "Raw" folder and tried to run, but nothing is displaying, just blank screen only.... please guide me, where i am going wrong. I dont have any xml file, is it needed ??

Heres the code, which i am trying

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

View 9 Replies View Related

Android Emulator Shows Nothing But Blank Screen

May 7, 2014

The problem is that I have created multiple emulators using android 4.4.2 API and none of them show anything but blank screen..I tried an AVD with Google API 19..thats not working either..

View 1 Replies View Related

Android :: End Call On Emulator The Device Screen Goes Blank

Dec 2, 2009

i am writing a widget and trying to prove that it doesn't run when the phone is in deep sleep as i am setting an alarm with type ELAPSED_REALTIME. when i hit the end call on the emulator the device screen goes blank, but i still see my alarms being delivered. am i missing something?

View 4 Replies View Related

Android :: Blank Black Screen While Transiting To New Activity

Jul 16, 2010

I am facing a problem.In my application I have 3 actvities A,B,C which i have declared as singleInstance.I have observed that for the first time when I launch these activities(like A > B or B > C) there is a delay observed and I see a black screen for a while.

I see in the blanch screen the header text that gets displayed is the application name which i have given in the android manifest.xml(android:label="@string/app_name")

I amy unable to understand why this blank screen is observed? Experts please comment on how to avoid it.

View 3 Replies View Related

Android :: Flikie Wallpaper Hd - Blank Black Screen

Jul 10, 2010

Phone - HTC incredible 2.1 no root

I love flikie wallpaper hd app but for some strange reason it fails to load an image sometimes and I just have a blank black screen that stays until I manually change it. I have 400+ wallpapers that I have set to change every 30 min and no I don't have a solid black wallpaper. Anyone else have this problem? Have a solution?

View 2 Replies View Related

Android :: Blank Screen Displayed After Downloading From Browser

Dec 16, 2009

We are developing an application that requires a download of a music file (mp3). We are using the Browser Activity for the same.

The Browser Activity is invoked from the application and the download url is passed to it, like: startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(downloadurl)));

However, after downloading, on the download list page, if we press the Back button, a blank white screen is displayed. Only after we press the Back button a second time on this white screen, the application screen is displayed. This happens because the Browser Activity view is displayed before the actual downloading starts.

This is an issue in the application flow. We need to manage the flow in such a way that the 'Back' key press on the download list view will take the control to the application screen instead of the white screen.

View 3 Replies View Related

HTC EVO 4G :: Screen Goes Blank

Jul 14, 2010

Some background info: I got an HTC Evo a few days after the initial launch. I had no problems with the screen at first at least for a few weeks. Then all of a sudden, the screen would go blank after I took the phone off the charger, or would finish a call, and a few other instances. After dealing with that for a little over a week, I took the Evo back to sprint and got a brand new one. I looked all over the forums, but could not find any answers. I know some others are having this issue, but it doesn't seem that widespread. So I get the new phone, and for the first day, I don't install any of the apps I had on the last phone because of a lack of time. No problems to report the first day of use, so I think I'm in the clear. The next day I start installing all of the apps I had on the first Evo, and bang, it starts to happen again. The screen goes blank, and I can do nothing to turn it on except to pull the battery out and restart the phone which is a monster pain. After all of this, I have to think its a software issue. Some app I have running could be causing this? How likely is it that 2 Evo's have this exact same problem, and that it's hardware related? Here is a list of apps I have installed on my phone: maui9111's Apps on the phone. I tried uninstalling several of them, but still can't find the solution. Anyone have any ideas? I love this phone, but this issue is driving me nuts!

View 13 Replies View Related

Android :: Blank Screen Appear When EditText Get Focus In IDPI Mode

Oct 10, 2010

I found that when EditText in placing at the bottom of screen, and the activity's android:windowSoftInputMode="adjustPan", and the apps run in ldpi(240*320) mode, then when EditText has focus, the content of the activity is panned too far to the above, thus leaving a blank screen between the content of the window and the soft input panel.

You can see the screenshot of this problem at
https://sites.google.com/site/wilderwang/android
Also, the source code to repro this problem can also be get at
https://sites.google.com/site/wilderwang/android

When I test further, if the same apps run in hdpi(480*800), when EditText got focus, the content of the window panned too small thus causing the soft input window cover the EditText view. It seems the distance of the window panned not compute the screen density.

View 2 Replies View Related

Android :: Emulator Start But Window Show Blank Screen

Mar 15, 2010

WARN/WindowManager(61): No focus window, dropping: KeyEvent{action=0 code=82 repeat=0 meta=0 scancode=229 mFlags=8}

View 2 Replies View Related

Android :: How To Avoid Blank Screen On Pause Camera Preview

Jun 18, 2009

I'm running a standard camera preview (i use the camera api demo as a reference).

When i hit the capture button, there is a black screen for a good 1/2 second until the captured image appears.

My question is how can i freeze the last image being previewed on the screen while i do the capture work ? I don't mind that the quality of the displayed image is not as good.

If i hit camera.stopPreview() -> that goes into the black screen which i don't want.

View 2 Replies View Related

Android :: Screen Occasionally Goes Blank On Milestones - Possible Causes / Ways Of Debugging?

Jul 7, 2010

I have an application I am currently working on for a client which is suffering from a particularly hard to debug problem. Every so often, the device screen will go blank, not just while running my application, but entirely. If I press the home button, for instance, it's still blank. This happens fairly rarely ( I myself have only seen it once or twice in a couple of months, and unfortunately couldn't gather log information immediately when it happened. What log info I was able to gather seemed to show that the phone continued to run properly - I was still seeing events in the log file - the screen was just blank ). So far, this has only been observed while running on Motorola Milestones ( this may or may not be coincidence - it's hard to tell given the infrequency of occurance ). Has anyone else observed anything similar? Any suggestions as to possible causes/ways of debugging?

View 3 Replies View Related

HTC Hero :: Screen Goes Blank

Feb 16, 2010

When I make a phone call the screen goes blank after 5 seconds. To end a call, I have to press "home" then "end call".Is there a way I can keep the screen on whilst making a call?I have tried home, menu, settings, then sound & display, without success.

View 5 Replies View Related

Android :: Adding View Extending From SurfaceView To Layout Gives Blank Screen

Jun 5, 2010

I'm very new to Android programming, so this is probably something pretty basic. I just have an xml layout with a few buttons. I'm trying to follow the model given by the JetBoy demo, so I'm adding a view to the layout which extends SurfaceView. When this new view is put in my xml layout, I just get a blank screen.

Here's the XML layout if it helps. The gameview element is what causes the screen to be blank

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

View 2 Replies View Related

HTC Desire :: Screen Stays Blank

Jul 25, 2010

The thing is that time to time my device does not respond to screen touch. For instance: then there is an incoming call it stays blank and I can not see who is calling and at the same time not able to answer it.

Touching the screen does nothing, only after pushing hard buttons, I am able to terminate the call. Also, when I am trying to access the OS from sleep mode by pressing the power button--there is no home screen--it stays blank. The only thing it does---the lights go on the home, menu, back and search buttons.

I did contact ot HTC help service and they told me to try to use the device in safe mode for two days. (this should terminate all 3rd party applications, that might cause the issue). Its my first day that I am use is in the safe mode and so far I do not experience any problems.

I do suspect that the reason of my problem could be the task killer that I am using in order to eliminator some programs running in background. But I did try out several task killers so far, however the issue remains the same

View 22 Replies View Related

HTC Magic :: Screen Goes Blank After Logo Appear

Nov 26, 2009

I have a problem with my magic which is about 4 months old, When i switched the phone on the Vodafone logo and Andrioid logo appear BUT after this the screen goes blank, if you look from a certain angle the screen looks like its on and glowing white.

View 1 Replies View Related

HTC Desire :: Blank Screen During After Call

Sep 30, 2010

I have an HTC Desire and I managed to break the LCD. I had the LCD and touchscreen replaced (don't ask long story) and now I have the following issue: When I make a call and even before I lift the phone to my ear the screen goes blank. None of the buttons work but the call is fine - I can be heard/hear the other person. When the other person ends the call the phone bips to tell me the call is over, but the screen stays blank. I can re-activate the screen by receiving a missed call - ie calling my phone and then hanging up re-activates the screen. In addition, when my phone rings the screen is fine, but as soon as I answer the call and lift the phone to my ear the screen goes off as before. The only other way to bring the screen back is to remove the battery. Whilst the screen is blank I loose all touch-screen capability too. Everything else on the phone works perfectly, sync to email, text, GPS, camera, internet etc all not a problem.

View 6 Replies View Related

HTC Desire :: Screen Goes Blank On Calls

Apr 20, 2010

Had a HTC desire now for a couple of weeks and Ive come across an annoying problem, when I make or recieve a call and raise the phone to my head the screen goes blank which in it's self is fine, but after the call has concluded the screen remains blank and there appears to be know why to get it to leap back into life ive tried moving /jiggling the phone and pressing all the buttons including the power, the only way seems to be to remove the battery and force a reboot. Anyone else experienced this or have any ideas that might help solve it?

View 49 Replies View Related

HTC EVO 4G :: Hit Home Button / Blank Screen

Oct 31, 2010

So I have had my Evo for about 2 weeks, and all of a sudden when I am in an app, then hit the home button, I am presented with a blank home screen for sometimes up to 15 seconds then all of my widgets and icons appear. It is actually quite annoying now that it is doing this almost every other time I go back to the home screen. It even happens when I hit the back button sometimes to get back to any one of my 5 home screens.Has anyone else had this issue?

View 9 Replies View Related

HTC EVO 4G : Front Camera Causes Blank Screen / How To Fix?

Jun 5, 2010

First of all. So I picked up my EVO a couple of hours ago. I was messing around with it, and switched the camera to the front one, which has now caused the screen to be blank, just black. None of the buttons function when it's like that, except the home screen. Please let me know if anyone knows anything I can do about it tonight.

View 7 Replies View Related







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