By STF News
In Part 1 of this intro to Apache Cordova series, we were able to see how front-end developers could use standard web technologies to create cross-platform mobile applications, and the prerequisites to install Cordova in your dev environment.
In this second part we are focused on creating your first application with Cordova, and how to publish your app in the Samsung Galaxy Store.
Creating the App
After installing Cordova, you should go to the file directory where you maintain your source code. There, you can create a Cordova project. This would be a simple Hello World project, but would give you an idea of the file structure of a Cordova project, and the different parts that you can modify to obtain the functionality you are looking for.
In your terminal or command interface type:
cd pathToYourProjects After that:
cordova create CordovaProject com.example.hello CordovaApp
CordovaProject is the directory name where the app is created. com.example.hello is the default reverse domain value (package name). You should use your own domain name if possible. CordovaApp is the title of your app. This creates the required directory structure for your Cordova app. By default, the Cordova create script generates a skeletal web-based application whose home page is the project's www/index.html file.
Since Cordova works for multiple platforms, we have to add Android to the build settings. You need to open your project directory in the command prompt. In our example, it is the Cordova Project. You should only choose platforms that you need. To be able to use the specified platform, you need to have installed the specific platform SDK.
All subsequent commands need to be run within the project's directory, or any subdirectories:
Add the Android platform, since this is the target of app, and ensure they get saved to config.xml and package.json:
cordova platform add android You can also remove a platform from your project by using:
cordova platform rm android To make certain you have added all the platforms you are targeting you can type:
cordova platform ls
This should list all the added platforms for your current project.
Checking the Install pre-requisites for building
To build and run apps, you need to install SDKs for each platform you wish to target. Alternatively, if you are using browser for development you can use browser platform which does not require any platform SDKs.
To check if you satisfy requirements for building the platform that you just added:
This command should show you a result similar to this one:
Requirements check results for android: Java JDK: installed . Android SDK: installed Android target: installed android-19,android-21,android-22,android-23,Google Inc.:Google APIs:19,Google Inc.:Google APIs (x86 System Image):19,Google Inc.:Google APIs:23 Gradle: installed Building the App
This step builds the app for a specified platform so we can run it on mobile device or emulator.
If you have added more than one platform to your project, you can limit the scope of each build to specific platforms. For our example we should add 'android':
cordova build android Build for android platform in release mode and use the specified build configuration:
cordova build android --release --buildConfig=..\myBuildConfig.json Testing the App
Using Cordova’s emulator Now we can run our app. If you are using the default emulator you should use:
cordova emulate android
If you want to use the external emulator or real device you should use
cordova run android Publishing your APK
To check in detail how to take your binary files and publish them in the Samsung Galaxy Store, check this in-depth video:
We love to chat with mobile game developers and help you as you develop, publish, and market your own games. Galaxy Store is a great place to publish your game and get discovered. If you are a mobile app developer and want to request a quick chat with us, just fill out this form.
View the full blog at its source
By STF News
Samsung Electronics announced its all new 4K Ultra Short Throw laser projector, The Premiere, at its virtual press conference event “Life Unstoppable” on September 2nd. The new 4K laser projector provides a big picture cinematic experience in the comfort of one’s home. The Premiere is the new anchor product in the award-wining Lifestyle product portfolio that now transcends the display experience – without the display.
Samsung will begin to rollout The Premiere globally starting from the US, Europe, Korea, and other regions later this year.
The Premiere will be available up to 130- and 120-inch models – LSP9T and LSP7T respectively – that support a laser powered 4K picture resolution. The Premiere LSP9T is the world’s first HDR10+ certified projector with triple laser technology and delivers revolutionary contrast details as the user watches from bright to dark scenes with a peak brightness of up to 2,800 ANSI lumens. The Premiere also supports Filmmaker Mode for the first of its kind as a projector allowing users to enjoy watching movies as director intended. The smart projector comes equipped with Samsung’s Smart TV platform and experience full of streaming video apps from major content partners and mobile connectivity features such as Tap View and mirroring.
The Premiere comes in an all-in-one compact, space-saving design that blends into a variety of living room settings and arrangements. As it is an ultra-short-throw projector, The Premiere can be placed just in front of the wall. It is designed for an easy-to-install set up and sports fabric finishes around its edges to harmonize different environments. The Premiere has powerful built-in woofers and Acoustic Beam surround sound, providing one of the best cinema experiences of projectors on the market today and reduces the need for additional bigger sound equipment in tighter spaces.
“Over the past few months, we have seen how consumers are spending more time at home and how the role of everyday life continues to change. TV has become the center of entertainment, a fitness partner, a co-worker and a source for news,” said Jongsuk Chu, Executive Vice President of Visual Display Business at Samsung Electronics. “The Premiere re-imagines the home cinema experience with an all-new, compact design, 4K picture quality and big sound for tight spaces that can be used for any at-home activity and living room arrangements.”
Samsung first launched its Lifestyle product portfolio with The Serif in 2016 and has since expanded it to the award-winning TV line-up of The Frame, The Sero and The Terrace. By enhancing elements that speak to the consumer passion points for art, interior designs and the mobile experience, Samsung’s Lifestyle product line-up functions have evolved to become a central hub for a wide array of lifestyles.
View the full article
By STF News
This is the third post in the series covering Samsung’s participation in the MIT’s Medicine Grand Hack. You can find the first post here, and the second post here.
The Promentia team was the Grand Prize Winner in the Mental Health and Professional Burnout track. Promentia’s project was an Alzheimer’s Disease prevention app, also named Promentia, with the tagline “Stay You.”
Promentia accepting their award
The team’s main point is that people do not realize that Alzheimer’s Disease is a highly delayable disease. More and more people are finding out that they are at higher risk of Alzheimer’s Disease as the popularity of at home genome services continues to rise.
Promentia demoing their app
They created a mobile prototype deployed on a Samsung Galaxy Note 9, and showed how they could use Samsung’s technology to develop a way to digitally enable Alzheimer’s disease prevention.
By monitoring the results from blood tests for six specific biomarkers scientifically proven to correlate to the onset of Alzheimer’s Disease (hsCRP, Homocysteine, Fasting insulin, Hemoglobin A1C, Fasting glucose, and Vitamin D), sleep, and exercise, the app tailors personalized feedback.
Personalized feedback provided by the app
The full team
This is the first product of its kind. Promentia’s goal was to make Alzheimer’s Disease prevention tactics more easily accessible to the general public, so you can Stay You.
View the full blog at its source
By STF News
In my previous post I covered Samsung’s partnership with the Massachusetts Institute of Technology (MIT) and the Department of Veterans Affairs to host and sponsor the MIT’s Medicine Grand Hack, to foster creativity to solve some of the problems in the health care system.
In this post I want to highlight one of the teams that participated in the hack: Insomniax. With the clarity of their focus, and how they integrated Samsung’s wearable devices in their pitch, they were able to stand out during the weekend’s activities and win the Department of Veteran’s Affairs award.
The Insomniax team participated in the mental health and professional burnout track, and created an application that uses biometrics and self-reported data to develop personalized recommendations for veterans with mental illnesses, who have poor sleep quality.
Their prototype highlighted the importance of having an easily accessible device that helps you tracking your daily routine and, with the help of an Artificial Intelligence system, gives you relevant advice to improve your quality of life.
Insomniax showcasing their app
The concept of the application they were working on was a way to combine data already collected by the Samsung Watch’s multiple sensors (things like heart rate, sleep, stress) along with a nightly questionnaire on activities/pre-sleep habits. The combined collected data then would be sent to a server with a REST API, then the system would process the data and revise the user’s recorded medical history to provide personalized recommendations on how they can get better sleep.
The Insomniax Team
Their demo was developed as a web app using Tizen Studio, and it was deployed on the Galaxy Watches that were made available to the Hackathon’s attendees.
These kind of apps can take advantage of the advanced features included in the Samsung Watches, like the Human Activity Monitor, that gives you access to and record human activity data from various sensors and recorders on the device.
View the full blog at its source