This repository has been archived by the owner on Nov 4, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start app on system launch, NotificationsService that will keep app r…
…unning in background, special connection to receive update only about new messages, option to disable NotificationsService Former-commit-id: 7f60cf4763ff7230d571c2328570f1664ea13108
- Loading branch information
DrKLO
committed
May 20, 2014
1 parent
8ba6619
commit 5fb45f6
Showing
25 changed files
with
379 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
TMessagesProj/src/main/java/org/telegram/messenger/AppStartReceiver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* This is the source code of Telegram for Android v. 1.4.x. | ||
* It is licensed under GNU GPL v. 2 or later. | ||
* You should have received a copy of the license in this archive (see LICENSE). | ||
* | ||
* Copyright Nikolai Kudashov, 2013-2014. | ||
*/ | ||
|
||
package org.telegram.messenger; | ||
|
||
import android.content.BroadcastReceiver; | ||
import android.content.Context; | ||
import android.content.Intent; | ||
|
||
import org.telegram.ui.ApplicationLoader; | ||
|
||
public class AppStartReceiver extends BroadcastReceiver { | ||
public void onReceive(Context context, Intent intent) { | ||
Utilities.RunOnUIThread(new Runnable() { | ||
@Override | ||
public void run() { | ||
ApplicationLoader.startPushService(); | ||
} | ||
}); | ||
} | ||
} |
68 changes: 0 additions & 68 deletions
68
TMessagesProj/src/main/java/org/telegram/messenger/AwakeService.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.