While doing Android development with Flutter, I want to save some objects and REST results separately in different files (for logging purposes). However, since it will be easier for me to view these files on the local machine, I want to save/log them to the local disk, not to the disk in the simulator. Is there a way to do this?
Related
Good morning,
I am developing offline storage for an Android mobile app and I would like to access and open its local database as I always did with web local development, possibly by using some sort of GUI software like DB Browser for SQLite.
I found out where the db file is but it is too much cumbersome exporting it from the Android file system (I tried the ADB backup + decrypt with zlib library way) from a dev point of view. Are there other modern ways?
I'm using Visual Studio Code as code editor.
(PROBLEM)
I want to transfer an app that according to the storage tab in my settings has 5gb (the app requires you to download a lot of files after initially installing it), but every app that I've tried (like Syncios for example) has only given me access to the 80mb apk, without any dex files. The iTools app that I used back when I had an iOS device would always transfer the entirety of an app's files from the get-go, so I am really in the dark about what the issue could be.
(context)
I wanted to make an online community revolving around a fairly obscure mobile game, which means that I need some game assets to make it look nice. I had a very consistent way of doing that with iOS apps, but now that I've switched to android, nothing I do seems to work.
Hi i am looking into an android development , as we all know when we build the project it makes an APK that is the whole program. but is it possible to make a an android project / APK that would be able to use external files to include more info into the project.
like say for example i have a list commands or functions in my list , but i dont want it to be added into my APK build , is it possible to use it externally?
i was curious because something like COC and other games after downloading it , then downloads extra data from the net , more into updates for the whole game.
how is this possible or is it possible to do , and use functions or source codes externally and not include it into the APK , and also the proper usage of it
Any Android App can connect to the Internet and save downloaded data files to use as they need, without requiring to include them inside the APK. Indeed, for many games (and other Apps having large data sets), it's a sensible option.
There are a couple of things to be aware of:
Android restricts where (on the filesystem) you can save files. And no matter where you save the files, the user can delete them at any
time. Your App should be able to cope with this.
The files should only ever be data files - not executable code. Attempting to
execute downloaded files is likely to put your users at risk
(depending on the permissions your App was installed with) and is also likely to get your App marked as malware.
You should read the Android documentation on Data Storage to learn a bit more about it.
I have adopted Rhodes recently & I was wondering how to debug a Rhodes application. For example in Ruby we can see the line-by-line execution of code using irb. Also after creating the models in a Rhodes application, I want to see the database structure because I prefer to use the SQLite Manager as a Firefox plugin for my Rails apps.
I need to really see how the models look in the databases and how the attributes are stored.
Thanks
Using RhoStudio (built on top of Eclipse), you can set breakpoints and step through the Ruby controllers and models (source)
To see the database structure, you can access the file system and get the database's path, and save the SQLite database off in a web service or some other means (maybe to the SD card?) to view in your Firefox plugin, the following being an example of how to get the path to the database.
db_path = Rho::RhoFSConnector::get_db_fullpathname('app') # can be app, user, or local
EDIT
Or, if you build to RhoSimulator from within RhoStudio, you can navigate to the "bin" directory for RhoSimulator and inspect the SQLite files there.
/path/to/app/rhosimulator/db
I have a large data that I have to use in my first android application, could any one guide me the best way to achieve this?
Is there something like embedded database in android framework?
Can i keep my database on my custom server and provide web service to my application?
Which one of the above is better, since I can offer the user to purchase the application and keep the data locally on his device in compressed format.
Thanks
You can ship an android application with the database file in the res/raw folder, and then programmatically copy the file onto SD Card. I personally compress my database file into a zip and uncompress it on first run.
Android has support for SQLite databases which is a very efficient, embedded, crossplatform database. Would recommend this.
Using a remote server might not be a good idea, since signal on wireless networks is often slow and unreliable.
See this answer for me details.
Ship an application with a database
But if the file size of the compressed database is >1MB then you'll need to download it from a webserver and store it locally (Android has a 1MB file size limit on internal files/resources)
Here are some brief thoughts.
Android has SQLite, you could use that for storing and accessing data.
But there are restrictions on such file sizes of 1mb.
I'd recommend setting up a simple web server that can accept GET requests.