[solved] Android Shortcut to Tethering Settings

If you are like me and tether your 3G android device to PC’s several times a day, you will realise that it is a PITA to go through the menu to enable tethering each time you want to connect.

Trying to make a shortcut, was impossible, there was no link to the tethering settings page.

I found Quickteth on the market, it is a lightweight app, that requires no unsafe permissions to run!  (Lesson to learn you other android developers!)

Puts a simple shortcut on the desktop, press it and you are in your tethering settings page!

Check out Quickteth on the android market.

WindyCityTech Blogger
WindyWindyCityTech WordPress

Ebay mobile version sucks on Android on everything

Why do these idiots at ebay waste their time, the mobile version of their site is so crippled it makes users want to curl up in a corner and die

Don’t even think you can use it to sell anything either, there is just no buttons for it – crippled.

Of course, uses can opt out and use the classic site (still not 100% on Android) but the redirect is cookie based and if you delete your cookies, you are presented with the same shit again.

The only solution is to create a bookmark www.ebay.com.au/?redirect=mobile

WindyCityTech Blogger
WindyWindyCityTech WordPress

Transcoding movies for Android devices using WinFF ffmpeg and Ubuntu

This is the easiest way to get the task done, it is not pretty but it should work fine.  I tried it on Ubuntu 11.04 no problems.

So I was wanting to watch some AVI files on my ZTE V9 Android device, but had to recode them into mp4 before watching.  Unfortunately the stock Ubuntu version of winff does not allow mp4 coding natively, however there is a easy workaround

Following the instructions on http://ubuntuforums.org/showthread.php?t=786095, I did this:

sudo apt-get remove ffmpeg x264 libx264-dev
sudo apt-get update
sudo apt-get install build-essential checkinstall git checkinstall libfaac-dev \
    libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev \
    libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev \
    libxfixes-dev libxvidcore-dev texi2html yasm zlib1g-dev
