2014-05-22 2 views
0

실행기 앱 및 잠금 화면 앱을 만들려면 Manifest 파일에 입력해야하는 항목은 무엇입니까?실행기 및 LockScreen 앱의 매니페스트 파일

+0

체크 아웃 [this] (http://stackoverflow.com/questions/16911049/create-custom-lockscreen-for-android-4-0-or-above) 잠금 화면에 대한 답변입니다. 해당 프로젝트의 매니페스트는 [여기]로 제공됩니다 (https://github.com/Joisar/LockScreenApp/blob/master/LockScreenApp/AndroidManifest.xml). – AndyFaizan

답변

0

잠금 화면에 대한 답변은 this입니다. 해당 프로젝트에 대한 매니페스트는 참조 용

붙여 넣기 여기 here 주어집니다 :

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.lockscreen" 
    android:versionCode="1" 
    android:versionName="1.0" > 

    <uses-sdk android:minSdkVersion="8" /> 

    <application 
     android:icon="@drawable/lockicon" 
     android:label="@string/app_name"> 
     <activity android:label="@string/app_name" 
      android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 
      android:screenOrientation="portrait" 
      android:name=".LockScreenAppActivity" 
      > 
      <intent-filter > 
       <action android:name="android.intent.action.MAIN" /> 

       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 


     <activity 
      android:name=".StartLockScreen" 
      android:theme="@style/Theme.Transparent" > 
      <!-- 
<intent-filter > 
<action android:name="android.intent.action.MAIN" /> 



<category android:name="android.intent.category.LAUNCHER" /> 
<category android:name="android.intent.category.HOME" /> 
<category android:name="android.intent.category.DEFAULT" /> 


</intent-filter> 
--></activity> 

     <service android:name=".MyService" > 
     </service> 

     <receiver 
      android:enabled="true" 
      android:name="receiver.lockScreenReeiver" > 
      <intent-filter > 
       <action android:name="android.intent.action.BOOT_COMPLETED" /> 

      </intent-filter> 
     </receiver> 
    </application> 

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


</manifest> 

은 실행 프로그램으로, 안드로이드 팀 자체에서 제공되는 "홈 화면 교체 샘플을"보십시오. Android SDK 관리자에서 다운로드하십시오. 필요한 SDK 용 "Sample for SDK"옵션을 선택하십시오. 다운로드가 완료되면 다음 단계에 따라 새 프로젝트를 만들 :

파일 -> 새로 만들기 -> 기타 -> 안드로이드 -> 안드로이드 샘플 프로젝트 -> 안드로이드 XX -> 홈 -> 마침

Home sample project selection

관련 문제