Splash screen problem

2010-07-09  来源:本站原创  分类:Mobile  人气:153 

Today get the splash screen, the flash of time in return to build the splash screen press the stop, but the time to load the main program will be, I do not want to load the main program, press the back key I want to end the program:

private static final int SPLASH_DISPLAY_TIME = 3000;
Handler ur = new Handler ();
Runnable yourRunnable = new Runnable () (
public void run () (
mainIntent = new Intent (SplashScreen.this, MyApp.class);
SplashScreen.this.startActivity (mainIntent);
SplashScreen.this.finish ();
overridePendingTransition (R.anim.fadein,
ur.postDelayed (yourRunnable, SPLASH_DISPLAY_TIME);

onDestroy call

ur.removeCallbacks (yourRunnable);

  • Splash screen problem 2010-07-09

    Today get the splash screen, the flash of time in return to build the splash screen press the stop, but the time to load the main program will be, I do not want to load the main program, press the back key I want to end the program: private static fi

  • Ubuntu 10.04 low resolution boot screen problem Solution 2010-08-19

    Ubuntu 10.04, x64 systems. In order to use the desktop effects compiz, installed the restricted Nvidia drivers, but the startup splash screen resolution of 900 by the 1440 * 640 * 480 into the lower. Read many online posts, including posts jorux "sol

  • win7 splash screen solution 2010-10-16

    User response recently win7 operating system in use when a situation often encountered: the time in the open other programs, always will be an instant flash back to the desktop screen, ie the most obvious, switch tabs, the screen is always flashing w

  • [Original] java startup screen (splash screen) splash 2010-03-29

    Java jar package on the startup screen (splash screen) splash Objective: To start the jar when the startup screen, and dynamic display of text. Specific code is as follows: package cmsdb.gui; import java.awt.Color; import java.awt.Dimension; import j

  • AIR (window container example of the splash screen) 2010-04-13

    Window sample container The following example shows basic use Window component. Examples include two MXML files. WindowedApplication container using the first file is the application's initial window. The second file using Window container, to define

  • splash screen produced by two methods 2010-04-29

    1. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.splash); // thread for displaying the SplashScreen Thread splashTread = new Thread() { @Override public void run() { try { int waited = 0

  • Screenshots. Splash screen (Timer). Input window - DFL for D2.053 2011-05-16

    This little exercise with D2.053 + DFL completed the following functions: 1. Screenshot (Chris's example); 2. Screenshot to do with the splash screen, Timer (with Chris's example); 3. Database login window (database connection part of the suspense di

  • 创建一个android的Splash Screen 2012-08-15

    在开发android应用的时候 ,尤其是游戏的时候,经常需要有一个Splash Screen(就类似于Eclipse启动的画面).但是,android好像没有对这个有很好的支持(也许我没找到吧).比如iphone,只需要将 Splash的图片以default命名,就可以可以出现Splash Screen了,方式很简单.那在android中怎么办呢?我试了两种方法,下面我给大家一一道来. 第一种,我采用的方式是在Activity中新开一个线程,这个线程判断过去了多长时间,如果到大了设定的时间,则结

  • 如何创建启动界面Splash Screen 2012-11-26

    如何创建启动界面Splash Screen 启动界面Splash Screen在应用程序是很常用的,往往在启动界面中显示产品Logo.公司Logo或者开发者信息,如果应用程序启动时间比较长,那么启动界面就是一个很好的东西,可以让用户耐心等待这段枯燥的时间. Android 应用程序创建一个启动界面Splash Screen非常简单.比如创建一个工程MySample,主Acitity就叫MySample,创建另一个Activity叫 SplashScreen,用于显示启动界面,资源文件为splas

  • Ubuntu 10.04 X Window black screen problem 2010-08-13

    Problem Description: The system normally starts to the graphical user interface, use the process of irregular black or Huaping, the system does not respond (key combination ctl + alt + F2 ~ F8 not responding) can only be reset by power off. Google to

  • ubuntu9.10 set the splash screen after the grub2 image resolution and background 2010-06-19

    ubuntu9.10 using the grub2 His profile is / boot / grub / grub.cfg This configuration file is / etc / default / grub file and / etc / grub.d folder of each file generated to change the file, install grub2 Quote sudo apt-get install grub2 Modify these

  • <Switch> Vs2005 crystal report produced pop-up database login screen problem + Dynamic login codes 2010-06-28

    Crystal Reports prior to the time to do all testing on this machine, are normal. But in another computer running the database connection is always a pop-up login screen, no way exhausted by all the methods, Last suspect is not piracy ... ... GOOGLE f

  • android screen problem resolution procedures 2011-01-10

    A: Different layout Android phone screen sizes, there are 480x320, 640x360, 800x480. How to make App automatically adapt to different screen it? Is actually very simple, just create a directory in the res folder different layout, such as layout-640x3

  • swing Splash Screen 2011-12-08

    关于登陆之前的那个欢迎屏幕,很多人都是用一个JWindow来使用,其实java本身具备了这样的机制,关于使用JWindow可以看看我那个Frame透明和形状也可以达到一个好的效果.不过JVM提供的比较好,内容如下. 主要来自于http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/splashscreen/. 但是哪里的代码好有点问题,我的是jdk7.不知道是不是这个原因,我修改之后的代码. //http://ja

  • Update game screen problem thread 2010-03-26

    On the daytodayme http://www.javaeye.com/topic/435147 Call Handler.post (Runnable r) method, Runnable run where the thread in the UI, so you can directly call the View.invalidate () Quote package com.ray.test; import android.app.Activity; import andr

  • ThinkPadT400 solve ubuntu startup black screen problem 2011-09-15

    Turned out to be caused by dual graphics card, enter the bios ---> config ----> display The third option Graphics Device (switchable graphics card) Graphics Device (switchable graphics card) there are three options integrated graphics (integrated gr

  • Constructed image using mask effect java2D 2010-03-23

    Quote A few days ago to do a project need to achieve the Applet in the picture mask effect, so some information in the online search, and finally engage in out. Issue to share with you what import java.awt.AlphaComposite; import java.awt.BorderLayout

  • Plasma and flat screen printing solutions splash 2010-02-18

    Keyword: Flat Screen Printing Flat screen printing paste may be due to a sputtering, uneven screen tension; paste viscosity inappropriate. 2, scraper poor choice; from the box too quickly. Can use the following methods to solve: when using pressure S

  • android startup screen Splash (method 2) 2010-09-07

    On an article that the first method. 1, with two Activity, the program starts when the first load Activity, and then triggered by the tick N seconds startActivity another one Activity. 2, using a Activity, you can use View.gone () this method. Remove

  • ubuntu 10.04 can not modify the login screen solution 2010-08-10

    To upgrade to ubuntu 10.04, to experience a new version! Found not to modify the registry interface, the Internet is a circle did not find a solution. Finally to found a foreign website content. The perfect solution to this problem! Oh, here recorded