Web, ecommerce & Android app development for Dunstable

Why choose New Media Aid?
We develop complex web apps, Android apps and ecommerce websites and have provided low cost, bespoke app development services since the year 2000 - only 12 miles from Dunstable, Bedfordshire. The development cost of a bespoke Android app, web app or ecommerce website for organisations in Bedfordshire will usually be between £2,000 and £5,000.

We develop bespoke, responsive, mobile-friendly web apps and e-commerce websites as well as cutting-edge Android apps for organisations ranging from multi-national blue chip organisations to SMEs in Dunstable, Bedfordshire.

We keep abreast of all the latest trends and technologies in web app development, ecommerce website design and bespoke Android app development to make sure we offer the most advanced, secure and robust application solutions for our clients in Dunstable, Bedfordshire.

Useless fact
As well as being the distance in miles from Dunstable to our app development office in Hitchin, 12 is also the number of Deque methods in the java.util.Deque class. In app development a double-ended queue (dequeue, often abbreviated to deque, pronounced deck) is an abstract data type that generalises a queue and supports element insertion and removal at both ends. The 12 Deque methods are addFirst(), offerFirst(), addLast(), offerLast(), removeFirst(), pollFirst(), removeLast(), pollLast(), getFirst(), peekFirst(), getLast() and peekLast(). (Java.util.Deque).


Useful Android app developers term of the day: Retrofit

Android Retrofit is a type-safe HTTP client for Android and Java that simplifies the process of sending network requests and processing the responses received from the server. It uses annotations to define the structure of the HTTP request and response and provides a clean, easy-to-use API for performing network operations in Android applications.

With Retrofit, you can create an interface that defines the endpoints of your API and the structure of your requests and responses. Retrofit takes care of the rest, including parsing JSON or XML responses, handling network errors, and managing threading. It also provides support for various serialization formats like Gson, Jackson, Moshi, etc.

To use Retrofit in your Android application, you need to add the Retrofit dependency to your project and create a Retrofit instance using the Retrofit.Builder class. Then you can create a service interface that defines the API endpoints and use Retrofit to create an implementation of that interface.

Here's an example of how to use Retrofit to perform a simple GET request:

// Define the API endpoint interface public interface MyApi { @GET("/users/{user}/repos") Call<List<Repo>> listRepos(@Path("user") String user); } // Create a Retrofit instance Retrofit retrofit = new Retrofit.Builder() .baseUrl("https://api.github.com") .build(); // Create an implementation of the API endpoint interface MyApi myApi = retrofit.create(MyApi.class); // Perform the network request Call<List<Repo>> call = myApi.listRepos("octocat"); call.enqueue(new Callback<List<Repo>>() { @Override public void onResponse(Call<List<Repo>> call, Response<List<Repo>> response) { // Handle the response List<Repo> repos = response.body(); // ... } @Override public void onFailure(Call<List<Repo>> call, Throwable t) { // Handle network errors } });

In this example, we define an interface MyApi that represents the API endpoint for listing repositories of a GitHub user. We then create a Retrofit instance with the base URL of the API and use it to create an implementation of MyApi. Finally, we perform the network request using myApi.listRepos("octocat") and handle the response in the onResponse callback or any network errors in the onFailure callback.


Android Retrofit is a type-safe HTTP client library for Android applications developed by Square Inc. It simplifies the process of making network requests and parsing the response data by providing a high-level API for interacting with RESTful web services.

Retrofit uses annotations to describe the HTTP request, such as the URL, the HTTP method, and the request parameters. It also uses annotations to describe the response data format, such as JSON, XML, or plain text.

Retrofit supports several HTTP clients, including OkHttp, Android's built-in HttpURLConnection, and Apache HttpClient. It also supports various data serialization formats, such as Gson, Jackson, and Moshi.

To use Retrofit in an Android app, you first need to include the Retrofit library in your project by adding it as a dependency in your app's build.gradle file. Then, you can define an interface that describes the REST API endpoints and the expected response types using Retrofit annotations. Finally, you can use the Retrofit API to create an instance of the interface and make network requests.

Overall, Retrofit simplifies the process of interacting with RESTful APIs in Android apps and provides a robust and efficient way to handle network requests and responses.

We are only 12 miles from Dunstable
ab@newma.co.uk