Google+ ZACARÉS

Translate

2016/03/22

Embarcadero RAD Studio 10 Seattle Android Native Splash Screen

Quick Notes

  • Prepare your splash image and name as splash.png (760x1024).
  • Build the project, target Android to obtain AndroidManifest.template.xml
  • Modify generated AndroidManifest.template.xml, change the highlighted line
    <application android:persistent="%persistent%"
        android:restoreAnyVersion="%restoreAnyVersion%"
        android:label="%label%"
        android:debuggable="%debuggable%"
        android:largeHeap="%largeHeap%"
        android:icon="%icon%"
        android:theme="%theme%"        android:hardwareAccelerated="%hardwareAccelerated%">
     <application android:persistent="%persistent%"
        android:restoreAnyVersion="%restoreAnyVersion%"
        android:label="%label%"
        android:debuggable="%debuggable%"
        android:largeHeap="%largeHeap%"
        android:icon="%icon%"
        android:theme="@style/MyTheme.NoTitleBar.CustomBackground"        android:hardwareAccelerated="%hardwareAccelerated%">
  • Create styles.xml with the following content
<resources>
<style name="MyTheme.NoTitleBar.CustomBackground" parent="@android:Theme.Black">
  <item name="android:windowBackground">@drawable/splash</item>
  <item name="android:windowNoTitle">true</item>
  <item name="android:windowFullscreen">false</item>
  <item name="android:windowContentOverlay">@null</item>
</style>
</resources>
  •  Deployment property
    • styles.xml --> res/values/styles.xml
    • splash.png --> res/drawable-port/splash.png

2016/02/09

Google 2016 2GB Free Storage

If you finish the simple guided Security Checkup procedure, your google account will be granted 2GB of live-time extra free space.

Just click the following link and follow the procedure to earn that free space.

https://security.google.com/settings/security/secureaccount

Enjoy.


2015/12/11

Knox allow you to have two Whatsapp in same device

Recently found an interesting app, Knox by Samsung. It help you to securely separate your personal and professional data.

For the meantime I am not quite interest in its security feature, however it does provide me an opportunity to install two Whatsapp on the same device.

The app creates a new 'layer' on your phone so that you as a device user can have a 'second' phone within your phone.

As it is being treated as another phone, like vm, you need to install a separate set of apps inside. And this is the feature that allow you to install a 'second' version of Whatsapp in the same device, like a vm inside your phone.

2015/12/06

Hong Kong Mobile Carriers are getting worse. Which carrier would be better?

Which carrier would be better?
I used to be Smartone subscruber. But the stability degraded over the past few years a lot. In the past, though not stable, but I still can use mobile data to connect to the internet. But later, I cannot connect with mobile data in my work place and at home. The worse area is along mtr. I have tried to connect to google.com at Kwun Tong station but even when I got off at Tsuen Wan, I still cannot show the page.
So, I changed to subscribe China Mobile as I can use mobile data even in China. But this even worse than Smartone. Connection when travelling on MTR can never be achieved.  Most areas in Hong Kong cannot use mobile data, Tsuen Wan, Kwai Chung, Tsing Yi, Mongkok, Tsim Sha Tsui, Wanchai, Causeway Bay, Ap Lei Chau, Admiraty, Cental, Yuen Long, Tin Shui Wai (where I am now writing this blog, there is no data signal).
I. have heard that CSL would be the best, BUT their fee is also supreme.
So, is there any economic plan/carrier that I can subscribe? There is no need to be fast. I only want coverage.

2015/09/21

How to show and hide android developer option for kitkat 4.4 or above

to show the developer option, click on build number for seven times
to hide the developer option, goto app seetings, all apps. find settings and clear its data.

2015/08/12

VS2015 Community cannot build Cordova [Solved]

Recently, I'm trying Microsoft Visual Studio 2015 Community Edition to build cross-platform apps with Cordova. The thing which frustrated me much is, I can never run the debugger. Whenever I hit F5, I'll got the following error:
The debugger cannot continue running the process. Unable to start debugging.
This has been an issue for quite a long time until recently, Microsoft seems partially solve the issue. You need to update VS2015.

If you still got this issue after update, you should try the following steps:
  1. Close all VS instances
  2. cd %appdata%\"..\Local\Microsoft\Phone Tools"
  3. rename CoreCon folder to something else
  4. Launch VS again.
With these steps, I can finally build with Cordova.


2015/07/07

How to reset Whatsapp incorrect badge unread on Samsung Android Device with TouchWiz lanucher

Whatsapp does not keep the badge number, it is the device's os functionality.
For Samsung Android device with TouchWiz launcher
Go to settings --> application manager --> all
select BadgeProvider
Click Clear Data
Click Force Stop
Restart your device