eCommerce, web & Android app development for Grays

Why choose New Media Aid?
Bespoke web app developers, Android app developers and ecommerce website developers for Grays, Essex. Our low cost cutting-edge app development team is only 41 miles away from Grays. The development cost of a bespoke Android app, web app or ecommerce website for organisations in Essex will usually be between £2,000 and £5,000.

We develop cutting-edge, custom-made, mobile-friendly web apps, e-commerce websites and Android apps for companies in Essex. Web, ecommerce and Android app developers you can trust to deliver modern, mobile-friendly web apps or websites as well as bespoke Android apps and ecommerce solutions only 41 miles from Grays.

Learn a new useless fact each day!
As well as the wonderful town of Grays being 41 miles from our app development office in Hitchin, 41 is also Charlton Heston's designation as a Roman warship slave in the film Ben-Hur. We may not drive a Greek chariot with blades on the hubs to tear apart competing vehicles, however, we will tear through the coding and testing of your bespoke Android app if you engage us to develop it so your app is developed on time and on budget!.


Useful Android app developers term of the day: NetworkReceiver

Android NetworkReceiver is a system-level component that allows apps to receive notifications when the device's network connectivity status changes. This includes changes in the type of network connection (such as switching from Wi-Fi to cellular), changes in network availability (such as connecting or disconnecting from a network), and changes in network quality (such as changes in signal strength).

The NetworkReceiver works by registering a broadcast receiver in the app's manifest file. When a network event occurs, the Android system sends an Intent broadcast, which triggers the registered receiver. The receiver can then handle the event and take appropriate action, such as updating the user interface or starting a network operation.

To use the NetworkReceiver in an app, you need to add the following permission to the manifest file:

php
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

You also need to register the receiver in the manifest file, like this:

php
<receiver android:name=".MyNetworkReceiver"> <intent-filter> <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> </intent-filter> </receiver>

In this example, the receiver class is named "MyNetworkReceiver", and it is registered to receive the "CONNECTIVITY_CHANGE" action.

Once the receiver is registered, you can override the onReceive() method to handle network events, like this:

public class MyNetworkReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { // Handle network event here } }

In the onReceive() method, you can use the ConnectivityManager class to obtain information about the current network connection, like this:

ConnectivityManager connMgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo networkInfo = connMgr.getActiveNetworkInfo(); if (networkInfo != null && networkInfo.isConnected()) { // Connected to a network } else { // No network connection }

With the NetworkReceiver, you can build apps that respond to changes in network connectivity, and provide a better user experience by adapting to changing network conditions.


In Android, a NetworkReceiver is a broadcast receiver that listens for network connectivity changes. It allows your app to be notified when the device's network connectivity state changes, such as when the device connects to a Wi-Fi network or when the device loses its mobile data connection.

To use a NetworkReceiver in your app, you need to first declare it in your AndroidManifest.xml file. Here's an example:

xml
<receiver android:name=".MyNetworkReceiver"> <intent-filter> <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> </intent-filter> </receiver>

In the example above, we're declaring a NetworkReceiver called MyNetworkReceiver and specifying that it should listen for the android.net.conn.CONNECTIVITY_CHANGE intent.

Once you've declared your NetworkReceiver, you can implement the onReceive() method to handle the network connectivity changes. Here's an example implementation:

public class MyNetworkReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo activeNetwork = cm.getActiveNetworkInfo(); boolean isConnected = activeNetwork != null && activeNetwork.isConnectedOrConnecting(); if (isConnected) { // Do something when the device is connected to a network } else { // Do something when the device is not connected to a network } } }

In the onReceive() method above, we're using the ConnectivityManager to check the network connectivity state and performing some action based on whether the device is connected to a network or not.

Remember to add the necessary permissions to your AndroidManifest.xml file to access the network information.

xml
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />


Crimes reported in Grays
Our custom app development prices are criminally low, but not as criminal as these events recently reported in Grays.

What's with the crime stats?
We thought we would show you some Grays crimes reported in Jan 2025 to highlight how external cloud-based API data can be integrated within apps.

bicycle theft
  • Supermarket (Investigation complete; no suspect identified)
burglary
  • Marlborough Close (Under investigation)
  • Crawford Avenue (Under investigation)
  • Montgomery Close (Under investigation)
  • Heath Road (Investigation complete; no suspect identified)
criminal damage arson
  • Kingsman Drive (Under investigation)
  • Denecroft Gardens (Investigation complete; no suspect identified)
  • Orchard Drive (Under investigation)
  • Laird Avenue (Under investigation)
  • Silverwood Close (Investigation complete; no suspect identified)
drugs
  • Grantham Way (Under investigation)
other theft
  • Parking Area (Investigation complete; no suspect identified)
  • Cherrydown (Under investigation)
  • Conrad Gardens (Under investigation)
  • Orchard Drive (Under investigation)
  • Farm Drive (Under investigation)
possession of weapons
  • Supermarket (Under investigation)
public order
  • Petrol Station (Investigation complete; no suspect identified)
shoplifting
  • Fairway (Investigation complete; no suspect identified)
  • Supermarket (Under investigation)
  • Fairway (Investigation complete; no suspect identified)
vehicle crime
  • Whitmore Avenue (Investigation complete; no suspect identified)
  • Masefield Road (Under investigation)
  • Stifford Clays Road (Investigation complete; no suspect identified)
  • Broadview Avenue (Under investigation)
  • Farm Drive (Action to be taken by another organisation)
violent crime
  • St Annes Close (Under investigation)
  • Milford Road (Under investigation)
  • Denecroft Gardens (Investigation complete; no suspect identified)
  • Palins Way (Under investigation)
  • Orchard Drive (Under investigation)
other crime
  • Attlee Court (Under investigation)
  • Cherrydown (Under investigation)
We are only 41 miles from Grays
ab@newma.co.uk