Connecting a java program with an android application [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm rather clueless how you connect your android app to a java program.
I have coded a java application on my computer and i'd like to make an android application which calls e.g. a button press in the pc java application by the click of a button in the android app.I am slightly familiar with android studio, but not connecting devices like this.
How do i do this?

I'm rather clueless how you connect your android app to a java program
Though there are multiple ways of doing it but you can always connect any two Applications no matter what the platform is to each other using Sockets.
But For Java and Android First check out .
Sockets programming in java here
Socket programming in android here
Then you can execute specific tasks on both sides of your application depending on the data send by each application.
Happy coding :)

Related

Write a native code as background to get data from server [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have created a Go server which communicate well with my flutter code and I can get messages from the server but only when my app is running
My problem is that if the app is not running I can’t get data from the server
So I went though the internet and asked some friends about the problem All I got
It’s I need to implement native code to my Go server so from native code I will create a channel to my dart file
But I don’t know how
You can use Services on Android side (read more here). It feature works only on Android because iOS limits background activity of the app. You need to create a service and do your work in him. Service can be running as separate process and live after user close your app.

it is nessesary to have a server in order to let the users interact in android application? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'am wondering if there is a way to make a peer-to-peer or phone to phone connection, lets say is a chat room or a game online, it is required to have a server that accepts socket connections or is there an easy way to do this? I'am talking about android phone-to-phone application via sockets, cause I don't know where can I get a free java server to make this possible
You could probably host a server instance on one of the phones, have that phone connect to itself, and have the other phone connect to the hosting phone. This way would also allow for multiple phones to connect to eachother.
Although I haven't done any android programming i've been playing a game that does this through either wifi, or bluetooth...
I can't help you with code or anything but here's a link to the designer's blog
http://www.sleepingbeastgames.com/blog/
I answered in an answer because I can't comment yet :(

Please suggest approach for Java-based web app [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm a Java developer that hasn't coded in about 5 years and wants to polish up my skills. I am going to create a small app that uses an OAuth 2.0 authentication flow and then makes a few REST calls and displays the results. I've got my credentials setup with the OAuth provider.
I used Eclipse back in the day, is that still a solid IDE for this type of project? If I want to share the app with others to show my work, where could I host the code?
Thanks for these and any other pointers.
first off - yes, Eclipse if still a good choice.
if you can, make you app a web-application, and then you can host it in PaaS such as Google AppEngine. then the app itself will be always accessible from any machine that is connected to the web. this way, you will be able to show it to anyone you want.
if you only want to show the code, then GitHub or Google Code are a good choices.
HTH

Develop Android app and Java app that both interact with same database [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Hello people I'm a web developer who wants to write some Android apps. I have some experience in object oriented programming concepts and it won't be difficult to get familiar with Java. Anyways the application I want to write has two parts. One is a mobile client that has read permissions from the database, the other is a desktop client that will update and modify data in database. The database itself shall be contained in a server (just another desktop) proper to the office. Each office will have this configuration and the databases from each office will be collected to update the main database (collection of databases from all offices) which would be stored on a remote server.
My questions are:
Is it possible?
If it is possible, can you provide some guidance for a fellow code writer?
Yes it is possible. What you need is Volley to handle your API calls. Check here to get started.

Java and android socket server programming [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am planning to create an android application that will communicate into a pc server. does java socket programming works with different internet to android mobile device? example is my android mobile device is using gprs while my pc server is connected to dsl/modem
Yes, they do work and there are many applications that are built on such a set-up. Try out simple client-server examples. Concentrate on creating the server first. You have to make sure that the firewall that your PC server is on, allows the server to accept connections and also that the IP address that you are connecting to is not a local IP. Check out the articles here, here etc

Categories