Receiving Cell Broadcast for showing current location (Channel 50) in android












9















I've developed an Android application which shows current location (Channel 50) using Cell Broadcast message. I can't find any solution to enable/disable cell broadcast using my application. I enabled cell broadcast in standard SMS settings. The application is working well. One problem is that it also showing location name notification area of android and message as standard SMS application. It is annoying.



Is there any solution to prevent showing these messages in notification area and in standard messages and only show in my application?










share|improve this question





























    9















    I've developed an Android application which shows current location (Channel 50) using Cell Broadcast message. I can't find any solution to enable/disable cell broadcast using my application. I enabled cell broadcast in standard SMS settings. The application is working well. One problem is that it also showing location name notification area of android and message as standard SMS application. It is annoying.



    Is there any solution to prevent showing these messages in notification area and in standard messages and only show in my application?










    share|improve this question



























      9












      9








      9


      2






      I've developed an Android application which shows current location (Channel 50) using Cell Broadcast message. I can't find any solution to enable/disable cell broadcast using my application. I enabled cell broadcast in standard SMS settings. The application is working well. One problem is that it also showing location name notification area of android and message as standard SMS application. It is annoying.



      Is there any solution to prevent showing these messages in notification area and in standard messages and only show in my application?










      share|improve this question
















      I've developed an Android application which shows current location (Channel 50) using Cell Broadcast message. I can't find any solution to enable/disable cell broadcast using my application. I enabled cell broadcast in standard SMS settings. The application is working well. One problem is that it also showing location name notification area of android and message as standard SMS application. It is annoying.



      Is there any solution to prevent showing these messages in notification area and in standard messages and only show in my application?







      android






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 25 '16 at 6:38









      ישו אוהב אותך

      15.6k84160




      15.6k84160










      asked Aug 13 '12 at 7:44









      RiskhanRiskhan

      2,220113665




      2,220113665
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Make sure your BroadcastReceiver has a very high priority, and when you want the SMS not to go to the notifications and database, in your broadcast receiver call the following -



          this.abortBroadcast();





          share|improve this answer



















          • 1





            I already done what you stated above, but no change. i googled and somebody says that CellBroadcast is not ordered and so abortBroadcast not work.

            – Riskhan
            Aug 24 '12 at 5:14











          • Try giving the broadcast receiver very high priority.

            – Abhinav Manchanda
            Aug 25 '12 at 14:10






          • 4





            hey @Abhinav I'm working on a similar project, and I've tried giving the highest priority, what I've found from my research is that Non ordered broadcasts cannot be aborted...

            – user1733583
            Apr 25 '13 at 2:16






          • 1





            Hey @kannan, did you get any solution for this problem???

            – user1733583
            Apr 25 '13 at 2:17











          • did you get any solution?

            – Mourice
            Apr 25 '14 at 12:35











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f11930054%2freceiving-cell-broadcast-for-showing-current-location-channel-50-in-android%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Make sure your BroadcastReceiver has a very high priority, and when you want the SMS not to go to the notifications and database, in your broadcast receiver call the following -



          this.abortBroadcast();





          share|improve this answer



















          • 1





            I already done what you stated above, but no change. i googled and somebody says that CellBroadcast is not ordered and so abortBroadcast not work.

            – Riskhan
            Aug 24 '12 at 5:14











          • Try giving the broadcast receiver very high priority.

            – Abhinav Manchanda
            Aug 25 '12 at 14:10






          • 4





            hey @Abhinav I'm working on a similar project, and I've tried giving the highest priority, what I've found from my research is that Non ordered broadcasts cannot be aborted...

            – user1733583
            Apr 25 '13 at 2:16






          • 1





            Hey @kannan, did you get any solution for this problem???

            – user1733583
            Apr 25 '13 at 2:17











          • did you get any solution?

            – Mourice
            Apr 25 '14 at 12:35
















          0














          Make sure your BroadcastReceiver has a very high priority, and when you want the SMS not to go to the notifications and database, in your broadcast receiver call the following -



          this.abortBroadcast();





          share|improve this answer



















          • 1





            I already done what you stated above, but no change. i googled and somebody says that CellBroadcast is not ordered and so abortBroadcast not work.

            – Riskhan
            Aug 24 '12 at 5:14











          • Try giving the broadcast receiver very high priority.

            – Abhinav Manchanda
            Aug 25 '12 at 14:10






          • 4





            hey @Abhinav I'm working on a similar project, and I've tried giving the highest priority, what I've found from my research is that Non ordered broadcasts cannot be aborted...

            – user1733583
            Apr 25 '13 at 2:16






          • 1





            Hey @kannan, did you get any solution for this problem???

            – user1733583
            Apr 25 '13 at 2:17











          • did you get any solution?

            – Mourice
            Apr 25 '14 at 12:35














          0












          0








          0







          Make sure your BroadcastReceiver has a very high priority, and when you want the SMS not to go to the notifications and database, in your broadcast receiver call the following -



          this.abortBroadcast();





          share|improve this answer













          Make sure your BroadcastReceiver has a very high priority, and when you want the SMS not to go to the notifications and database, in your broadcast receiver call the following -



          this.abortBroadcast();






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 22 '12 at 21:17









          Abhinav ManchandaAbhinav Manchanda

          5,55723041




          5,55723041








          • 1





            I already done what you stated above, but no change. i googled and somebody says that CellBroadcast is not ordered and so abortBroadcast not work.

            – Riskhan
            Aug 24 '12 at 5:14











          • Try giving the broadcast receiver very high priority.

            – Abhinav Manchanda
            Aug 25 '12 at 14:10






          • 4





            hey @Abhinav I'm working on a similar project, and I've tried giving the highest priority, what I've found from my research is that Non ordered broadcasts cannot be aborted...

            – user1733583
            Apr 25 '13 at 2:16






          • 1





            Hey @kannan, did you get any solution for this problem???

            – user1733583
            Apr 25 '13 at 2:17











          • did you get any solution?

            – Mourice
            Apr 25 '14 at 12:35














          • 1





            I already done what you stated above, but no change. i googled and somebody says that CellBroadcast is not ordered and so abortBroadcast not work.

            – Riskhan
            Aug 24 '12 at 5:14











          • Try giving the broadcast receiver very high priority.

            – Abhinav Manchanda
            Aug 25 '12 at 14:10






          • 4





            hey @Abhinav I'm working on a similar project, and I've tried giving the highest priority, what I've found from my research is that Non ordered broadcasts cannot be aborted...

            – user1733583
            Apr 25 '13 at 2:16






          • 1





            Hey @kannan, did you get any solution for this problem???

            – user1733583
            Apr 25 '13 at 2:17











          • did you get any solution?

            – Mourice
            Apr 25 '14 at 12:35








          1




          1





          I already done what you stated above, but no change. i googled and somebody says that CellBroadcast is not ordered and so abortBroadcast not work.

          – Riskhan
          Aug 24 '12 at 5:14





          I already done what you stated above, but no change. i googled and somebody says that CellBroadcast is not ordered and so abortBroadcast not work.

          – Riskhan
          Aug 24 '12 at 5:14













          Try giving the broadcast receiver very high priority.

          – Abhinav Manchanda
          Aug 25 '12 at 14:10





          Try giving the broadcast receiver very high priority.

          – Abhinav Manchanda
          Aug 25 '12 at 14:10




          4




          4





          hey @Abhinav I'm working on a similar project, and I've tried giving the highest priority, what I've found from my research is that Non ordered broadcasts cannot be aborted...

          – user1733583
          Apr 25 '13 at 2:16





          hey @Abhinav I'm working on a similar project, and I've tried giving the highest priority, what I've found from my research is that Non ordered broadcasts cannot be aborted...

          – user1733583
          Apr 25 '13 at 2:16




          1




          1





          Hey @kannan, did you get any solution for this problem???

          – user1733583
          Apr 25 '13 at 2:17





          Hey @kannan, did you get any solution for this problem???

          – user1733583
          Apr 25 '13 at 2:17













          did you get any solution?

          – Mourice
          Apr 25 '14 at 12:35





          did you get any solution?

          – Mourice
          Apr 25 '14 at 12:35




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f11930054%2freceiving-cell-broadcast-for-showing-current-location-channel-50-in-android%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          MongoDB - Not Authorized To Execute Command

          Npm cannot find a required file even through it is in the searched directory

          in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith