Sunday, March 16, 2014

How to configure D'link pocket router dir-506l with Reliance netconnect+ dongle

Yesterday I bought D'link pocket router dir-506l. I bought it to use with my Reliance netconnect+ dongle (Huwei EC1262).

D'link pocket router dir-506l comes with battery backup so it allows me to connnect to my Reliance netconnect+ from virtually anywhere.

I could configure dir-506l easily from my mobile web browser.  But I found there is no option to configure 3g/4g networks. Similar to traditional routers this router has options to configure with dhcp/pppop/static/.... networks only.  I've searched internet about the device support for Reliance Netconnect+. I found many others are in the same situation as mine and there is no solution.
Then I had a thought about upgrading to latest firmware.  I've searched for latest firmwares for this product.  My device has come with a firmware dated back to 2012 and 2.13 is the exact version.
While searching internet I found a website http://www.dlink.com.au/tech/download/download.aspx?product=DIR-506L which has latest firmwares released Upto 08/july/2013 and the latest is 2.15 version. There also I found compatible device list.  In compatible devices I found Huwei EC1261. This is not exactly my device.  But I thought to go with 2.15 version.  I've downloaded it and upgraded it by connecting to the device through Wi-Fi even though recommended  for firmware upgrade is through wired connection. Once upgrade is completed I've reset the device to factory settings by pressing reset button for 10 seconds.  After that I connected from my Mobile phone to the device through Wi-Fi. Now I am able to see 3g/4g mode in the internet settings menu.  I've selected this mode and selected manual configuration. There I configured my Reliance netconnect+ details. Once these settings are saved the router rebooted and connected to the internet.


Saturday, March 15, 2014

fedora 19 64 bit android development

To develop Android apps on Fedora 19 64 bit environment follow the below steps:

  1. Download Android bundle from http://developer.android.com. This downloads /home/jay/Downloads/adt-bundle-linux-x86_64-20131030.zip. This bundle contains "Eclipse IDE" and "Android SDK with 4.4 kitkat framework".
  2. Extract the downloaded zip file to your home directory. For me I've extracted it to /home/jay resulting in /home/jay/adt-bundle-linux-x86_64-20131030. After extracting the folder structure should look like below:

    [root@localhost jay]# ls -l ./adt-bundle-linux-x86_64-20131030
    total 8
    drwxrwxrwx.  9 jay jay 4096 Mar 16 08:37 eclipse
    drwxrwxrwx. 11 jay jay 4096 Mar 16 00:24 sdk
     
  3.  Give read/write/execute permissions:

    [root@localhost jay]# chmod -R 777 ./
  4. Run /home/jay/adt-bundle-linux-x86_64-20131030/sdk/tools/android to install few more frameworks (default the dowloaded SDK comes with 4.4 kitkat) 4.0.x IceCreamSandwitch. Having lower version frameworks allows you to check backward compatibility of the newly developed apps.
  5. Run /home/jay/adt-bundle-linux-x86_64-20131030/eclipse/eclipse. Create new eclipse workspace for android projects /home/jay/android-workspace
  6. In Eclipse Go to "Windows->Preferences". Expand list of Options under "Android" item in the left menu. When you select each option Eclipse shouldn't display any kind of "no such file or directory" dialog box. We've already given 777 permission to read/write/execute for all the files under "/home/jay/" so that both "Eclipse" and "Android SDK" have enough permissions and you won't be facing any kind of error.
  7. In Eclipse Go to "File->new->AndroidApplicationProject". Fill the Dialogs properly. This creates new project. Remember even 777 permissions helps in creating a project without errors.
  8. In Eclipse Go to "Window->Android Virtual Device Manager". Create new AVD. While creating new AVD I faced a problem "[2014-03-16 08:40:03 - SDK Manager] Failed to create sdcard in the AVD folder." To resolve this you need to install few 32bit libraries. While installing those 32 bit libraries I found a conflicting alsa-lib-1.0.27.1-2.fc19.x86_64 64 bit library. Then I removed this library without removing any other dependent libraries on alsa-lib-1.0.27.1-2.fc19.x86_64. Run the below commands. (Reference http://www.if-not-true-then-false.com/2010/android-sdk-and-eclipse-adt-on-fedora-centos-red-hat-rhel/)

    [root@localhost jay]# rpm -e --nodeps alsa-lib-1.0.27.1-2.fc19.x86_64
    [root@localhost jay]# yum install libX11.i686 libXext.i686 libao.i686 alsa-lib.i686 libX11-devel.i686

    Now I am able to create new AVD.
  9. Try to build the application. If you see the error "aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory", run the command:
    [root@localhost jay]# yum install zlib.i686
  10. if you see the error "error libGL.so: cannot open shared object file: No such file or directory" (reference http://stackoverflow.com/questions/18507812/which-libgl-to-use-for-android-emulator-in-fedora-64-bit)

    [root@localhost jay]# yum install glibc.i686 glibc-devel.i686 libstdc++.i686 zlib-devel.i686 ncurses-devel.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686
    [root@localhost jay]# rpm -e --nodeps mesa-libGL-9.2-0.12.20130610.fc19.x86_64
    [root@localhost jay]# yum install mesa-libGL.i686

Tuesday, March 4, 2014

how to increase internal storage of Android device

I've been using Karbon A25 with internal storage of 135mb. Because of this lower storage capacity I couldn't install more than a couple of apps (10 apps). Following the below steps l could successfully add some part of the external SD card (5gb of 30 gb sd card) to existing internal storage.

1. First root the device. For rooting follow The steps at http://forum.xda-developers.com/showthread.php?t=2421802
2. Verify whether the device is rooted by installing "root checker" app.
3. Follow the steps at http://rootmyandroid.org/increase-internal-memory-phone.html

Followers