Search This Blog

Wednesday, March 19, 2014

#AndroidWear Preview

Google just released "Android Wear Developer Preview " tools and APIs. So, I so exciting tried to use it. So, this is it ... 

1. I updated Android SDK Manager and install "Android Wear ARM EABI v7a System Image"

   
2. I created new Android virtual device and setting as below


3. Then I launched the emulator. After waiting for a while, I got this ...



That is for today. I will try more next time :)


Wednesday, January 22, 2014

Fay Black Board version 2.0 released

Just updated for Fay Black Board version 2.0



What's new :
1. Full screen when drawing.
2. Add more 3 colors: white,blue,pink
3. Support big screen devices.
4. Fixed bug & improved performance.
Download & Install here ->
https://play.google.com/store/apps/details?id=ataya.p.utilities.fayblackboard 

Friday, December 6, 2013

Speed Up "Android JNI" Tricks and Tips

Recently, I got a job to speed up application that using JNI. Many people thought by using native code, it should run faster than Java but I found out that is not always true.

First, the passing parameters from Java level to native code are using time to convert and if you use JNI so often then that gonna be heavy load.

Second, you need to allocate/deallocate resources by yourself in native level(there is no  garbage collector in C/C++ ) and that takes time to do anyway.

Ok. Here are tricks and tips for speed up your Android JNI app. Hope it works for you too  ...

1. allocate/deallocate just one
   The bigger memory you need, the slower you are. So, if it's possible. Try to do allocate and release the resources just one time.


2.don't allocate too big block memory
    Check you code that you really need that much resource? Just use that it needs to be run properly.
for example, data = (unsigned char *)malloc( BLOCKSIZE + 100 );
May be +100 is not necessary.

3. don't use double
   I don't know why but in native code, double makes slow. I changed it type to normal "int" and it running a lot faster.(make sure it doesn't make wrong result)

4. set MAX priority to the thread
   I found that when garbage collector thread is running, some delay may occur(not much but it does go slower) So, try to set your JNI caller thread's priority to MAX that will (somehow) prevent garbage collector thread to run during JNI call.

5. try "ARM" mode
   In your Android.Mk file, add LOCAL_ARM_MODE := arm line and rebuild the code. I found out that the default Thumb mode is slower than Arm mode. However, I'm not sure that it gonna be true for all device.


That is for today !! and may the Force be with you all :D

Wednesday, October 30, 2013

Monday, October 14, 2013

#ANDROID Fay FTP Client version 3.5 released

Now Fay FTP Client version 3.5 was released. Please try and give us more reviews and comments... m(_ _)m




What's New
1.Show progress bar when download/upload file
2.Tablet tested.
3.Fixed Bugs.
Download & Install here ->

Thursday, October 10, 2013

Mobile Apps By The Numbers

Mobile Apps by the Numbers
Explore more infographics like this one on the web's largest information design community - Visually.

Friday, August 2, 2013

#BOINC on my Nexus 10

Just installed BOINC(Berkeley Open Infrastructure for Network Computing) app on my Nexus 10 and Galaxy Nexus ... Hope I can help humanity (for a little bit) ...



Install BOINC here from Google Play ->
https://play.google.com/store/apps/details?id=edu.berkeley.boinc

Here is the tip, because it was so hot in japan now. So,If you ticked "Compute on Battery" then the limit maximum setting temperature will pause the calculate processes.
Tick "Show advanced preference and control .." and set "Max. battery temperature" to upper value (my case at 90 degree)