How to use a SQLite database with LibGDX application [android] - java

I am developing a game for Android using LibGDX and a key requirement of this project is to be able to store and query data in a database. I need a database for several reasons; one main reason being the need to store user details when they sign up and validate them when they log in. I also need the database to store dateandtime stamps, game stats, e.t.c.
I was thinking of using SQLite to implement this and I have already designed the relational database, however, I cannot find a feasible solution to doing so on LibGDX. I have seen forums and posts mentioning the use of interfacing, however, I have researched and tried doing this method for far too long now and to no avail. I have read this article - https://code.google.com/archive/p/libgdx-users/wikis/SQLite.wiki but it doesn't help at all. I have also seen a few third-party extensions for enabling the use of SQLite databases.
This is the link to one I attempted to use which uses interfacing - https://github.com/Inexsoft/libgdx-database-extension
This is the link to one I attempted to use which gives several project files in order to somehow enable the use of a database with LibGDX - https://github.com/Inexsoft/libgdx-database-extension
I am able to implement an interface for Native Functions on a basic level such as opening a website - also from another post I saw on here (Using SQLite from libGDX on Android). However, I have no idea as to how I can develop that example any further to accommodate the use of a database. Please note that I am willing to explore other options in order to store this data, however, it really needs to be in a relational database form due to the nature of my project requirements. It does not have to use SQLite, if there are better alternatives out there.
Any help will be greatly appreciated as I have no other resort left and the project deadline is fast approaching.

Related

Searching for CRUD tutorials

I am sorry for my terrible English.
I ask for help with the following task: write a web application that would execute sql queries to the database: select, update, insert and other basic operations. About the interface - the text field where the request is entered and then performed after the click of a button. It is also required to provide registration pages, plus different functionality for the administrator and the regular user.
From the "technique" it is recommended to use Java + Spring Framework, TypeScript + Angular, MySQL. However, the problem is that from all that list I have worked only with Java and MySQL. In short, I have a little experience with the front-end (HTML, CSS, JS), but haven't yet tried working with back-end. So I am completely newbie with all this.
Therefore, I ask for help with some good tutorials on this topic. Alas, there is no way that I could raise all this from scratch. I just have no enough time for it. Please share with me tutorials that really helped you and do not throw the first links from Google. I am able to find those in a search engine myself, but I regularly find outdated or too complicated for a beginner.

React - Java Backend - Sync New Data

I'm having a small problem with a personal project, I'm trying to create an auction site in React - it's an amazing learning experience - with a Java backend.
One trouble I've stumbled upon is how to "sync" data effectively, when new data is inserted into the database from a different user, such as if a user would bid on an item, how would other users update their data?
The only way I can see it happening is with a push model, or constantly polling for data from the server. Both seem pretty out of reach, to be honest, although the push-model seems the more likely of the two.
I could somehow set up an observer pattern with users "registered" when viewing an item, although if there is a better method, I would love to hear it.
I already tried searching for answers, but either none exist (I doubt it), or I'm simply terrible at using Google and don't know the keywords to search for to get the specific results I need. (Likely)
Thanks in advance!
You are looking for a kind of server push technology. Try researching more into Websockets or Server-Sent-Events.
A start could be: WebSockets vs. Server-Sent events/EventSource

Custom Map in Android Application

Ok, so I am going to do my best to convey exactly what I am looking to accomplish. I have thus far completed some minor Java courses at school and working on some android tutorials.
I have access to a google map that has consistently updated information regarding conditions in an area. Is it possible for me to write a program that shows the map on this link and stays current? Can this be done without the use of webview? Or is that link going to be dynamic and change as the overlay does? Would it be possible to instead call upon the website then to utilize that specific area of the webpage that has the map?
https://www.google.com/maps/d/embed?mid=zEDHoFPoYHv4.kHYurQFY7s8s&hl=en
I am doing this all for self educational purposes, not looking to create anything commercial, other wise I realize I would likely want to contact the host and ask them for permission to use their data.
I've read through several of the Google Maps API information, but I can not find anything specifically that states I can do this.
By "have access to a map", do you mean that you have access to the map tiles? If so, you can add a TileOverlay to a base Google Map, which will download the tiles from your server.

Data Access Layer for Android

Im currently trying to build my first android app and its a learning curve (I will overcome!) seeing as I have come from a .net C#/vb.net web background (no java background)
I worked through the Notepad example that google provide and now working on my own app which has three tables in the sqlite database.
I'm having to build a method for each insert, delete, edit etc and then more for reading the database.
I was curious to see if their are any nice Dataaccess layers out there that help with this (I've grown a custom to fluent NHibernate and using linq)
It seems a lot of work to be writing all this sql inside the java files!

audio editing web app

I want to develop, as a part of my project, a web application that will enable users to edit, mix and apply effects to audio. I am aware of the J2EE development pattern, but am not sure where to start from. I want Audacity like functionality (actually, sox). Is there any Java API for audio editing/mixing and applying effects? If yes, can one write new effects? This would allow me to dynamically generate effects chains, based on the users' input. I searched the web, but it's all "learn to use audacity..." there. Also, is there any way such effects can be applied in (near) real time?
I found Soundation and Myna to be good apps that already do what I want( though Myna has no real time effects support), but they've both got the same old audio editing UI.
Thanks in advance!
Maybe you can look at this:
"Movie Masher going open source after Adobe supported it thus allowing integration to your site too." Maybe your solution is here : http://www.moviemasher.com/
You should check these options below:
Web Audio API
http://www.w3.org/TR/webaudio/
And also
WebPD:
https://github.com/sebpiq/WebPd

Categories

Resources