Is using a db40 database in an android application a good idea? - android

Does anyone see any issues with using db40 object database in android?
db4o.com
I just want it to store some data for me locally on the device, and it is a really simple easy to use object databse.
Will it work on android?
Is there possibly a better/simpler / more standard way to go?
I want it to store a list of users devices.

No there is no any issue in that. We are using it for one of our application.
Even in latest version they have made its foot print very small. Means taking small amount of heap memory when you open it.

Related

is it possible to program an app that receives data from an already existing app?

I'm trying to program an app using android studio that receives data (blood sugar levels) from the app tomato (which calculates blood sugar levels automatically every 5 mins or so). The tomato app already exists and is made by a company.
So I was wondering if doing this is possible. if so, how?
I saw this post: Is it possible for an Android app to use data from another app? which is very similar to what im trying to do but i didnt find an exact solution/answer to this.
Any opinions and help are very much needed and welcomed.
You would first need to know how the app is storing the data, you could check your phone's storage using the Device File Explorer in Android Studio. If they have exposed the data then you are able to check and read the files that the app has exposed. However, I have a feeling that they would not be leaving them in plain text for you to take.
Upon some further reading, it seems they read from a device called a MiaoMiao Transmitter. You could ask the producer of this product for a developer kit and see what they say. This would come with documentation as to how you can get data from the product. However, if they do not provide you with any help, you will need to do some investigation as to how the device functions.
Perhaps it sends android broadcasts when it is taking a reading? This is just speculation of course. This is very niche and I believe that is a reason there are only a few apps that use the device - they are trying to lock out "non-verified" developers. However, when there is a will, there is always a way! ;)
Best of luck!

Is there a way to export data from Android Profiler?

I would like to export data from Android Profiler, I would like to create a comparison graph between two applications. Problem is that I would like to get a percentage of say RAM-usage over a timespan. I know I could do it manually by hovering over the timeline. Problem is this would take an extremely long time doing it for both of the applications, covering both CPU and RAM.
Yes, I've done it manually just for one of the application, but the values aren't correct.
How would I go to tackle this problem. Anyone here that had experience working with Android Profiler and collecting data to later make a graph of some sort out of it?
Would appreciate the help or a beneficial way to do it.

Creating dynamic database to which I can send data from android device

Simple example what I am trying to do.
I want to have database with one variable. I want to increase value of this variable from my android device.
Lets say I have button in my android application. When I click on it I want increase value of variable in database by let's say one.
I was considering using Google Cloud SQL Storage but I think there should be easier way to do that.
Have anyone faced problem like this?
What is the best solution for this problem?
As mentioned, Firebase is a good solution. There is also Google Cloud Datastore, which is somewhat more unwieldy than Firebase.
On a related note, if having a full app back-end seems overkill you might want to take a look at the alpha preview of Google Cloud Functions, which are cloud-hosted Javascript functions you can invoke with a simple HTTP trigger.

Always connect to Webservice or local storage Android?

I'm developing a personal project with Android and struggling here with some doubts about the better way to develop it.
Well, my project consists of my app consuming a Rest Webservice (which I already developed with Java and Spring) and showing up a list of places on it. The thing is: This list could be huge, something like 2000- 3000 records with description and picture of each place.
I'm using volley and OKHttp to take care of my networking stuff, so far my list of places isn't that long, so everything is alright, but I'm afraid when the list starting to get big, I don't know how my app will handle this.
My questions would be:
1- Should I store the that list on my device and update the list every time I connect to the webservice?
2 - Am I doing correct, retrieving the entire list with just one request? If not, how's the best way to do it?
Thank you guys, I'm new to android stuff, and I'm developing everything by myself, don't have anyone experience around to ask that.
Cheers!
As mentioned in comments You need your app to do "paging" and to load some of the content every time you scroll down.
For example if you will open Facebook app and go over photos you will notice that the first ones always loading the fastest and as you keep scrolling some will be left blank for few moments, thats what paging is all about.
Make sure though not to overload the app with info, specially if you use bitmaps
You can read some good tutorials here

How to relate geofence with the database in my android device?

I am pretty new to the android app development and I would like to develop an app about geofencing. Under my understanding, geofencing can be related to my own database stored in the device memory and it has a limitation that only 100 geofencing can be used at the same time. (Actually I am not sure if my understanding is right. If it is not, please correct me.)
My question is: Can I store several lists of geofences in my device and only enable the list which I want using the app? so, I can have more than 100 geofences but use less than 100 at the same time.
Short answer: Yes, you can. I'm not sure what the exact space requirements would be but I don't see a problem in saving several lists of 100 entries each.
For more information on how to save data in Android I'd recommend looking at this training module. You don't have to save the data - you could just keep it in working memory and redownload the lists every time. Maybe that would make more sense in your case, I don't know.

Categories

Resources