2012-03-18 2 views
1

저는 태블릿이 시작될 때마다 비디오를 재생해야하는 안드로이드 플랫폼 용 프로젝트를 시작하려고합니다. AutomateIt과 같은 타사 자동화 응용 프로그램을 사용하여 시도했지만 성공하지 못했습니다. Eclipse 및 Android SDK를 사용하여 시도했지만 실제로 응용 프로그램에 비디오를 통합하거나 장치 부팅시 자동 실행 비디오 스크립트를 실행하는 방법을 모르겠습니다. 누구든지이 프로젝트에서 나를 도울 수 있습니까? 많은 감사부팅시 비디오 재생

+0

확인 [여기] (http://www.xda-developers.com/android/boot-animation-manager-makes-changing-animations-a-breeze/)이 트릭을 할 것입니다 . – moujib

답변

0

롬 빌딩 (xda dev)을보아야 할 수도 있고, 사용자 지정 롬 또는 커널이 부팅 비디오를 수정할 수도 있습니다. Cyanogen 팀은 다른 커널 개발자와 마찬가지로.

0

당신이 비디오의 시작 트리거 의도 필터를 사용할 수 있습니다

<receiver android:name=".BootReceiver"> 
       <intent-filter> 
        <action android:name="android.intent.action.BOOT_COMPLETED" /> 
       </intent-filter> 
    </receiver> 

당신이 다음 RECEIVE_BOOT_COMPLETED 권한

<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> 

수신기가 필요합니다을 동영상 활동을 열 수 있습니다.

(210)
import android.content.BroadcastReceiver; 
import android.content.Context; 
import android.content.Intent; 

public class BootReceiver extends BroadcastReceiver { 

     @Override 
     public void onReceive(Context context, Intent intent) { 
      Intent start_i=new Intent(context,YourVideoPlaybackActivity.class);    
      start_i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);      
      context.startActivity(start_i);           
     } 

} 
+0

이것은 스크립트입니까? 이것이 그렇다면 어떻게 사용할 수 있습니까? – user1276874

+0

아니요, 안드로이드 코드입니다. - 스크립트가 아닙니다. – ligi