Interaction of Telegram bot with Android Java application - java

I have an Android application developed with Java, now I want to connect this application to Telegram bot
Telegram bot is developed with php language and is supposed to play the role of management panel
For example, there should be a button inside the Telegram bot to get the user's mobile phone model, and when the button is clicked, a request will be sent to the application and the user's mobile information will be sent to the bot.
Everyone says to do this by using Java libraries like retrofit.
This work is only for sending requests from the application to the Telegram bot
But my problem is something else
I am going to make a request to the application through the robot, but I don't know how to make a request to the application because there is no server in the middle.

Related

Using Angularjs to send and receive data to/from server

I am taking a computer science course, and currently we are working on a project where we have to build a simple game application. I am working on a tic-tac-toe game where there is a client and a server. Players can sign into the client and connect to the server where they can interact with one another by playing the game.
I am curious if I could build an angularjs web app that can send and receive data from the server (coded in java) to be able to see who is logged into the game, send messages to the chat box, as well as disconnect users from the server.
Is this something that is possible? If so, could anyone link me to some reference materials so that I can learn how to do this.
Thank you!

Doubts related to Android wear development | Beginner

I have built a Java Spring Application. This application in the end after doing its work pushes data to a sqlite database.
Now the functionality that i want to add is: Once data is pushed into db, i want to send a custom notification on an app running on android wear. This custom notification should have a message and some options for user to respond to. Finally on seeing the notification on android wear the user should select one of the options and that should be stored in a database.
As i am new to android development, I cannot understand three things:
1. What kind of android application should i develop?
2. How can this android application receive some message or data from some other service (in my case java application)?
3. How to save user response to database?
Some guidance would be really appreciated.
Thanks
I will try to answer all your questions. If your current Java application is a web app, then you will end up building a mobile/wearable app that will communicate to this web app. If your current Java application is not a web app, you will either have to integrate its logic into the mobile/wearable app directly or turn it into a web app so it can communicate with the mobile/wearable app.
You will end up developing two Android apps, essentially. A mobile app for the mobile device and a wearable app that will communicate with the mobile app. This can all be done in Android Studio and in one project though, so it will basically be one application at the end of the day.
Like I mentioned above, you will have to either integrate that existing application's logic directly into your new Android mobile app, or turn your Spring app into a web app and host it on a server that your Android mobile app can call out to to get data.
Android has the concept of local databases and can actually use SQLite on the device. This is most likely how you would store the response from your service.

Android App for forwarding Whatsapp messages to a Webinterface

I'm developing an android app with java that forwards text messages and incoming calls to a webinterface. That part is working so far - I now want to integrate the same functionality for incoming whatsapp messages. Is there a way to get access to these notifications? For the first part it would be ok if only the number of messages and contact are forwarded.
Thanks in advance!

php triggers android app to send its gps location

I am a beginner in java and php.
My application is made of 2 parts:
server side (php)
client side android device (java).
Whenever the admin on the server side wants, he can send request to the android for its location coordinates even if the application on android is not running.
I managed to create the java file that will detect the mobile location and save it in a variable on the android.
My question is, how to enable the php(server side) to send request that will start the action of finding the location coordinates on the android?
thank you for the help in advance!
You can add push notification capability to your app using Google Cloud Messaging for Android.

How does the c2dm application push to the Android app?

I am new in Android and trying to develop an app with push notification. I have a small confusion on the architecture behind the c2dm, that after getting the authentication token and device reg_Id, the application server will send them along with the message, but how will the server will know to send the message to the c2dm server?
I am getting an error and even I am not able to add a google account on my emulator for synchronization. While doing this my emulator says com.android.calender not there.
Thanks in advance.
you have to call web service to sent push notification on particular device. And whatever the massage you want to pass on device is written in web service. you can make web service any any language like php or .net. Ask me if you have any query regarding push.

Categories