Tuesday 29 September 2015

How to Open Android App from Web Browser and Get Data from the App and Return Back to Web Browser

Sometime we a have a situation in which we use android app in our web application.In that situation you can use this.
For opening the android app first we have to check 2 conditions .
1. If the device is android or not.
2. In the android device if the app is installed or not.
1. If the device is android or not- If device is not android then we do not perform that functionality. In that case you can either disable the button or hide the button by using this:
 
  1. $(document).ready(function () {
  2. var isMobile = {
  3. Android: function () {
  4. return navigator.userAgent.match(/Android/i);
  5. },
  6. any: function () {
  7. return (isMobile.Android());
  8. }
  9. };
  10. if (isMobile.Android()) {
  11. $("[id$btnOpenapp]").show(); //show the button
  12. }
  13. else
  14. {
  15. $("[id$btnOpenapp]").hide(); //hide the button
  16. }
  17. });
2.If the app is installed or not-.....

- Read the full Blog at : How to Open Android App from Web Browser and Get Data from the App and Return Back to Web Browser

Our Android questions and answers  forum is developed for those tech geeks who don’t want to wait for a longer duration of time, as the community members within FindNerd can answer any android query within shortest possible time frame.

Apart from this, If you have any language query like C, Java, JavaScript, iOS, Html, PHP etc . you can post at FindNerd’s ios developer forum.

No comments:

Post a Comment