cd
git clone git://git.videolan.org/x264
cd x264
./configure –enable-static
make
sudo checkinstall –pkgname=x264 –pkgversion=”3:$(./version.sh | \
    awk -F'[” ]’ ‘/POINT/{print $4″+git”$5}’)” –backup=no –deldoc=yes \
    –fstrans=no –default
cd
git clone git://git.videolan.org/ffmpeg
cd ffmpeg
./configure –enable-gpl –enable-libfaac –enable-libmp3lame –enable-libopencore-amrnb \
    –enable-libopencore-amrwb –enable-libtheora –enable-libvorbis –enable-libx264 \
    –enable-libxvid –enable-nonfree –enable-postproc –enable-version3 –enable-x11grab
make
sudo checkinstall –pkgname=ffmpeg –pkgversion=”5:$(date +%Y%m%d%H%M)-git” –backup=no \
  –deldoc=yes –fstrans=no –default
hash x264 ffmpeg ffplay ffprobe
cd ~/x264
make distclean
./configure –enable-static
make
sudo checkinstall –pkgname=x264 –pkgversion=”3:$(./version.sh | \
    awk -F'[” ]’ ‘/POINT/{print $4″+git”$5}’)” –backup=no –deldoc=yes \
    –fstrans=no –default

Install winff using synaptic

apt-get install winff

Download the winff presets from winff site
http://winff.googlecode.com/files/presets-libavcodec52-v6.xml.gz
Extract and copy over the previous ~/.winff/presets.xml  you may want to back up the existing file first.

Open WinFF
In the winff preferences change the path to ffmpeg anf ffplay to:
/usr/local/bin/ffmpeg
/usr/local/bin/ffplay

Looking in the presets, you will notice that there is now a mp4 section and also a Android compatible video section, I chose the Android section for my coding.

WindyCityTech Blogger
windywindycitytech wordpress

Transcoding movies for Android devices using WinFF ffmpeg and Ubuntu

This is the easiest way to get the task done, it is not pretty but it should work fine.  I tried it on Ubuntu 11.04 no problems.

So I was wanting to watch some AVI files on my ZTE V9 Android device, but had to recode them into mp4 before watching.  Unfortunately the stock Ubuntu version of winff does not allow mp4 coding natively, however there is a easy workaround

Following the instructions on http://ubuntuforums.org/showthread.php?t=786095, I did this:

sudo apt-get remove ffmpeg x264 libx264-dev
sudo apt-get update
sudo apt-get install build-essential checkinstall git checkinstall libfaac-dev \
    libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev \
    libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev \
    libxfixes-dev libxvidcore-dev texi2html yasm zlib1g-dev
cd
git clone git://git.videolan.org/x264
cd x264
./configure –enable-static
make
sudo checkinstall –pkgname=x264 –pkgversion=”3:$(./version.sh | \
    awk -F'[” ]’ ‘/POINT/{print $4″+git”$5}’)” –backup=no –deldoc=yes \
    –fstrans=no –default
cd
git clone git://git.videolan.org/ffmpeg
cd ffmpeg
./configure –enable-gpl –enable-libfaac –enable-libmp3lame –enable-libopencore-amrnb \
    –enable-libopencore-amrwb –enable-libtheora –enable-libvorbis –enable-libx264 \
    –enable-libxvid –enable-nonfree –enable-postproc –enable-version3 –enable-x11grab
make
sudo checkinstall –pkgname=ffmpeg –pkgversion=”5:$(date +%Y%m%d%H%M)-git” –backup=no \
  –deldoc=yes –fstrans=no –default
hash x264 ffmpeg ffplay ffprobe
cd ~/x264
make distclean
./configure –enable-static
make
sudo checkinstall –pkgname=x264 –pkgversion=”3:$(./version.sh | \
    awk -F'[” ]’ ‘/POINT/{print $4″+git”$5}’)” –backup=no –deldoc=yes \
    –fstrans=no –default

Install winff using synaptic

apt-get install winff

Download the winff presets from winff site
http://winff.googlecode.com/files/presets-libavcodec52-v6.xml.gz
Extract and copy over the previous ~/.winff/presets.xml  you may want to back up the existing file first.

Open WinFF
In the winff preferences change the path to ffmpeg anf ffplay to:
/usr/local/bin/ffmpeg
/usr/local/bin/ffplay

Looking in the presets, you will notice that there is now a mp4 section and also a Android compatible video section, I chose the Android section for my coding.

WindyCityTech Blogger
windywindycitytech wordpress

[Solved] USB Tethering a ZTE V9 SD card using Ubuntu Linux

If you have a ZTE V9 (A.K.A Optus Mytab) and you are tethering it to a linux device, you may be having a little trouble getting the SD car to mount.  Personally, it will mount fine on a windows box but will not mount or show aything in dmesg on my Ubuntu box.

First of all…
You cannot USB mount the SD card and USB Internet tether at the same time, damm.  Portable hotspot still work though!

It is easy to get the USB mounting going though… (Done on Android 2.2)

On the ZTE V9, turn on USB debugging.  Settings > Applications > Development > USB Debugging

On you Linux machine (mine is Ubuntu 11.04)

gksudo gedit /lib/udev/rules.d/40-usb_modeswitch.rules

Search for “0083” and comment out the whole line, like this.
# ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0083", RUN+="usb_modeswitch '%b/

You should be able to plug in your USB cable and mount the SD card like any other USB storage device.

If you want to tether the Internet, you will have to unmount the SD card, so you can check the USB Internet tethering box.

If you have trouble, check you dmesg output upon connection, check you lsusb output and make sure that usb_modeswitch is updated.

WindyCityTech Blogger
windywindycitytech wordpress

[Solved] USB Tethering a ZTE V9 SD card using Ubuntu Linux

If you have a ZTE V9 (A.K.A Optus Mytab) and you are tethering it to a linux device, you may be having a little trouble getting the SD car to mount.  Personally, it will mount fine on a windows box but will not mount or show aything in dmesg on my Ubuntu box.

First of all…
You cannot USB mount the SD card and USB Internet tether at the same time, damm.  Portable hotspot still work though!

It is easy to get the USB mounting going though… (Done on Android 2.2)

On the ZTE V9, turn on USB debugging.  Settings > Applications > Development > USB Debugging

On you Linux machine (mine is Ubuntu 11.04)

gksudo gedit /lib/udev/rules.d/40-usb_modeswitch.rules

Search for “0083” and comment out the whole line, like this.
# ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0083", RUN+="usb_modeswitch '%b/

You should be able to plug in your USB cable and mount the SD card like any other USB storage device.

If you want to tether the Internet, you will have to unmount the SD card, so you can check the USB Internet tethering box.

If you have trouble, check you dmesg output upon connection, check you lsusb output and make sure that usb_modeswitch is updated.

WindyCityTech Blogger
windywindycitytech wordpress

How to block ads on your android ZTE V9

This is the easiest way to block ads on the ZTE V9 or any other android device.

We are going to make a hosts file to redirect ant ad servers to 127.0.0.1 a.k.a localhost.

Why

  • Free
  • No app download
  • Saves on bandwidth – BIG TIME
  • Works on all apps on the device i.e. system wide
  • Safe and easy hack!

Prerequisite:

How to:

  • Open the terminal emulator
  • Type ‘su’ to get root access
  • Navigate to etc folder  ‘cd /etc’
  • rename hosts to hosts.old  ‘mv hosts hosts.old’
  • Navigate to the sd card  ‘cd /sdcard’
  • Copy hosts file dowloaded to /etc  ‘cat hosts > /etc/hosts’
  • Exit the terminal (you should not receive any errors)

Why cat?
“cat filename1 > filename2” – For some reason, the Droid does not come with a copy (cp) command. This works in the exact same way

Does it work…

Page with a Ad
Ad gone!

Page with too many ads…

WindyCityTech Blogger
windywindycitytech wordpress