-1

I want to make an android app. in this app i want to control all the functionality from my website.t like if i click on a button from my website then it trigger my app and start a service from website.

last few days i spent lots of time to search the answer of my question if anyone can help me then please tell me the process how to do this...

Rahul Goswami
  • 762
  • 6
  • 18

3 Answers3

1

You can do this with GCM

Steps:

  1. Create admin panel with your requirements.
  2. Register your app for GCM.
  3. When certain action is performed then push the GCM.
  4. Your app automatically received this GCM.
  5. You can pass custom keyvalued json with GCM.
  6. So according to this perform operation in your app.
  7. Your app receive GCM even app has been killed so in background.

PS: you can also use FCM.

Link for GCM

Link for FCM

Tell me if you face any probelm in this.

Smit.Satodia
  • 597
  • 4
  • 13
0

maybe one way is when you click on button some dummy file with specific Extension (like .egn ) downloaded and try to opened. also register your Activity To Open that kind of files.

Register Activity To Open Any File With Certain Extension

I didn't test this solution but logically it is posible.

Community
  • 1
  • 1
mehd azizi
  • 594
  • 1
  • 5
  • 16
0

You will have to make a custom connection from your device to the website and when the button is clicked you have to store this on the server, let the code handling your device connection then check for this data and send it on to the device, which will have to actively process the data coming from the connection you established to the server and then have the App react appropriately.
It will take a lot of custom connection handling to make this possible.

J j
  • 301
  • 3
  • 6