Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 3212

delphi: how to implementat static receiver on android

$
0
0

 int AndroidManifest.xml

  like this:

              receiver android:name="com.baidu.push.example.MyPushMessageReceiver"

              intent-filter

                       action android:name="com.baidu.android.pushservice.action.MESSAGE"

java code:

public class MyPushMessageReceiver  extends PushMessageReceiver {

    /** TAG to Log */

    public static final String TAG = MyPushMessageReceiver.class

            .getSimpleName();

    public static  String SRES;

......          

           

        

               

             

               

               

           

       

           

               

               

               

               

               

           

       

           

               

               

               

               

               

           

       

               

               

               

               

               

           

       

               

               

               

               

   

               

               

               

               

           

       


Viewing all articles
Browse latest Browse all 3212

Trending Articles