Форум программистов, компьютерный форум CyberForum.ru
Наши страницы

Activity (сворачивание-возобновление-закрытие) - Программирование Android

Войти
Регистрация
Восстановить пароль
Другие темы раздела
Программирование Android порядок вывода приложений на Google Play http://www.cyberforum.ru/android-dev/thread654321.html
Всем добрый день. Пожалуйста, подскажите, какие факторы влияют на порядок отображения приложений на GP и iTunes? 1. Количество установок и оценка пользователей - это понятно. 2. Имеет ли значение...
Программирование Android STL и другие библиотеки По какой-то для меня не понятной причине не подтягиваются инклюды. Лог сборки. 23:28:39 **** Incremental Build of configuration Default for project TestNativeApp **** ndk-build.cmd V=1 ... http://www.cyberforum.ru/android-dev/thread654085.html
работа с аудио Программирование Android
Возможно ли, считая звук с микрофона работать с его параметрами? амплитудой и тд...?
Программирование Android Программирование Android
Привет форумчане! Решил заняться программированием под андроид(с 0), в связи с этим несколько вопросов: 1. С чего начинать(Java,xml, мб еще что) 2. реально ли учить самому 3. хорошие учебники и...
Программирование Android Стоит ли изучать андроид или проще заказать программу? http://www.cyberforum.ru/android-dev/thread653500.html
Добрый день. Задача у меня стоит такая: необходимо написать простенькую программу под андроид. Программа должна отслеживать входящие звонки, отправлять http запрос на сервер с определившимся...
Программирование Android Координаты GPS внутри service Есть сервис RepeatingAlarmService Код public class RepeatingAlarmService extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { ... подробнее

Показать сообщение отдельно
56illusion
0 / 0 / 0
Регистрация: 20.08.2012
Сообщений: 37
23.09.2012, 21:43  [ТС]
вот что нашол крысным цветом

channel '4103c3e0 GoldenApps.Thockey/GoldenApps.Thockey.MenuActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x8

InputDispatcher
channel '4103c3e0 GoldenApps.Thockey/GoldenApps.Thockey.MenuActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

Первое активити где проподает фокус после возврата с игры
Java
1
2
3
4
5
6
7
8
9
@Override
    protected void onResume()
    {
        super.onResume();
        
        _menu.requestFocus();
        this._menu.setFocusable(true);      
        this._menu.setFocusableInTouchMode(true);
    }
Surface View class

Java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
    public void surfaceDestroyed(SurfaceHolder holder) 
    {
        Log.d("MY", "destroy");
        boolean flag=true;
        DrawThread.SetRunningState(false);
        while(flag)
        {
            try
            {
                DrawThread.join();
                DrawThread=null;
                flag=true;
            }
            catch(InterruptedException e){}
        }
        
    }
    // Creating of drawing zone
    public void surfaceCreated(SurfaceHolder holder)
    {       
        if(this.DrawThread==null||this.DrawThread.getState()==Thread.State.TERMINATED)
        {
            DrawThread=new Manager(this.holder,getContext(),this,this.intent);
            DrawThread.SetRunningState(true);
            DrawThread.start();
        }
        else
        {
            DrawThread.SetRunningState(true);
            DrawThread.start();
        }
    }
Активити игры где вызываеться surface view class

Java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 @Override
   public void onPause()
   {
       super.onPause();
     //  v.surfaceDestroyed();
      // v.destroyDrawingCache();
       //v.clearFocus();
      // v.TerminateThread();
       this.v.DrawThread.SetRunningState(false);       
   }
   
   @Override
   public void onResume()
   {
       super.onResume();     
   }
Добавлено через 1 минуту
DrawThread ето класс поток в котором рисуеться графика

Добавлено через 5 минут
09-23 19:40:51.770: I/AudioFlinger(240): stop output streamType (1, 3) for 1
09-23 19:40:52.000: I/InputReader(304): dispatchTouch::touch event's action is 1, pending(waiting finished signal)=0
09-23 19:40:52.000: I/InputDispatcher(304): Delivering touch to current input target: action: 1, channel '40d96fd0 GoldenApps.Thockey/GoldenApps.Thockey.MainActivity (server)'
09-23 19:40:52.000: I/InputDispatcher(304): Delivering touch to current input target: action: 1, channel 'TouchIntercepter (server)'
09-23 19:40:52.850: V/AudioPolicyManager(240): stopOutput() output 1, stream 3, session 463 mPhoneState 0
09-23 19:40:52.850: V/AudioPolicyManager(240): getNewDevice() selected device 0
09-23 19:40:52.850: V/AudioPolicyManager(240): setOutputDevice() output 1 device 0 delayMs 0
09-23 19:40:52.850: V/AudioPolicyManager(240): setOutputDevice() setting same device 0 or null device for output 1
09-23 19:40:52.860: I/AudioFlinger(240): stop output streamType (0, 3) for 1
09-23 19:40:52.860: D/AudioHardware(240): AudioStreamOutALSA::setParameters() stop_output_streamtype=3
09-23 19:40:54.230: D/HierarchicalStateMachine(304): handleMessage: E msg.what=65619
09-23 19:40:54.230: D/HierarchicalStateMachine(304): processMsg: ConnectedState
09-23 19:40:54.230: D/WifiStateMachine(304): ConnectedState{ what=65619 when=-3ms arg1=15 }
09-23 19:40:54.240: D/HierarchicalStateMachine(304): handleMessage: X
09-23 19:40:55.250: D/dalvikvm(3567): GC_EXPLICIT freed 79K, 7% free 6378K/6791K, paused 3ms+5ms
09-23 19:40:55.610: I/InputReader(304): dispatchTouch::touch event's action is 0, pending(waiting finished signal)=0
09-23 19:40:55.610: I/InputDispatcher(304): Delivering touch to current input target: action: 0, channel '408498c8 StatusBar (server)'
09-23 19:40:55.610: I/InputDispatcher(304): Delivering touch to current input target: action: 0, channel 'TouchIntercepter (server)'
09-23 19:40:55.610: I/KeyguardViewMediator(304): mShowing false mNeedToReshowWhenReenabled false
09-23 19:40:55.610: I/ProvisionLog(304): [KeyguardUpdateMonitor] in isDeviceProvisioned(), now return true
09-23 19:40:55.610: I/KeyguardViewMediator(304): mShowing false mNeedToReshowWhenReenabled false
09-23 19:40:55.610: I/ProvisionLog(304): [KeyguardUpdateMonitor] in isDeviceProvisioned(), now return true
09-23 19:40:55.610: I/InputDispatcher(304): Delivering key to current input target: action: 0, channel '40d96fd0 GoldenApps.Thockey/GoldenApps.Thockey.MainActivity (server)'
09-23 19:40:55.610: I/InputDispatcher(304): Delivering key to current input target: action: 0, channel 'TouchIntercepter (server)'
09-23 19:40:55.610: I/TabletStatusBar(353): MSG_UPDATE_STATUSBAR_AGAIN
09-23 19:40:55.720: I/InputReader(304): dispatchTouch::touch event's action is 1, pending(waiting finished signal)=0
09-23 19:40:55.720: I/InputDispatcher(304): Delivering touch to current input target: action: 1, channel '408498c8 StatusBar (server)'
09-23 19:40:55.720: I/InputDispatcher(304): Delivering touch to current input target: action: 1, channel 'TouchIntercepter (server)'
09-23 19:40:55.720: I/KeyguardViewMediator(304): mShowing false mNeedToReshowWhenReenabled false
09-23 19:40:55.720: I/ProvisionLog(304): [KeyguardUpdateMonitor] in isDeviceProvisioned(), now return true
09-23 19:40:55.720: I/KeyguardViewMediator(304): mShowing false mNeedToReshowWhenReenabled false
09-23 19:40:55.720: I/ProvisionLog(304): [KeyguardUpdateMonitor] in isDeviceProvisioned(), now return true
09-23 19:40:55.730: I/InputDispatcher(304): Delivering key to current input target: action: 1, channel '40d96fd0 GoldenApps.Thockey/GoldenApps.Thockey.MainActivity (server)'
09-23 19:40:55.730: I/InputDispatcher(304): Delivering key to current input target: action: 1, channel 'TouchIntercepter (server)'
09-23 19:40:55.750: D/WindowManager(304): Setting visibility of AppWindowToken{410aed70 token=ActivityRecord{40bba4a0 GoldenApps.Thockey/.MenuActivity}}: true
09-23 19:40:55.760: I/SurfaceFlinger(237): id=365(5) createSurface 0x141724 for pid 8136 (800x1232),2 flag=0, GoldenApps.Thockey/GoldenApps.Thockey.MenuActivity
09-23 19:40:55.760: D/WindowManager(304): Desired input method target: Window{40fa1b68 GoldenApps.Thockey/GoldenApps.Thockey.MenuActivity paused=false}
09-23 19:40:55.760: D/WindowManager(304): Current focus: Window{40fa1b68 GoldenApps.Thockey/GoldenApps.Thockey.MenuActivity paused=false}
09-23 19:40:55.760: D/WindowManager(304): Last focus: Window{40fa1b68 GoldenApps.Thockey/GoldenApps.Thockey.MenuActivity paused=false}
09-23 19:40:55.760: D/WindowManager(304): IM target client: com.android.internal.view.IInputMethodClient$Stub$Proxy@40f62368
09-23 19:40:55.760: D/WindowManager(304): IM target client binder: android.os.BinderProxy@40a10780
09-23 19:40:55.760: D/WindowManager(304): Requesting client binder: android.os.BinderProxy@40a10780
09-23 19:40:55.760: D/CLIPBOARD(304): Hide Clipboard dialog inside hideSoftInput() !
09-23 19:40:55.760: D/CLIPBOARD(304): Hide Clipboard dialog inside windowGainedFocus() !
09-23 19:40:55.760: D/InputManagerService(304): startInputLocked: cs=ClientState{40e184f8 uid 10126 pid 8136}, cs.pid=8136, Binding.getCallingPid()=304
09-23 19:40:55.760: I/WindowManager(304): Putting input method here!
09-23 19:40:55.760: D/WindowManager(304): w.mAttrs.token=ActivityRecord{40bba4a0 GoldenApps.Thockey/.MenuActivity}
09-23 19:40:55.760: D/WindowManager(304): w.mToken=AppWindowToken{410aed70 token=ActivityRecord{40bba4a0 GoldenApps.Thockey/.MenuActivity}}
09-23 19:40:55.760: D/WindowManager(304): token=AppWindowToken{410aed70 token=ActivityRecord{40bba4a0 GoldenApps.Thockey/.MenuActivity}}
09-23 19:40:55.760: I/WindowManager(304): Placing input method @3
09-23 19:40:55.840: V/AudioHardware(240): AudioStreamOutALSA::standby
09-23 19:40:55.850: D/AudioHardware(240): AudioHardware pcm playback is going to standby.
09-23 19:40:55.850: V/AudioHardware(240): closeMixer_l() mMixerOpenCnt: 1
09-23 19:40:55.850: I/alsa_mixer(240): mixer_close
09-23 19:40:55.850: V/AudioHardware(240): closeMixer_l mMixerOpenCnt = 0 end
09-23 19:40:55.850: I/AudioHardware(240): closePcmOut_l() mPcmOpenCnt: 1
09-23 19:40:55.850: V/alsa_pcm(240): pcm_close
09-23 19:40:55.850: V/alsa_pcm(240): real pcm_close
09-23 19:40:55.850: V/AudioHardware(240): closePcmOut_l end
09-23 19:40:55.870: V/WindowManager(304): Preventing status bar from hiding by policy
09-23 19:40:55.880: V/WindowManager(304): Preventing status bar from hiding by policy
09-23 19:40:55.880: D/WindowManager(304): Setting visibility of AppWindowToken{40839060 token=ActivityRecord{40838ec0 GoldenApps.Thockey/.MainActivity}}: false
09-23 19:40:55.890: V/WindowManager(304): Preventing status bar from hiding by policy
09-23 19:40:55.910: V/WindowManager(304): Preventing status bar from hiding by policy
09-23 19:40:55.920: V/WindowManager(304): Preventing status bar from hiding by policy
09-23 19:40:55.940: V/WindowManager(304): Preventing status bar from hiding by policy
09-23 19:40:55.950: V/WindowManager(304): Preventing status bar from hiding by policy
09-23 19:40:55.970: V/WindowManager(304): Preventing status bar from hiding by policy
09-23 19:40:55.990: V/WindowManager(304): Preventing status bar from hiding by policy
09-23 19:40:56.000: V/WindowManager(304): Preventing status bar from hiding by policy
09-23 19:40:56.020: V/WindowManager(304): Preventing status bar from hiding by policy
09-23 19:40:56.030: V/WindowManager(304): Preventing status bar from hiding by policy
09-23 19:40:56.050: V/WindowManager(304): Preventing status bar from hiding by policy
09-23 19:40:56.070: V/WindowManager(304): Preventing status bar from hiding by policy
09-23 19:40:56.080: V/WindowManager(304): Preventing status bar from hiding by policy
09-23 19:40:56.100: V/WindowManager(304): Preventing status bar from hiding by policy
09-23 19:40:56.120: V/WindowManager(304): Preventing status bar from hiding by policy
09-23 19:40:56.980: I/InputReader(304): dispatchTouch::touch event's action is 0, pending(waiting finished signal)=0
09-23 19:40:56.980: I/InputDispatcher(304): Delivering touch to current input target: action: 0, channel '40fa1b68 GoldenApps.Thockey/GoldenApps.Thockey.MenuActivity (server)'
09-23 19:40:56.980: I/InputDispatcher(304): Delivering touch to current input target: action: 0, channel 'TouchIntercepter (server)'
09-23 19:40:57.070: I/InputReader(304): dispatchTouch::touch event's action is 1, pending(waiting finished signal)=1
09-23 19:40:57.240: D/HierarchicalStateMachine(304): handleMessage: E msg.what=65619
09-23 19:40:57.240: D/HierarchicalStateMachine(304): processMsg: ConnectedState
09-23 19:40:57.240: D/WifiStateMachine(304): ConnectedState{ what=65619 when=0 arg1=15 }
09-23 19:40:57.240: D/HierarchicalStateMachine(304): handleMessage: X
09-23 19:40:57.340: I/InputReader(304): dispatchTouch::touch event's action is 0, pending(waiting finished signal)=1
09-23 19:40:57.440: I/InputReader(304): dispatchTouch::touch event's action is 1, pending(waiting finished signal)=1
09-23 19:40:57.650: I/InputReader(304): dispatchTouch::touch event's action is 0, pending(waiting finished signal)=1
09-23 19:40:57.770: I/InputReader(304): dispatchTouch::touch event's action is 1, pending(waiting finished signal)=1
09-23 19:40:58.110: I/InputReader(304): dispatchTouch::touch event's action is 0, pending(waiting finished signal)=1
09-23 19:40:58.190: I/InputReader(304): dispatchTouch::touch event's action is 1, pending(waiting finished signal)=1
09-23 19:40:58.300: I/InputReader(304): dispatchTouch::touch event's action is 0, pending(waiting finished signal)=1
09-23 19:40:58.390: I/InputReader(304): dispatchTouch::touch event's action is 1, pending(waiting finished signal)=1
09-23 19:40:58.510: I/InputReader(304): dispatchTouch::touch event's action is 0, pending(waiting finished signal)=1
09-23 19:40:58.600: I/InputReader(304): dispatchTouch::touch event's action is 1, pending(waiting finished signal)=1
09-23 19:40:58.800: I/InputReader(304): dispatchTouch::touch event's action is 0, pending(waiting finished signal)=1
09-23 19:40:58.900: I/InputReader(304): dispatchTouch::touch event's action is 1, pending(waiting finished signal)=1
09-23 19:40:59.090: I/InputReader(304): dispatchTouch::touch event's action is 0, pending(waiting finished signal)=1
09-23 19:40:59.200: I/InputReader(304): dispatchTouch::touch event's action is 1, pending(waiting finished signal)=1
09-23 19:40:59.370: I/InputReader(304): dispatchTouch::touch event's action is 0, pending(waiting finished signal)=1
09-23 19:40:59.450: I/InputReader(304): dispatchTouch::touch event's action is 1, pending(waiting finished signal)=1
09-23 19:41:00.000: D/KeyguardUpdateMonitor(304): received broadcast android.intent.action.TIME_TICK
09-23 19:41:00.000: D/KeyguardUpdateMonitor(304): handleTimeUpdate
09-23 19:41:00.000: D/BatteryService(304): update start
09-23 19:41:00.000: I/StatusBar.Clock(353): onReceive:android.intent.action.TIME_TICK
09-23 19:41:00.010: E/TODmobile(537): onReceive action=android.intent.action.TIME_TICK
09-23 19:41:00.010: E/TODmobile(537): hour : 19 minute : 41
09-23 19:41:00.010: E/DigitalClockWidget(537): updateWidgets
09-23 19:41:00.010: E/TODmobile(537): hour : 19 minute : 41
09-23 19:41:00.010: I/StatusBar.Clock(353): onReceive:android.intent.action.TIME_TICK
09-23 19:41:00.030: I/LauncherAppWidgetHostView(387): updateAppWidget() : 384x224, Widget Name : com.sec.android.widgetapp.digitalclock
09-23 19:41:00.240: D/HierarchicalStateMachine(304): handleMessage: E msg.what=65619
09-23 19:41:00.240: D/HierarchicalStateMachine(304): processMsg: ConnectedState
09-23 19:41:00.240: D/WifiStateMachine(304): ConnectedState{ what=65619 when=-3ms arg1=15 }
09-23 19:41:00.260: D/HierarchicalStateMachine(304): handleMessage: X
09-23 19:41:00.990: I/InputReader(304): dispatchTouch::touch event's action is 0, pending(waiting finished signal)=1
09-23 19:41:01.660: I/InputReader(304): dispatchTouch::touch event's action is 1, pending(waiting finished signal)=1
09-23 19:41:02.170: I/InputReader(304): dispatchTouch::touch event's action is 0, pending(waiting finished signal)=1
09-23 19:41:02.720: I/InputReader(304): dispatchTouch::touch event's action is 1, pending(waiting finished signal)=1
09-23 19:41:02.820: I/InputReader(304): dispatchTouch::touch event's action is 0, pending(waiting finished signal)=1
09-23 19:41:02.980: W/PowerManagerService(304): Timer 0x3->0x3|0x0
09-23 19:41:03.260: I/InputReader(304): dispatchTouch::touch event's action is 1, pending(waiting finished signal)=1
09-23 19:41:03.260: D/HierarchicalStateMachine(304): handleMessage: E msg.what=65619
09-23 19:41:03.260: D/HierarchicalStateMachine(304): processMsg: ConnectedState
09-23 19:41:03.260: D/WifiStateMachine(304): ConnectedState{ what=65619 when=-3ms arg1=15 }
09-23 19:41:03.270: D/HierarchicalStateMachine(304): handleMessage: X
09-23 19:41:04.190: E/Watchdog(304): !@Sync 523
09-23 19:41:05.750: W/ActivityManager(304): Launch timeout has expired, giving up wake lock!
09-23 19:41:05.750: W/ActivityManager(304): Activity idle timeout for ActivityRecord{40bba4a0 GoldenApps.Thockey/.MenuActivity}
09-23 19:41:05.750: I/Process(304): Sending signal. PID: 8136 SIG: 3
09-23 19:41:05.750: I/dalvikvm(8136): threadid=4: reacting to signal 3
09-23 19:41:05.750: D/ActivityManager(304): handleActivityTimeout pid=[8136] cnt=5
09-23 19:41:05.770: I/dalvikvm(8136): Wrote stack traces to '/data/anr/traces.txt'
09-23 19:41:06.270: D/HierarchicalStateMachine(304): handleMessage: E msg.what=65619
09-23 19:41:06.270: D/HierarchicalStateMachine(304): processMsg: ConnectedState
09-23 19:41:06.270: D/WifiStateMachine(304): ConnectedState{ what=65619 when=-3ms arg1=15 }
09-23 19:41:06.280: D/HierarchicalStateMachine(304): handleMessage: X
: E/(): Device disconnected
0
 
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Рейтинг@Mail.ru