Posts

Stop ‘Trust This Computer’ Message Pop Up

Image
After updating to iOS 7, many Windows users have reported that they are constantly getting the ‘Trust this computer” message pop up even after selecting ‘Trust’ when plugging in their iPhone or iPad. Here is a list of common fixes to resolve this annoying message. The first step you should try is to update your iTunes. Fix#1 1. Go to Control Panel > Hardware & Sounds > Device Manager 2. Right-click the Apple device > Properties > ‘Hardware’ tab > Properties > ‘Driver’ tab > Update Driver.. 3. Search for the driver in “C:\Program Files\Common Files\Apple\Mobile Device Support\Drivers” 4. The driver should be named ‘usbaapl64′ Fix #2 1. Go to Control Panel > Hardware & Sounds > Device Manager 2. Right-click the Apple device > Properties > ‘Hardware’ tab > Properties > ‘Driver’ tab > Disable 3. The pop up should not appear anymore and the device will charge while plugged in Fix #3 1. Control Panel > Uninstall a Program...

[APP] Cash Fix - Expense Manager

Image
FREE Cash Fix is a FREE, EASY, FANCY personal finance manager. - NO ADs (and forever). - Easy to use. - Small size. - Fancy swipe list and graph. - Clean & Fancy UI. - Manage expense and income easily. - Control your expense budgets easily. - Has a widget for quick add. - Show by yearly, monthly, daily and by category. - Save to Excel and back up to Box, Gmail, Google Drive, ... - Lock your list easily. Feel free to contact me. *PERMISSIONS* READ_EXTERNAL_STORAGE - used to read database into sdcard WRITE_EXTERNAL_STORAGE - used to write database into sdcard GET_TASKS - used for password lock

Share file(s) using Intent

public void startSendToIntent(String packageName, String className, String mimetype, String urls) { // urls: "/storage/sdcard0/file1.mp4;/storage/sdcard0/file2.mp4;" // mimetype: "video/mp4" /* All url using ";" as the divider */ String[] urlArray = urls.split(";"); ArrayList uris = new ArrayList (urlArray.length); for (int i = 0; i < urlArray.length; i++) { uris.add(Uri.fromFile(new File(urlArray[i]))); } Intent intent = new Intent(); intent.setClassName(packageName, className); intent.setType(mimetype); intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); if (uris.size() > 1) { intent.setAction(Intent.ACTION_SEND_MULTIPLE); intent.putExtra(Intent.EXTRA_STREAM, uris); } else { intent.setAction(Intent.ACTION_SEND); intent.putExtra(Intent.EXTRA_STREAM, uris.get(0)); } ...

Play video inside OpenGL ES by using MediaCodec

In Android 4.1 (API 16) and above, MediaCodec is introduced by Android. By using MediaCodec, we can easily decode video without using Android NDK, like creating video playback application, etc. In game development, video is also needed to make the game environment more realistics, like when you are playing a racing game with video banner around the track. In here, I'll introduce of how to decode the video and render it into OpenGL ES. Firstly, we prepare some stuffs to decode the video, like MediaExtractor and MediaCodec. private boolean initExtractor() { extractor = new MediaExtractor(); try { extractor.setDataSource(mFilePath); } catch (IOException e) { return false; } // get video track for (int i = 0; i &lt; extractor.getTrackCount(); i++) { MediaFormat format = extractor.getTrackFormat(i); String mime = format.getString(MediaFormat.KEY_MIME); if (mime.startsWith(&quot;video/&quot;)) { ...

Check OpenGL ES capability on Android

There are lots of Android devices around the world. And when you want to create one application that need OpenGL ES, you would think (what I thought) if the user's device can run smoothly by checking the OpenGL ES version because this is important. So how to check the OpenGL ES version? By using SystemService. This is the simplest one. You don't need to create any OpenGL ES component. final ActivityManager activityManager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE); final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); final boolean supportsEs2 = configurationInfo.reqGlEsVersion >= 0x30000; By using glGetService . By doing this, you can get more information, like the vendor, chip, shading version, etc. But, you need to have GL context first. String glVersion = GLES20.glGetString(GLES20.GL_VERSION); String glRenderer = GLES20.glGetString(GLES20.GL_RENDERER); String glVendor = GLES20.glGetString(GLES20.GL_VENDOR); String g...

Android, OpenGL ES 3.0, GPU

Previously, I've posted OpenCL GPU supported . You can see that mobile GPU is going to be more powerful and more efficient. When investigating the OpenGL related information, I found that OpenGL ES 3.0 is started to be supported by many GPU vendors.  Also, Android 4.3 is released with OpenGL ES 3.0 . Before you are going to creating OpenGL ES 3.0 app, first, you have to know which mobile GPUs that support OpenGL ES 3.0. Below is the list that I found, also with the chip: Imageon Adreno 300 series Qualcomm:  Snapdragon 600 ,  Snapdragon 800 Samsung Galaxy S4 ,  Sony Xperia Z Ultra, HTC New One Mali T-600 series Samsung: Exynos 5 Samsung Galaxy S4 Rockchip:  RK32xx PowerVR Series 6 (Rogue) MTK: MT8135 Apple A5, A5X, A6, A6X Samsung Exynos 5 Octa - SGX544MP3 Tegra 4 ( WhitePaper PDF ) NOT fully support. HP Slatebook x2 Please let me know if you know more. Thanks for watching :) To check OpenGL ES version on your device, click here .

Android OS History - Big changes

After developing Android app for two years, I figured out Android OS has became better and better. Indeed, I found the history and figured out the big changes for each version. See below for these big changes. Beta: 5 November 2007, as Android birthday date. v1.0 Support camera. Support Wifi. Support Bluetooth. v1.1 HTC Dream, as first Android device. v1.5, Cupcake Support video record and playback in MPEG-4 & 3GP formats. v1.6, Donut Support gesture touch. v2.0, Eclair Support Bluetooth 2.1. Support more screen size. Improve gesture to multi-touch. v2.0.1, Eclair v2.1, Eclair v2.2-2.2.3, Froyo (frozen yogurt) Improve speed, memory, performance. Use JIT compilation. Support Adobe Flash. v2.3-2.3.2, Gingerbread Support NFC. Support AAC encode. Support more sensors (gyroscopes and barometer). Improve power management. Improve audio, graphical, input for gaming. Change ext4 file system from YAFFS. v2.3.3-2.3.7, Gingerbread Improve battery efficie...