Categories
ErrorFix Mac

Xcode Not Updating When Changing Image

When developing in iPhone in  Xcode and you change an image it might not be updated when you run it on your device or simulator as it’s still use the old image. The error can be caused by different factor but can be solved by doing some or all of these steps. Uninstall the app […]

Categories
Tips and Tricks Windows

Excel Join Character Strings From Multiple Cells

In Microsoft Office Excel you can join multiple string from cells by using the Concatenate function. Like this: =CONCATENATE(E2,”-“,F2) Here the string from the cell E2, the character “-” and the string from F2 will be joined together. Making a final result looking like this: “7-42”.

Categories
ErrorFix Windows

Excel CSV And Unicode UTF-8 Character Error

In Microsoft Office when saving an Excel file to CSV file, Excel doesn’t ask if we have to care about encoding, in particular, a major problem occur with characters is being replaced with other symbols like square, star etc. Want we want is to save Unicode in UTF-8. There is a solution, not the prettiest but it […]

Categories
Android Tips and Tricks

Android Java Check Whether SD Card is Available Or Not

You can check if the SD card is available by using the .getExternalStorageState and the .Environment.MEDIA_MOUNTED like this: private Boolean isSDPresent() { return android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED); } It returns true if the SD card is present otherwise it’s false. To use just put it into an if-statement like this: if (isSDPresent()) {   // SD-card is present } […]

Categories
Android Tips and Tricks

Android Get A Transparent Gradient Or Color

Use the 8-digit color value, e.g. , where the first two characters are the alpha value. 00 is full transparent and FF is fully opague. start = Color.parseColor(“#e2102e”); end = Color.parseColor(“#fc1233”); GradientDrawable gd = new GradientDrawable(Orientation.TOP_BOTTOM, new int[] { start, end });

Categories
Android Tips and Tricks

Android ActionBar Background Image

To set the background image of the relative new Actionbar in Android you can do the following: final ActionBar actionBar = getActionBar(); BitmapDrawable background = new BitmapDrawable(BitmapFactory.decodeResource(getResources(), R.raw.actionbar_background)); actionBar.setBackgroundDrawable(background); Note that the BitmapDrawable() is deprecated. So might might want to use BitmapDrawable(Resources) to ensure that the drawable has correctly set its target density.

Categories
Android Tips and Tricks

Android Java Color From Hexadecimal Color String

To get a Color from a hexadecimal to a color you can use the parseColor public static int parseColor (String colorString) And to use it remember the # character Color.parseColor(“#636161”);

Categories
Android Tips and Tricks

Android Check Internet Access

You can use the following function to check if there is internet access on Android public boolean isOnline() {     ConnectivityManager cm =         (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);     NetworkInfo netInfo = cm.getActiveNetworkInfo();     if (netInfo != null && netInfo.isConnectedOrConnecting()) {         return true;     }   […]

Categories
Android Tips and Tricks

Android Developer Respond To User Reviews

You can now if you’re a Top Developer respond to your users reviews. Android Developers blog. Here’s a quick way how to respond to your users reviews. As for now it’s only Top Developer badge () which can do this, the user will get a mail when the developer has responded to his or hers review. Google has […]

Categories
Tips and Tricks Windows

Change The Priority Of Wired/Wireless Network Cards In Windows

Windows should priorities the wired network over wireless, however this is not always the case. Whether it’s due to when the network is created is unsure. To force Windows to always pick the wired as default over wireless it set in the network adapter settings. Control Panel -> Network and Sharing Center -> Change Adapter Settings […]