Need Local Database for Flutter Web Application - database

I have tried using SEMBAST as local database but it works only for android or IOS Not Web, but i have a requirement to use local database to store all my UI data and reuse it locally , so please help to solve it .
Below is my flutter doctor log :
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.14.2-pre.54, on Mac OS X 10.15.2 19C57, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.41.1)
[✓] Connected device (2 available)
• No issues found!

IndexedDB is the main solution for local database in the browser. You can use that or any solution on top of that (hive, idb_shim/idb_sqflite).

Related

can we run react native cli app on physical device without Android studio

In the documentation of react native cli there is processe to run react native cli app directly on physical device but I am confused that do we need Android studio to run my physical device as emulator or I can directly run my physical phone as emulator by connecting through usb debugging and typing the command given there
https://reactnative.dev/docs/running-on-device
You need to connect your phone via USB and turn on debugging mode.
You can check device connectivity via running the ADB command.
adb devices
if you see your device in the console then just simply run your application via
react-native-run-android

Can't run my vscode project on android emulator

Everytimes i'm trying to run "npm start" in my vscode i'm getting this error in metro bundler
"Error
02:07
Couldn't start project on Android: Error running adb: No Android connected device found, and no emulators could be started automatically.
Please connect a device or create an emulator (https://docs.expo.io/workflow/android-studio-emulator).
Then follow the instructions here to enable USB debugging:
https://developer.android.com/studio/run/device.html#developer-device-options. If you are using Genymotion go to Settings -> ADB, select "Use custom Android SDK tools", and point it at your Android SDK directory."
and in android studio's log i'm getting this error
"Emulator: Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently needed. We will address this in a future release."
how to solve this issue? Thanks.

Nordic nRF51 DK on Mac with CrossWorks

On OSX with Rowley Associates CrossWorks what are the steps needed to compile and run a simple BLE UART sample code for Nordic nRF51 DK to an iPhone.
I found iOS and Android code here and am comfortable with that part: https://www.nordicsemi.com/Products/nRFready-Demo-APPS
But I am not sure how to get the toolchain setup and running on the nRF51 board. I've seen some directions for SDK 6.x but can't find anything for SDK 7.x.
This is how I got it to work:
Setup "nRF51 SDK"
unzip "nRF51_SDK_8.0.0_5fc2c3a_packs/nRF_SoftDevice_S110/NordicSemiconductor.nRF_SoftDevice_S110.8.0.0.pack"
Load "$nRF51_SDK_8.0.0_5fc2c3a/components/softdevice/s110/hex/s110_softdevice.hex" on nRF51 with RKNRFGO.app
In CrossWorks File->Import Project and select "$nRF51_SDK_8.0.0_5fc2c3a/examples/ble_peripheral/ble_app_uart"
5.in "Select Template" select "nRF51_EXE - ..."template list
Remove "retarget.c" from project (it is easiest if you build now so you get the error)
Select Project Item-> "Project 'nrf51422_xxac_s110'" in project explorer
In "Properties Window" scroll down to "Linker Options" and set "Section Placement Macros" to:
FLASH_START=0x18000
RAM_START=0x20002000
Also make sure Properties Window->Target Loader Options->Can Erase All is set to "No"
Select Build->nrf51422_xxac_s110...
9.5 Select Target -> Connect -> SEGGER J-LINK
Select Debug->Go
Now apps can connect to the nRF51 DK board
iOS app
Android App is the Android version.
Get the mobile app source code here.
See this post for more details.

How Do I install an app on the ubuntu Touch device

I've been looking into Ubuntu Touch.
So I installed ubuntu on a Nexus 10 following the instructions here
I built the sample app following the instructions here
So now I have a device running ubuntu touch and an application, how do I put the application on the device?
You can use Qt Creator: Connect your Ubuntu Touch Device through usb open your project and simply press Ctrl+F12.
This works only if you have once installed ssh-server on the device.
Alternatively you can do it manually. Copy the necessary files (*.qml and *.desktop) to the device and start the application via ssh
qmlscene --desktop_file_hint=/usr/share/applications/qmlscene.desktop YourApp.qml
Source
Remember, this is all beta and if you are not a developer then you won't have much use for Ubuntu Touch at this stage. Eventually, Ubuntu Touch will have its own app store where it will be much easier to download apps and install them on your device.
If you are using the sdk provided by Ubuntu, then all you have to do is go:
Build -> Ubuntu Touch -> Install Application on Device
This will actually install the App instead of just running it. Now you can bring your prototypes with you =)

Google App Engine: local testing a simple hello world

I'm trying to make a simple Hello World working in local via the Google App Engine plugin for Eclipse Helios.
The problem comes when want to launch the serveur with the eclipse tool (right-clic on my project -> Run As -> Web Application), the console always display these logs:
2012-04-17 19:01:09.126 java[4019:407] [Java CocoaComponent compatibility mode]: Enabled
2012-04-17 19:01:09.127 java[4019:407] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
Usage: <dev-appserver> [options] <war directory>
Options:
--help, -h Show this help message and exit.
--server=SERVER The server to use to determine the latest
-s SERVER SDK version.
--address=ADDRESS The address of the interface on the local machine
-a ADDRESS to bind to (or 0.0.0.0 for all interfaces).
--port=PORT The port number to bind to on the local machine.
-p PORT
--sdk_root=root Overrides where the SDK is located.
--disable_update_check Disable the check for newer SDK versions.
--generated_dir=dir Set the directory where generated files are created.
The local server works when I use command bellow:
./appengine-java-sdk/bin/dev_appserver.sh appengine-java-sdk/demos/guestbook/war
Does anyone has some idee for making it working ?
Thanks by advice and sorry for my bad English...
i also got into the same problem. But my solution was deleting the existing launch configuration (in Run > Run configurations), close the dialog, and then try right-clicking on your project > Run As > Web Application.
For me it was the space in the Project Name, which coincides with the folder name in the workspace. Whoever is calling the dev server launcher didn't use quotes around the war directory.

Resources