PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, April 20, 2022

[FIXED] How to connect to neo4j database from android app (with java code)?

 April 20, 2022     android, connection, database, java, neo4j     No comments   

Issue

I am developing one android application in java and i am using neo4j as a database for this app.

Lets, consider i will store the static cypher query in a string. Then after the user clicks on the button, i want to send this query(string) to neo4j server and then execute it on neo4j server and return the result.

My question is that, Is it possible? If yes, how can i do this ? Is there any easy/proper way to do?

Any help will be highly appreciated.


Solution

If you want to talk directly to Neo4j, you can use either:

  • The HTTP API
  • The Binary Bolt Protocol

If you would rather use middleware, there are many many different options:

  • Java
  • .NET
  • JavaScript
  • Python
  • Go
  • Ruby
  • PHP
  • ...

When building mobile apps my personal preference is to build a standard API in a middleware server then use HTTPS calls from the app (neo4j-graphql-js has also been awesome for a couple projects), but there are enough stacks that you have the freedom to do it your way.



Answered By - joshfindit
Answer Checked By - Senaida (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing