Android and DynamoDB

android dynamodb

DynamoDB

Amazon DynamoDb is a nonrelational database that is fast and flexible. It is a NoSQL database service with consistent, single-digit millisecond latency at any scale. DynamoDB is a managed cloud database supporting both document and key-value store models

You can use DynamoDB in your Android apps.

Android and DynamoDB: The two options

DynamoDB Object Mapper API

Using the DynamoDB Mapper API you would define a model in your app matching the model of your DynamoDB table. You then use the DynamoDBMapper class as the entry point to DynamoDB to access your data.

Document API

The Document API lets you access the individual attributes within data objects directly. You don’t have to map the DynamoDB table properties to your apps’ class members. The Document API acts as an interface between your app and the returned data.

The Document API has new data types to assist in the serialization and deserialization process.

So what’s the difference?

Both APIs have methods enabling you to perform create, update and delete operations as well as executing queries on your DynamoDB tables.

The difference between the two APIs is how the data is represented in your app. You can choose which API to use and you can even mix and match the two depending on your needs.

This tutorial uses the Document API to interact with our DynamoDB table.

Android and Amazon integration

android S3

Amazon S3 is a cloud storage service where you can store any number of objects from anywhere on the internet. We’ll use S3 in this tutorial to store an image uploaded from our Android app and then download and display the image in our app.

Cognito is a sign-up, sign-in, and access control service. We’ll use it in this tutorial to control access to our S3 images. We’ll only allow signed-in users to upload images to our S3 bucket while both signed-in and guest users will be able to download images.

Want to add sign-in to your Android app?

AWS Cognito User Pool Android app sign-up, sign-in security 

You can add sign-in using the Google API but there is an alternative. You can use Amazons’ Cognito, “Simple and Secure User Sign-Up, Sign-In, and Access Control. Amazon Cognito lets you add user sign-up, sign-in, and access control to your web and mobile apps quickly and easily. Amazon Cognito scales to millions of users and supports sign-in with social identity providers, such as Facebook, Google, and Amazon, and enterprise identity providers via SAML 2.0.”

We’ve created a series of quick and easy tutorials showing you how you can add sign-up and sign-in to your Android up using Cognito. Here’s the first of the series, check it out:

Cut the connection and debug your app on the move

Android debug using sharedPreference app testing icon

Here’s how you can debug your app without connecting your device to your development pc or laptop.

We’ll show you how to record crucial events that you want to monitor in a preference file for later examination.

Your Android app’s versionName, versionCode and ApplicationID made easy

Android applicationId, versionCode and versionName icon

 

So what’s an Application ID?

Each app has a unique id which looks something like this com.example.myApp. No two apps can have the same id.

Russian Weapons of WW III

russian weapons ad

Russian weapons of WW III gives you the latest information in the form of images, videos and articles on Russian weapons that will be used in any future conflict, particularly World War III.

Get the latest information on state-of-the-art weapons such as the T-14 Armata main battle tank, the S-400 “Growler” anti-aircraft weapons system and the RS-28 Sarmat intercontinental ballistic missile, nicknamed the “Satan 2”. Older, yet still effective weapons such as the Ak 47 and RPG 7 are also covered.

Russian weapons of WW III is a repository of images, video clips and articles on Russian weapons. New items are added regularly.

google play badge SMALL

Using Realm databases in Android apps: A beginner’s tutorial

Android realm database tutorial icon

What is Realm?

Think of a Realm as a database.

A Realm is similar to a database and can contain different kinds of objects. You can use a Realm in your app instead of an SQL database.

The Realm is saved in a file on your device and can be backed up.

You can also create a Realm in memory which is destroyed when you close the realm.

Realm works seamlessly with Android and is very easy to set up and use.

Addiction 101

addiction 101 modal android free app

The Free Android app covering all aspects of addiction

Whether you’re fighting an addiction, living with an addict, would like to help an addict or prevent a loved one from becoming an addict then Addiction 101 is the app for you.

Addiction 101 is a repository of information covering all aspects of addiction from prevention to treatment. Information on specific drugs such as alcohol, prescription medication, cocaine, heroin and many others is made available in the form of video clips, online readable documents or as downloadable pdf documents. The information is updated regularly.

Free Android app addiction 101 article icon goggle Play Button

Free Android image app, Open Images Gold: Version 6 Help

Open Images Gold version 6, including an image editor, is now available! google play badge open images gold version 6

Android app open images gold search result

Displaying search result thumbnail images

Edit an image

Android app open images gold select right menu

Display the large image and press the Right Floating Action button to display the Right drawer menu

