WiFi Network Analyzer for Android

Sometimes, you would like to check your WiFi network if it works properly or detect if there are any problems. Taking into consideration the increasing number of the mobile devices (especially in case of the tablets), the well functioning WiFi network is a very important thing.

So if you want to verify your network, you can use my Wifi Network Analyzer application. Of course there are a lot of WiFi analyzer apps on the Android Market, but there is a big difference compared to my application:

They just display some static information and if you are  an average person and not an IT expert, it’s hard to understand what -79 dBm means for a signal length or it is good or not if the channel of your WiFi network is 11.

So I’ve decided that my application will be smart and process these information automatically then displays it in an easy form where you can see if your network works fine or not, even if you are just a beginner.
Here you can see the result if you click on the Analyze button:
device-2013-12-29-144245

 

 

 

 

 

 

 

 

Now you can detect the possible problems without understanding the exact meaning of the numbers.

If you are an expert, my WiFi Network Analyzer also can be a good choice.

It displays the usual static information like BSSID, frequency, channel, IP address, vendor, DNS and a lot of more but what is more important:
It measures the latency of the access point and tests the DNS resolving continuously.
Also there is a very useful dashboard, where you can check the most important details.
device-2013-12-29-144225device-2013-12-29-144251

Finally, if you want to test the speed of your network, you can use my WiFi Speed Test application available on the Android Market.

Advertisements

Android programming: button below scrollview or listview

How can you add buttons below a scrollview but located at the bottom of screen? Well, this is a quite common question.
If you simple add a button at the bottom of your layout file where there is a Scrollview or Listview above, you can experience bad results:

  • If the scrollview/listview is not full of items, the button position will be somewhere in the middle of the screen instead of bottom.
  • If the view is full of items, the button will disappear.
wrong_button_below_scrollview

Common problem: the buttons are not at the bottom of the screen

So, how can you solve it? The trick is to use RelativeLayout instead of LinearLayout and the android:layout_alignParentBottom=”true” keyword.

Let’s see an example code for scrollview:

<RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android&#8221;
android:layout_width=”fill_parent”
android:layout_height=”fill_parent”
android:orientation=”vertical” >

<ScrollView
android:layout_width=”fill_parent”
android:layout_height=”wrap_content” >

<LinearLayout
android:layout_width=”fill_parent”
android:layout_height=”wrap_content”
android:orientation=”vertical” >

<TextView
android:layout_width=”wrap_content”
android:layout_height=”wrap_content”
android:layout_gravity=”center”
android:gravity=”center”
android:text=”some text” />

<TextView
android:layout_width=”wrap_content”
android:layout_height=”wrap_content”
android:layout_gravity=”center”
android:gravity=”center”
android:text=”some text2″ />
</LinearLayout>
</ScrollView>

<LinearLayout
android:layout_width=”fill_parent”
android:layout_height=”wrap_content”
android:layout_alignParentBottom=”true”
android:layout_centerHorizontal=”true”
android:orientation=”horizontal” >

<Button
style=”?android:attr/buttonStyleSmall”
android:layout_width=”wrap_content”
android:layout_height=”40dp”
android:layout_gravity=”bottom”
android:layout_marginRight=”3dp”
android:layout_marginTop=”1dp”
android:layout_weight=”1″
android:text=”button1″ />

<Button

style=”?android:attr/buttonStyleSmall”
android:layout_width=”wrap_content”
android:layout_height=”40dp”
android:layout_gravity=”bottom”
android:layout_marginRight=”3dp”
android:layout_marginTop=”1dp”
android:layout_weight=”1″
android:text=”button2″ />
</LinearLayout>

</RelativeLayout>

And the result:

button_below_scrollview

Using RelativeLayout the buttons can be below the scrollview at the bottom of the screen