Вопрос по android – Запустите приложение Android без основной Активности и запустите Сервис по запуску приложения

77

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceededstackoverflow.com/questions/4468006/… Munish Kapoor

Ваш Ответ

4   ответа
4

<application android:allowBackup="true"
    android:label="@string/app_name"
    android:icon="@mipmap/ic_launcher"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    <service android:name="com.whatever.myservice.MyService">
        <intent-filter>
            <action android:name="com.whatever.myservice.MyService" />
        </intent-filter>
    </service>
</application>

am startservice -n com.whatever.myservice/.MyService

ps | grep whatever

Error: User Rate Limit Exceeded
113

In your Manifest, set the Activity theme to Theme.Translucent.NoTitleBar. Don't bother with a layout for your Activity, and don't call setContentView(). In your Activity's onCreate(), start your Service with startService(). Exit the Activity with finish() once you've started the Service.

Error: User Rate Limit Exceeded Meher
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded Meher
Error: User Rate Limit Exceeded Meher
Error: User Rate Limit Exceeded
2

Error: User Rate Limit Exceeded
Error: User Rate Limit ExceededNo default activity found.

Error: User Rate Limit ExceededEdit ConfigurationError: User Rate Limit ExceededLaunch optionError: User Rate Limit ExceededLaunchError: User Rate Limit ExceededNothing. Then click ok and run the App. No app will be show in the Apps menu.

28

BroadcastReceiverService
Android - Start service on boot

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

Service

Error: User Rate Limit ExceededServiceError: User Rate Limit ExceededActivityError: User Rate Limit ExceededServiceError: User Rate Limit Exceeded
Error: User Rate Limit Exceeded Meher
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded

Похожие вопросы