Android app open images gold select right menu edit screen

Select Edit image to edit the image

Android app open images gold select right menu edit screen dismiss creative splashscreen

This splashscreen will display for 2 seconds before the Edit screen appears. Tap once to dismiss it immediately

Android app open images gold select right menu edit screen dismiss creative splashscreen edited done

Select from over 30 editing tools and edit your image

Android app open images gold select right menu edit screen dismiss creative splashscreen edited done result

The edited image is automatically saved in your device’s Pictures folder

Change the background colour

Android app open images gold change background colour

Long-press to change the background color

Saving Images

Android app open images gold change save images

Select a Save option from the Right drawer menu. The image is saved and a Notification sent

Where are the saved images?

All images are saved in your device’s Pictures folder.

You can save:

  • A large image
  • An Xtra-large image
  • An edited image. The edited image is automatically saved for you

Android app open images gold change save images save folders

All images are saved in your device’s Pictures folder

Android app open images gold change save images save folders saved images

All images are saved in the device’s Pictures folder with the OpenImages_ prefix

Open Images Gold version 6, including an image editor, is now available! google play badge open images gold version 6

Also check out help for Open Images Gold: version 5

Free Clip Art Gold

Android app Free Clip Art gold image editor

Update 2.1

The latest version of Free Clip Art Gold now includes an image editor!

Android app Free Clip Art google play badge

Free Clip Art Gold, a Free Android app, lets you download high-quality, free clip art which you can, save, share and now EDIT!

Please also see the Help file for version 2 for more detailed help

Download your favourite image then edit it using over 30 free editing tools.

Android app Free Clip Art gold edit image menu

Display the large version of your selected image then select Edit Image from the menu

Android app Free Clip Art gold edit image menu main image white

Download your original image

Android app Free Clip Art gold edit image

Open up the editor and select an editing tool, for example the Draw tool. Select the paintbrush size and colour then draw on the screen using your finger

Android app Free Clip Art gold edit image

Here’s your piece of art!

Here are some of the things that you can do with your downloaded free Clip Art Gold image:

  • Enhance your image using a number of pre-set image enhancing tools
    • Hi-Def
    • Scenery
    • Food
    • Portrait
    • Night
  • Effects - select from a number of default effect tools. Thumbnails of your image display the effect in real time. Simply select the effect that’s perfect for your image!
  • Frames – select the frame that best suits your image
  • Stickers – spice up your image. Put a sticker on it. Select your favourite sticker from a list of funky stickers. Position it on your image. That’s it. You’re done!
  • Overlays – Add overlays to your images. Select from Squares, Verticals, Scapes, Hexagonals, Crosses and Circles
  • Crop – crop images using pre-set sizes and formats
  • Adjust – choose from a number of adjustment tools to make your image stand out
    • Brightness
    • Contrast
    • Exposure
    • Warmth
    • Saturation
    • Shadows
    • Highlights
    • Vibrance
    • Tint
    • Fade
  • Sharpness – use the sharpness tool to make your image crisp and clear
  • Focus – add focus to specific parts of your image
    • Radial
    • Linear
  • Vignette
  • Orientation – if only she was looking the other way! No problem, use the Orientation tool to flip the image
    • Rotate clockwise
    • Rotate anti-clockwise
    • Flip left to right
    • Flip top to bottom
  • Splash – add colour to certain areas for emphasis
    • Free colour
    • Smart colour
    • Eraser
  • Draw – using variety of colours and pen sizes to draw on your image
  • Text – add text in a variety of colours
  • Meme – create memes in an instant!
  • Blemish – touch up where necessary using the Blemish tool
  • Blur – blur certain areas using the Blur tool
  • Redeye – easily remove those red eyes
  • Whiten

For more on Free Clip Art Gold check out these links:

Android app Free Clip Art edit share menu

Once edited, the image is automatically saved (see below). All menu options are greyed out except Share

 

Android Free Clip Art App share edit image

Selecting Share displays a Chooser screen where you can select an app to share or save the edited image

Android Free Clip Art app save edit image device Pictures folder

All saved images are saved in your device’s Pictures folder with the prefix FreeClipArt_

There’s more: Change the background colour

You can now also swop the background colour when displaying a large image.

Long-press the image to swop between a black or white background.

Android app Free Clip Art gold edit image background colour

Show the large image on a white background. Long-press the image to change the background colour to black

Android app Free Clip Art gold edit image background colour

Show the large image on a black background. Long-press the image to change the background colour to white

Please also see the Help file for version 2 for more detailed help

Android app Free Clip Art google play badge