PhoneGap is an open source framework for building cross-platform mobile apps using basic web skills like HTML5, Javascript and CSS. It is just all about wraping your app with PhoneGap to fast deploy in diffrent plateforms. I started developing applications since April'12, at the begining I was really impressed since I really used all my web skills to develop apps but after only 6 months I began to be shoked by performance and ui issues like smooth animations and more other issues.

Testing application over android environment is costly because more devices  with diffrent specs have to be tested with,
so it is costly and time consuming so indeed the best solution is to test over default Android emulator, but the first question in our minds is what we should do about emulator poor performance?

Android From A to Z

February 16th 2015, 4:05 amCategory: Mobile 0 comments

Innovative apps can be built over mobile devices in Java, Android provieds a rich framework allowing developers to do that.
Here Android fundementals concepts can be easily studied to provide android basics for developers.

Follow these steps to configure your android device to android studio:

  • Disconnect the USB from the device.
  • On the device, go to Settings -> Developer Options, and click Revoke USB debugging authorizations.
  • On the device, go to Settings -> Storage -> USB Computer Connection (available on the drop down menu at the top right of your screen). Verify that Media device (MTP) is CHECKED.
  • Reconnect the device, now everything should be fine

This can be done by checking all device network resources (WiFi, 3G, ...) to check any online status in any one of them as follows:

public boolean isOnline() {
        try {
           ConnectivityManager connectivityManager = (ConnectivityManager) context
                        .getSystemService(Context.CONNECTIVITY_SERVICE);

        NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();
        connected = networkInfo != null && networkInfo.isAvailable() &&
                networkInfo.isConnected();
        return connected;
        } catch (Exception e) {
            System.out.println("CheckConnectivity Exception: " + e.getMessage());
            Log.v("connectivity", e.toString());
        }
        return connected;
    }